/* Checkout page — ported from Blazor Checkout.razor scoped styles */

.checkout-loading,
.checkout-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.checkout-loading p {
  max-width: 100%;
  overflow-wrap: break-word;
  line-height: 1.45;
}

.loading-spinner {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.spinner-dot {
  width: 12px;
  height: 12px;
  background: var(--teal, #2bb8c8);
  border-radius: 50%;
  animation: checkout-bounce 1.4s ease-in-out infinite both;
}

.spinner-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes checkout-bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.checkout-empty-icon {
  color: #ccc;
  margin-bottom: 20px;
}

.checkout-empty h1,
.checkout-empty h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  margin-bottom: 8px;
}

.checkout-empty p {
  color: #888;
  margin-bottom: 24px;
}

.btn-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy, #0f2a44);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
}

.btn-shop:hover {
  background: var(--teal, #2bb8c8);
}

.checkout-page {
  padding: 20px 16px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  overflow-x: clip;
}

.checkout-page.checkout-page--mobile-single {
  overflow-x: visible;
}

.checkout-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  margin-bottom: 20px;
}

/* Steps */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  width: 100%;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step.active .step-number {
  background: var(--navy, #0f2a44);
  color: white;
}

.step.completed .step-number {
  background: var(--teal, #2bb8c8);
  color: white;
}

.step.skipped .step-number {
  background: #e0e0e0;
  color: #bbb;
  border: 2px dashed #ccc;
  font-size: 16px;
}

.step-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  text-align: center;
  max-width: 80px;
}

.step.active .step-label {
  color: var(--navy, #0f2a44);
  font-weight: 700;
}

.step.completed .step-label {
  color: var(--teal, #2bb8c8);
}

.step.skipped .step-label {
  color: #bbb;
  text-decoration: line-through;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 8px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.checkout-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.checkout-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 8px rgba(15, 42, 68, 0.06);
  border: 1px solid rgba(15, 42, 68, 0.05);
  box-sizing: border-box;
  max-width: 100%;
}

.section-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  margin: 0 0 12px;
}

.section-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}

.checkout-section-divider {
  border: none;
  border-top: 1px solid #dde3ea;
  margin: 22px 0 18px;
}

.checkout-step1-section .section-heading + .section-heading,
.checkout-step1-section .checkout-section-divider + .section-heading {
  margin-top: 0;
  padding-top: 4px;
}

.checkout-step1-section .checkout-section-divider {
  margin-top: 22px;
  margin-bottom: 18px;
}

.checkout-page .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-page .form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.checkout-page .form-field:last-child {
  margin-bottom: 0;
}

.checkout-page .form-field:has(.validation-message),
.checkout-page .phone-field:has(.field-error) {
  margin-bottom: 20px;
}

.checkout-page .form-field:last-child:has(.validation-message),
.checkout-page .phone-field:last-child:has(.field-error) {
  margin-bottom: 12px;
}

.checkout-page .form-field label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.checkout-page .form-field input:not([type="checkbox"]):not([type="radio"]),
.checkout-page .form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.25;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
  box-shadow: none;
}

/* Match region/city CustomSelect trigger (40px total height) */
.checkout-page .form-field input:not([type="checkbox"]):not([type="radio"]),
.checkout-step1-section input[type="text"],
.checkout-step1-section input[type="tel"],
.checkout-step1-section input[type="email"],
.checkout-page .phone-field input,
.checkout-page #authPhone,
.checkout-page #phone,
.checkout-page #fullName,
.checkout-page #email,
.checkout-step1-section #authPhone,
.checkout-step1-section #phone,
.checkout-step1-section #fullName,
.checkout-step1-section #email,
.checkout-info-section #authPhone,
.checkout-info-section #phone,
.checkout-info-section #fullName,
.checkout-info-section #email {
  height: 40px;
  min-height: 40px;
}

.checkout-page .form-field input:focus,
.checkout-page .form-field textarea:focus {
  border-color: var(--teal, #2bb8c8);
  outline: none;
  box-shadow: none;
}

.checkout-page .form-field .validation-message,
.checkout-page .phone-field .field-error {
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 4px;
  line-height: 1.4;
}

.field-availability-hint {
  font-size: 12px;
  color: #9a7b2e;
  margin: 2px 0 0;
  line-height: 1.45;
}

.field-availability-hint__link {
  color: var(--teal, #2bb8c8);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-availability-hint__link:hover {
  color: var(--navy, #0f2a44);
}

.checkout-page .auth-input-wrap {
  position: relative;
}

.checkout-page .auth-input-wrap input {
  padding-right: 44px;
}

.checkout-page .auth-input-wrap .auth-eye {
  right: 10px;
  color: var(--teal, #2bb8c8);
}

.checkout-page .auth-input-wrap .auth-eye:hover {
  color: var(--teal-dark, #1a9baf);
}

.checkout-page .region-city-select .custom-select__trigger {
  padding: 10px 12px;
  padding-inline-end: 38px;
  min-height: 40px;
  border-width: 1.5px;
  border-radius: 8px;
  font-size: 14px;
}

.checkout-page .region-city-select.custom-select--open .custom-select__trigger,
.checkout-page .region-city-select .custom-select__trigger:focus-visible {
  border-color: var(--teal, #2bb8c8);
  box-shadow: none;
}

.checkout-step1-section .phone-field input,
.checkout-info-section .phone-field input,
.phone-field input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  direction: ltr;
  text-align: start;
}

.field-hint {
  font-size: 12px;
  color: #8a97a8;
  margin: 2px 0 0;
  line-height: 1.4;
}

.signup-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #444;
}

.signup-check input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  accent-color: var(--teal, #2bb8c8);
  cursor: pointer;
}

.signup-check--large {
  padding: 4px 0;
}

.signup-check-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signup-check-label {
  font-weight: 600;
  color: var(--navy, #0f2a44);
  line-height: 1.35;
}

.checkout-subsection {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-subsection-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  margin: 0 0 8px;
}

.checkout-details-section .section-subtitle.checkout-step-intro {
  margin-bottom: 14px;
}

.checkout-step1-section .checkout-section-divider + .signup-check {
  margin-top: 0;
}

.checkout-signup-fields {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-step1-section .checkout-step1-continue {
  width: 100%;
  margin-top: 18px;
}

.checkout-step1-section .checkout-actions {
  margin-top: 18px;
}

.checkout-step1-section input[type="password"] {
  height: 40px;
  min-height: 40px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--teal, #2bb8c8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.btn-link-small {
  background: none;
  border: none;
  color: var(--teal, #2bb8c8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}

/* Address label chips & full address (CheckoutSimplifiedAddressFields) */
.address-label-section {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #eef1f5;
}

.address-label-field {
  margin-bottom: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.address-label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.address-label-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  line-height: 1.3;
  font-family: inherit;
}

.address-label-chip:hover:not(.selected) {
  border-color: var(--teal, #2bb8c8);
  color: var(--teal, #2bb8c8);
}

.address-label-chip.selected {
  border-color: var(--navy, #0f2a44);
  background: var(--navy, #0f2a44);
  color: white;
}

.full-address-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: visible;
}

.full-address-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 88px;
  margin: 0;
  resize: vertical;
  padding: 10px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  color: inherit;
  background: #fff;
  text-align: start;
  transition: border-color 0.15s;
  outline: none;
  box-shadow: none;
}

.full-address-textarea:focus {
  border-color: var(--teal, #2bb8c8);
}

.validation-message {
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 4px;
  line-height: 1.4;
}

.address-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.btn-add-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  background: none;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 16px;
  font-family: inherit;
}

.btn-add-address:hover {
  border-color: var(--teal, #2bb8c8);
  color: var(--teal, #2bb8c8);
}

.checkout-error {
  background: #ffe5e5;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  white-space: pre-line;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--navy, #0f2a44);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal, #2bb8c8);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 1.5px solid #e0e0e0;
  color: #555;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--navy, #0f2a44);
  color: var(--navy, #0f2a44);
}

.checkout-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.checkout-actions .btn-secondary {
  flex: 0 0 auto;
  box-sizing: border-box;
}

.checkout-actions .btn-primary {
  flex: 1;
  margin-top: 0;
}

.btn-primary--step {
  min-height: 44px;
  font-size: 15px;
  padding: 12px;
}

.spinner-inline {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: checkout-spin 0.8s linear infinite;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Payment options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option {
  display: grid;
  grid-template-columns: auto 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.payment-option:hover {
  border-color: #ccc;
}

.payment-option.selected {
  border-color: var(--teal, #2bb8c8);
  background: #f0fdff;
}

.payment-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal, #2bb8c8);
}

.payment-icon {
  font-size: 24px;
}

.payment-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy, #0f2a44);
}

.payment-desc {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.payment-option:has(.bank-transfer-panel),
.payment-option--bank-transfer {
  align-items: flex-start;
  padding-bottom: 0;
  overflow: hidden;
}

.payment-option:has(.bank-transfer-panel) .payment-icon,
.payment-option--bank-transfer .payment-icon {
  margin-top: 2px;
}

.bank-transfer-panel {
  --bank-transfer-bleed-left: calc(20px + 14px + 50px + 14px);
  margin-top: 12px;
  margin-left: calc(-1 * var(--bank-transfer-bleed-left));
  margin-right: -16px;
  width: calc(100% + var(--bank-transfer-bleed-left) + 16px);
}

.bank-transfer-panel--static {
  margin-top: 8px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.bank-transfer-panel--static .bank-transfer-details {
  margin: 0;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 42, 68, 0.1);
}

.bank-transfer-promo-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.07);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.bank-transfer-promo-icon {
  flex: 0 0 auto;
  display: inline-flex;
  margin-top: 1px;
  color: #2563eb;
}

.bank-transfer-promo-icon svg {
  width: 15px;
  height: 15px;
}

.bank-transfer-promo-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #1e3a5f;
}

.bank-transfer-panel--static .bank-transfer-promo-strip {
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-bottom: none;
}

.bank-transfer-preview {
  padding: 10px 16px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(15, 42, 68, 0.06);
}

.payment-option--bank-transfer.selected .bank-transfer-preview,
.payment-option.selected:has(.bank-transfer-panel) .bank-transfer-preview {
  background: rgba(255, 255, 255, 0.72);
}

.bank-transfer-preview-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
  margin-bottom: 8px;
}

.bank-transfer-preview-bank {
  font-weight: 700;
  color: #0f2a44;
}

.bank-transfer-preview-sep {
  color: #cbd5e1;
}

.bank-transfer-preview-title {
  font-weight: 600;
}

.bank-transfer-preview-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 42, 68, 0.1);
  box-shadow: 0 1px 2px rgba(15, 42, 68, 0.04);
}

.bank-transfer-preview-account-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.bank-transfer-preview-account-value {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f2a44;
  letter-spacing: 0.02em;
}

.bank-transfer-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--teal, #2bb8c8);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.15s;
}

.bank-transfer-more-btn:hover {
  color: #0f5f6a;
  text-decoration: underline;
}

.bank-transfer-more-btn--collapse {
  margin-top: 0;
  flex-shrink: 0;
}

.bank-transfer-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bank-transfer-details-heading {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #64748b;
}

.bank-transfer-chevron {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.bank-transfer-chevron--open {
  transform: rotate(180deg);
}

.bank-transfer-details {
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f1f6fa 100%);
  border-top: 1px solid rgba(15, 42, 68, 0.06);
}

.bank-transfer-details-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-transfer-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid rgba(43, 184, 200, 0.35);
  box-shadow: 0 2px 8px rgba(43, 184, 200, 0.08);
}

.bank-transfer-account-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bank-transfer-account-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.bank-transfer-account-card-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f2a44;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.bank-transfer-details-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 8px 12px;
  align-items: center;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 42, 68, 0.06);
}

.bank-transfer-details-row dt {
  margin: 0;
  color: #64748b;
  font-weight: 500;
}

.bank-transfer-details-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.bank-transfer-details-value {
  color: #0f2a44;
  font-weight: 700;
  text-align: end;
  word-break: break-word;
}

.bank-transfer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(15, 42, 68, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bank-transfer-copy--sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.bank-transfer-copy svg {
  width: 14px;
  height: 14px;
}

.bank-transfer-copy:hover {
  background: #f0fdff;
  border-color: rgba(43, 184, 200, 0.45);
  color: #0f5f6a;
}

.bank-transfer-copy.is-copied {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.bank-transfer-details-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 42, 68, 0.14);
}

.bank-transfer-details-note {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
}

.bank-transfer-send-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.bank-transfer-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.bank-transfer-send-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.bank-transfer-send-btn--email {
  background: #fff;
  border-color: rgba(15, 42, 68, 0.14);
  color: #0f2a44;
}

.bank-transfer-send-btn--email:hover {
  background: #f8fafc;
  border-color: rgba(15, 42, 68, 0.22);
}

.bank-transfer-send-btn--whatsapp {
  background: #25d366;
  border-color: #1ebe57;
  color: #fff;
}

.bank-transfer-send-btn--whatsapp:hover {
  background: #20bd5a;
  border-color: #1aab50;
}

.bank-transfer-copy-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(15, 42, 68, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bank-transfer-copy-all svg {
  width: 13px;
  height: 13px;
}

.bank-transfer-copy-all:hover {
  background: #f0fdff;
  border-color: rgba(43, 184, 200, 0.45);
  color: #0f5f6a;
}

.bank-transfer-copy-all.is-copied {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

/* Review step */
.checkout-section--review .section-subtitle {
  margin-bottom: 18px;
}

.checkout-review-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.review-card {
  background: #fafbfc;
  border: 1.5px solid #e8edf2;
  border-radius: 12px;
  padding: 14px 16px;
  box-sizing: border-box;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef1f5;
}

.review-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy, #0f2a44);
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: start;
  line-height: 1.35;
}

.review-edit-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 56px;
  padding: 6px 14px;
  background: #fff;
  border: 1.5px solid rgba(43, 184, 200, 0.45);
  border-radius: 8px;
  color: var(--teal, #2bb8c8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.review-edit-btn:hover {
  border-color: var(--teal, #2bb8c8);
  background: #f0fdff;
  color: var(--navy, #0f2a44);
}

.review-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: start;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

.review-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
}

.review-row:first-child {
  padding-top: 0;
}

.review-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-label {
  font-size: 12px;
  font-weight: 600;
  color: #8a97a8;
  text-align: start;
  letter-spacing: 0.01em;
}

.review-value {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.45;
  text-align: start;
  overflow-wrap: anywhere;
}

.review-value--emphasis {
  font-weight: 600;
  color: var(--navy, #0f2a44);
}

.review-value--preline {
  white-space: pre-line;
}

.review-value--ltr {
  direction: ltr;
  unicode-bidi: embed;
  text-align: start;
}

.review-value-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: start;
}

.review-account-note {
  margin: 0 0 8px;
  font-size: 14px;
  color: #555;
  line-height: 1.45;
  text-align: start;
}

.review-payment {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: start;
}

.review-payment-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.review-payment-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.review-payment-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy, #0f2a44);
  line-height: 1.35;
}

.review-payment-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.45;
}

.review-addon-list {
  gap: 0;
}

.review-addon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
}

.review-addon-item:first-child {
  padding-top: 0;
}

.review-addon-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-addon-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}

.review-addon-img-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef1f5;
  flex-shrink: 0;
}

.review-addon-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  text-align: start;
}

.review-addon-price {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
}

.checkout-review-actions {
  margin-top: 20px;
}

.btn-secondary--checkout {
  width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  border: 2px solid var(--navy, #0f2a44);
  color: var(--navy, #0f2a44);
  background: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
}

.btn-secondary--checkout:hover {
  border-color: var(--teal, #2bb8c8);
  color: var(--teal, #2bb8c8);
  background: #f0fdff;
}

/* Legacy review classes (product detail) — keep minimal aliases */
.review-block {
  margin-bottom: 20px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  margin: 0;
}

.confirm-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}

.confirm-text {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.btn-place-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--navy, #0f2a44);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-place-order:hover:not(:disabled) {
  background: var(--teal, #2bb8c8);
}

.btn-place-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Order summary sidebar */
.checkout-summary {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(15, 42, 68, 0.08);
  border: 1px solid rgba(15, 42, 68, 0.06);
  position: sticky;
  top: 110px;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.summary-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  margin-bottom: 16px;
}

.checkout-summary-lines-scroll {
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 42, 68, 0.2) transparent;
}

.checkout-summary-lines-scroll::-webkit-scrollbar {
  width: 5px;
}

.checkout-summary-lines-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 42, 68, 0.2);
  border-radius: 4px;
}

.checkout-summary-lines-scroll--sidebar {
  max-height: 320px;
}

.checkout-summary-lines-scroll--modal {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(260px, 38vh);
}

.checkout-summary-lines-scroll--fade::after {
  content: "";
  position: sticky;
  inset-block-end: 0;
  display: block;
  height: 18px;
  margin-block-start: -18px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, #ffffff);
}

.checkout-summary-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-summary-footer {
  flex-shrink: 0;
}

.checkout-summary-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
}

.checkout-summary-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-summary-line:first-child {
  padding-top: 0;
}

.checkout-summary-line-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.checkout-summary-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-summary-line-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
  padding: 4px;
  box-sizing: border-box;
}

.checkout-summary-line-body {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.checkout-summary-line-name {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: var(--navy, #0f2a44);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.checkout-summary-line-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.3;
  color: #94a3b8;
}

.checkout-summary-line-variant,
.checkout-summary-line-qty {
  margin: 0;
}

.checkout-summary-line-meta-sep {
  color: #cbd5e1;
  user-select: none;
}

.checkout-summary-line-price {
  flex-shrink: 0;
  align-self: flex-start;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  color: var(--navy, #0f2a44);
  white-space: nowrap;
  text-align: end;
}

.summary-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 16px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.summary-total {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
}

.summary-section {
  margin-bottom: 12px;
}

.summary-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.summary-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin: 0;
}

.addon-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.addon-summary-item:last-child {
  border-bottom: none;
}

.addon-summary-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
}

.addon-summary-no-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f5f5f5;
}

.addon-summary-label {
  flex: 1;
  font-size: 13px;
  color: #444;
}

.addon-summary-fee {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy, #0f2a44);
}

.addon-summary-empty {
  font-size: 12px;
  color: #aaa;
  margin: 0;
  padding: 4px 0;
}

.coupon-field {
  margin: 12px 0;
}

.coupon-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.coupon-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.coupon-input-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  min-height: 40px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
}

.coupon-input-row .btn-apply-coupon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 40px;
  padding: 8px 16px;
  background: var(--navy, #0f2a44);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  white-space: nowrap;
  box-sizing: border-box;
}

.coupon-input-row .btn-apply-coupon:hover:not(:disabled) {
  background: var(--teal, #2bb8c8);
}

.coupon-input-row .btn-apply-coupon:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.coupon-message {
  font-size: 12px;
  margin-top: 6px;
}

.coupon-message.success {
  color: #057a55;
}

.coupon-message.error {
  color: #c53030;
}

/* Mobile order summary bar & modal */
.checkout-mobile-footer {
  display: none;
}

.checkout-summary-chevron {
  flex-shrink: 0;
  color: var(--teal, #2bb8c8);
  transition: transform 0.2s ease;
}

.checkout-summary-chevron--open {
  transform: rotate(180deg);
}

.checkout-summary-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 42, 68, 0.45);
  padding: 0;
  animation: checkout-modal-fade-in 0.2s ease;
}

@keyframes checkout-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.checkout-summary-modal {
  width: 100%;
  max-height: min(88vh, 720px);
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 42, 68, 0.15);
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: checkout-modal-slide-up 0.25s ease;
}

@keyframes checkout-modal-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.checkout-summary-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.checkout-summary-modal-header .summary-title {
  margin-bottom: 0;
}

.checkout-summary-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f5f7fa;
  color: var(--navy, #0f2a44);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.checkout-summary-modal-close:hover {
  background: #e8edf2;
}

.checkout-summary-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 12px 16px max(20px, env(safe-area-inset-bottom));
}

.checkout-summary-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  text-align: start;
  transition: background 0.15s, box-shadow 0.15s;
}

.checkout-summary-bar:hover {
  background: #f1f5f9;
}

.checkout-summary-bar-head {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.checkout-summary-bar-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-summary-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 16px;
  font-size: 13px;
  line-height: 1.35;
}

.checkout-summary-bar-row-label {
  color: #64748b;
  font-weight: 500;
}

.checkout-summary-bar-row-value {
  color: #334155;
  font-weight: 600;
  text-align: end;
  white-space: nowrap;
}

.checkout-summary-bar-divider {
  display: block;
  height: 0;
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2px 0 4px;
}

.checkout-summary-bar-row--final {
  font-size: 15px;
}

.checkout-summary-bar-row--final .checkout-summary-bar-row-label {
  color: var(--navy, #0f2a44);
  font-weight: 700;
}

.checkout-summary-bar-row--final .checkout-summary-bar-row-value {
  color: var(--navy, #0f2a44);
  font-weight: 800;
  font-size: 16px;
}

.checkout-summary-bar-final-end {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.checkout-summary-bar-final-end .checkout-summary-chevron {
  color: #64748b;
  flex-shrink: 0;
}

.checkout-mobile-review-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef1f5;
}

.checkout-mobile-coupon-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.checkout-mobile-place-order {
  margin-top: 0;
}

/* Add-ons */
.addons-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.addon-product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
}

.addon-product-card:hover {
  border-color: #ccc;
}

.addon-product-card.selected {
  border-color: var(--teal, #2bb8c8);
  background: #f0fdff;
  box-shadow: 0 4px 12px rgba(43, 184, 200, 0.12);
}

.addon-product-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.addon-product-img {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.addon-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.addon-product-no-img {
  font-size: 11px;
  color: #aaa;
}

.addon-product-desc {
  font-size: 12px;
  color: #888;
  margin: 0;
  line-height: 1.4;
}

.addon-product-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal, #2bb8c8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.addon-product-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.addon-product-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy, #0f2a44);
}

.addon-product-fee {
  font-weight: 700;
  font-size: 14px;
  color: var(--teal, #2bb8c8);
}

.addon-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.addon-option:hover {
  border-color: #ccc;
}

.addon-option.selected {
  border-color: var(--teal, #2bb8c8);
  background: #f0fdff;
}

.addon-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal, #2bb8c8);
  cursor: pointer;
}

.addon-label {
  flex: 1;
  font-size: 13px;
  color: #444;
}

.addon-fee {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy, #0f2a44);
}

/* Address selection */
.address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.address-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.address-card:hover {
  border-color: #ccc;
}

.address-card.selected {
  border-color: var(--teal, #2bb8c8);
  background: #f0fdff;
}

.address-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal, #2bb8c8);
  margin-top: 2px;
  cursor: pointer;
}

.address-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.address-lines p {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.address-default-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal, #2bb8c8);
  background: #e6f9fb;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}

@media (max-width: 768px) {
  html:has(.checkout-page) {
    scrollbar-gutter: auto;
    background: linear-gradient(135deg, #fef7e6 0%, #fce9d8 50%, #e8f3f9 100%);
  }

  .page-main:has(.checkout-page) {
    overflow: visible;
    padding-bottom: 0;
  }

  .checkout-page.checkout-page--mobile-single {
    overflow: visible;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    display: flex;
    flex-direction: column;
  }

  .checkout-summary--desktop {
    display: none;
  }

  .checkout-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 100;
    background: #ffffff;
    border-top: 1px solid rgba(15, 42, 68, 0.08);
    box-shadow: 0 -4px 24px rgba(15, 42, 68, 0.1);
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .checkout-page {
    padding: 20px 12px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .checkout-page.checkout-page--review-step {
    padding-bottom: calc(220px + env(safe-area-inset-bottom));
  }

  .confirm-box .btn-place-order--desktop {
    display: none;
  }

  .checkout-form-section {
    gap: 16px;
  }

  .checkout-section {
    padding: 16px;
    overflow: hidden;
  }

  .checkout-page .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .checkout-steps {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    padding-bottom: 4px;
  }

  .step-connector {
    width: 16px;
  }

  .checkout-page .checkout-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin-bottom: 4px;
  }

  .checkout-page .checkout-actions .btn-secondary,
  .checkout-page .checkout-actions .btn-primary {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    flex: 1 1 auto;
    align-self: stretch;
    box-sizing: border-box;
  }

  .checkout-page .form-field input:not([type="checkbox"]):not([type="radio"]),
  .checkout-page .form-field textarea,
  .coupon-input-row input {
    font-size: 16px;
  }

  .checkout-page .form-field input:not([type="checkbox"]):not([type="radio"]),
  .checkout-step1-section input[type="text"],
  .checkout-step1-section input[type="tel"],
  .checkout-step1-section input[type="email"],
  .checkout-page .phone-field input,
  .checkout-page #authPhone,
  .checkout-page #phone,
  .checkout-page #fullName,
  .checkout-page #email,
  .checkout-step1-section #authPhone,
  .checkout-step1-section #phone,
  .checkout-step1-section #fullName,
  .checkout-step1-section #email,
  .checkout-info-section #authPhone,
  .checkout-info-section #phone,
  .checkout-info-section #fullName,
  .checkout-info-section #email,
  .coupon-input-row input {
    height: 42px;
    min-height: 42px;
  }

  .coupon-input-row .btn-apply-coupon {
    min-height: 42px;
  }

  .checkout-page .region-city-select .custom-select__trigger {
    min-height: 42px;
    font-size: 16px;
  }

  .btn-primary--step {
    min-height: 46px;
  }

  .signup-check input {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .address-label-chip {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
    box-sizing: border-box;
  }

  .full-address-textarea {
    font-size: 16px;
    min-height: 80px;
  }

  .payment-option {
    min-height: 48px;
    padding: 12px;
  }

  .addons-product-grid {
    grid-template-columns: 1fr;
  }

  .confirm-box {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
  }

  .checkout-page.checkout-page--mobile-single {
    padding-bottom: calc(200px + env(safe-area-inset-bottom));
  }

  .checkout-page.checkout-page--mobile-single.checkout-page--review-step {
    padding-bottom: calc(200px + env(safe-area-inset-bottom));
  }

  .checkout-sticky-sentinel {
    width: 100%;
    height: 1px;
    margin: 0;
    pointer-events: none;
  }

  .checkout-sticky-spacer {
    width: 100%;
    flex-shrink: 0;
  }

  .checkout-summary-mobile-bar-wrap {
    position: relative;
    z-index: 150;
    width: calc(100% + 24px);
    margin-inline: -12px;
    margin-bottom: 8px;
    padding-inline: 12px;
    padding-bottom: 4px;
    box-sizing: border-box;
    transition:
      box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      background-color 0.28s ease,
      padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .checkout-summary-mobile-bar-wrap.is-pinned {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(15, 42, 68, 0.1);
    border-bottom: 1px solid rgba(15, 42, 68, 0.06);
    box-sizing: border-box;
    z-index: 199;
  }

  .checkout-summary-mobile-bar-wrap .checkout-summary-bar {
    background: #ffffff;
    border: 1px solid rgba(15, 42, 68, 0.08);
    box-shadow: 0 2px 14px rgba(15, 42, 68, 0.07);
    border-radius: 14px;
    padding: 16px 18px;
    transition:
      border-radius 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      border-color 0.28s ease;
  }

  .checkout-summary-mobile-bar-wrap.is-pinned .checkout-summary-bar {
    width: 100%;
    border-color: transparent;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
    padding: 14px max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left));
  }

  .checkout-page.checkout-page--mobile-single .checkout-title {
    margin-bottom: 12px;
  }

  .checkout-title--mobile {
    font-size: 22px;
    margin: 0 0 10px;
    padding-top: 2px;
  }

  @media (prefers-reduced-motion: reduce) {
    .checkout-summary-mobile-bar-wrap,
    .checkout-summary-mobile-bar-wrap .checkout-summary-bar {
      transition: none;
    }
  }

  html.mmz-checkout-keyboard-open .checkout-summary-mobile-bar-wrap,
  html.mmz-checkout-keyboard-open .checkout-summary-mobile-bar-wrap .checkout-summary-bar,
  html.mmz-checkout-keyboard-open .checkout-sticky-spacer {
    transition: none !important;
  }

  html.mmz-checkout-keyboard-open .checkout-summary-mobile-bar-wrap.is-pinned {
    position: relative;
    top: auto !important;
    left: auto;
    right: auto;
    box-shadow: none;
    border-bottom: none;
  }

  html.mmz-checkout-keyboard-open .checkout-sticky-spacer {
    display: none;
  }

  .checkout-mobile-footer--cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 200;
    background: #ffffff;
    border-top: 1px solid rgba(15, 42, 68, 0.08);
    box-shadow: 0 -4px 24px rgba(15, 42, 68, 0.1);
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    padding-inline-start: max(12px, env(safe-area-inset-left));
    padding-inline-end: max(12px, env(safe-area-inset-right));
    box-sizing: border-box;
  }

  .checkout-mobile-footer--cta .checkout-mobile-coupon {
    width: 100%;
  }

  .checkout-mobile-footer--cta .checkout-mobile-terms {
    margin: 0;
    padding: 0 2px;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
    text-align: center;
  }

  .checkout-mobile-footer--cta .checkout-mobile-place-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    margin-inline-start: 0;
  }

  .checkout-mobile-cta-label {
    font-size: 14px;
    font-weight: 700;
    text-align: start;
    line-height: 1.25;
  }

  .checkout-mobile-cta-total {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
  }

  .page-main--checkout {
    padding-bottom: 0;
  }

  .checkout-mobile-section {
    margin-bottom: 12px;
  }

  .section-heading--sm {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .checkout-address-summary-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8edf2;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    text-align: start;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
  }

  .checkout-address-summary-card:hover,
  .checkout-address-summary-card:focus-visible {
    border-color: var(--teal, #2bb8c8);
    background: #f0fdff;
    outline: none;
  }

  .checkout-address-summary-main {
    flex: 1;
    min-width: 0;
  }

  .checkout-address-summary-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy, #0f2a44);
    margin-bottom: 4px;
  }

  .checkout-address-summary-lines {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.45;
  }

  .checkout-address-summary-phone {
    margin: 6px 0 0;
    font-size: 13px;
    color: #666;
  }

  .checkout-address-summary-change {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal, #2bb8c8);
  }

  .checkout-mobile-terms {
    font-size: 12px;
    color: #888;
    line-height: 1.45;
    margin: 4px 0 0;
    padding: 0 4px;
  }

  .checkout-payment-expand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--teal, #2bb8c8);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
  }

  .payment-options--mobile .payment-option--primary {
    margin-bottom: 0;
  }

  .payment-options--expanded {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
  }

  .addons-product-grid--mobile {
    gap: 8px;
  }

  .addon-product-card--compact {
    grid-template-columns: auto 1fr auto;
    padding: 10px 12px;
  }

  .addon-product-card--compact .addon-product-img {
    display: none;
  }
}

/* Address picker bottom sheet (mobile + desktop) */
.checkout-address-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 42, 68, 0.45);
  animation: checkout-modal-fade-in 0.2s ease;
}

.checkout-address-modal {
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 760px);
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 42, 68, 0.15);
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: checkout-modal-slide-up 0.25s ease;
}

.checkout-address-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.checkout-address-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
}

.checkout-address-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px max(20px, env(safe-area-inset-bottom));
}

.checkout-address-modal-list {
  margin-bottom: 4px;
}

.checkout-address-modal-add-btn {
  margin-bottom: 4px;
}

.checkout-address-modal-add-actions {
  margin-top: 8px;
}

.checkout-address-modal-error {
  margin-bottom: 0;
}

/* Add-ons trigger row (mobile checkout) */
.checkout-addons-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: start;
}

.checkout-addons-trigger-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.checkout-addons-trigger-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
}

.checkout-addons-trigger-meta {
  font-size: 13px;
  color: #888;
}

.checkout-addons-trigger-thumbs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.checkout-addons-trigger-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  border: 2px solid var(--teal, #2bb8c8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-addons-trigger-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-addons-trigger-chevron {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--teal, #2bb8c8);
  font-weight: 300;
}

/* Add-ons bottom sheet modal */
.checkout-addons-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 42, 68, 0.45);
  animation: checkout-modal-fade-in 0.2s ease;
}

.checkout-addons-modal {
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 820px);
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 42, 68, 0.15);
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: checkout-modal-slide-up 0.25s ease;
}

.checkout-addons-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.checkout-addons-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
}

.checkout-addons-modal-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #888;
  line-height: 1.4;
}

.checkout-addons-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  -webkit-overflow-scrolling: touch;
}

.addons-product-grid--modal {
  margin-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.addons-product-grid--modal .addon-product-img {
  height: 120px;
}

.checkout-addons-modal-footer {
  flex-shrink: 0;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #f0f0f0;
}

.checkout-addons-modal-footer .btn-primary {
  width: 100%;
}
