/* Sarafanovo — checkout email/phone confirmation dialog, 2026-08-06. */
.wa-order-dialog.wa-channel-confirmation-dialog {
  color: #2a2a2a;
  overscroll-behavior: contain;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-background {
  background: rgba(40, 21, 47, 0.54);
}

@supports ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-background {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-body {
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(40, 21, 47, 0.22);
  font-family: inherit;
}

@supports (height: 100dvh) {
  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-body {
    max-height: calc(100dvh - 32px);
  }
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-body.is-animated {
  transition: top 180ms ease, left 180ms ease, box-shadow 180ms ease;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #eee9ef;
  box-sizing: border-box;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-header > * {
  display: block;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-header .wa-header {
  min-width: 0;
  margin: 0;
  color: #2a2a2a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper {
  position: relative;
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -12px -10px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d6570;
  cursor: pointer;
  line-height: 1;
  touch-action: manipulation;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper::before,
.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper:hover {
  background: #f5f2f6;
  color: #8322ba;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper:active {
  transform: scale(0.96);
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper:focus {
  outline: none;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper:focus-visible {
  outline: 3px solid rgba(143, 10, 198, 0.25);
  outline-offset: 2px;
  background: #f5f2f6;
  color: #8322ba;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper .wa-icon {
  width: 18px;
  height: 18px;
  opacity: 0;
  pointer-events: none;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-content {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: auto !important;
  padding: 24px 28px 8px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.wa-order-dialog.wa-channel-confirmation-dialog .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer {
  flex: 0 0 auto;
  padding: 20px 28px 28px;
  border: 0;
  background: #fff;
  box-sizing: border-box;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-line {
  margin-top: 18px;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-line:first-child {
  margin-top: 0;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper.with-content,
.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper {
  display: block;
  width: 100%;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper .wa-label {
  display: block;
  margin: 0 0 8px;
  color: #6d6570;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper .wa-input,
.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper.with-content input[type="text"],
.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper.with-content input[type="email"],
.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper.with-content input[type="tel"] {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #d8d0db;
  border-radius: 12px;
  outline: none;
  background: #fff;
  box-shadow: none;
  color: #2a2a2a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper .wa-input:hover {
  border-color: #b5a8b9;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper .wa-input:focus,
.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper .wa-input:focus-visible {
  border-color: #8f0ac6;
  outline: none;
  box-shadow: 0 0 0 4px rgba(143, 10, 198, 0.14);
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper .wa-input[readonly] {
  border-color: #e6e0e8;
  background: #f8f7f8;
  color: #6d6570;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper .wa-input.wa-error {
  border-color: #f04f55;
  box-shadow: 0 0 0 4px rgba(240, 79, 85, 0.12);
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-body .wa-field-wrapper.with-content.wa-code-field .wa-input {
  width: 132px;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-error-text {
  min-width: 0;
  margin: 8px 0 0;
  color: #d83b42;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.wa-order-dialog.wa-channel-confirmation-dialog .js-errors-wrapper:empty {
  display: none;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-code-field .wa-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  color: #848282;
  font-size: 13px;
  line-height: 1.4;
}

.wa-order-dialog.wa-channel-confirmation-dialog .js-resend-code {
  color: #8322ba;
  font-weight: 600;
  text-decoration: none;
}

.wa-order-dialog.wa-channel-confirmation-dialog .js-resend-code:hover {
  color: #9f1e87;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer .wa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 50px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  outline: none;
  appearance: none;
  background: linear-gradient(90deg, #8f0ac6 0%, #9b05af 28%, #9f1099 52%, #9f1e87 76%, #9b2b77 100%);
  box-shadow: 0 10px 24px rgba(143, 10, 198, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: none;
  white-space: normal;
  cursor: pointer;
  touch-action: manipulation;
  box-sizing: border-box;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer .wa-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(143, 10, 198, 0.28);
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer .wa-button:active {
  transform: translateY(0);
  box-shadow: 0 7px 18px rgba(143, 10, 198, 0.2);
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer .wa-button:focus-visible {
  outline: 3px solid rgba(143, 10, 198, 0.28);
  outline-offset: 3px;
}

.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer .wa-button:disabled,
.wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer .wa-button.is-disabled {
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
}

@media screen and (max-width: 576px) {
  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-body {
    top: auto !important;
    right: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px - env(safe-area-inset-top));
    border-radius: 20px;
  }

  @supports (height: 100dvh) {
    .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-body {
      max-height: calc(100dvh - 24px - env(safe-area-inset-top));
    }
  }

  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-header {
    gap: 12px;
    padding: 20px 20px 16px;
  }

  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-header .wa-header {
    font-size: 21px;
    line-height: 1.2;
  }

  .wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper {
    margin: -10px -10px -10px 0;
  }

  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-content {
    padding: 20px 20px 8px;
  }

  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer {
    padding: 16px 20px 20px;
  }

  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer .wa-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .wa-order-dialog.wa-channel-confirmation-dialog .wa-code-field .wa-content {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-body .wa-field-wrapper.with-content.wa-code-field .wa-input {
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-body,
  .wa-order-dialog.wa-channel-confirmation-dialog .wa-close-wrapper,
  .wa-order-dialog.wa-channel-confirmation-dialog .wa-field-wrapper .wa-input,
  .wa-order-dialog.wa-channel-confirmation-dialog .wa-dialog-footer .wa-button {
    scroll-behavior: auto;
    transition: none;
  }
}
