/* Checkout page styles */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #f8f9fa;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #18305A;
}

.step-section {
  display: none;
}

.step-section.active {
  display: block;
}

/* Checkout stepper - single level of shape, pill container */
.stepper-breadcrumb {
  display: flex;
  align-items: stretch;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.stepper-step {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #f8fafc;
  color: #64748b;
  border-right: 1px solid #e2e8f0;
}

.stepper-step:last-child {
  border-right: none;
}

.stepper-step.active {
  background: #18305A;
  color: white;
  font-weight: 600;
  z-index: 1;
}

.stepper-step .step-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.stepper-step .step-icon svg {
  width: 100%;
  height: 100%;
}

.stepper-step.active .step-icon {
  color: white;
}

.stepper-step:not(.active) .step-icon {
  color: #94a3b8;
}

.stepper-step a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.stepper-step a:hover {
  opacity: 0.85;
}

.stepper-step > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
}

/* Mobile: compress, no scroll */
@media (max-width: 640px) {
  .stepper-breadcrumb {
    border-radius: 9999px;
  }
  .stepper-step {
    padding: 10px 4px;
    font-size: 0.6875rem;
    gap: 4px;
  }
  .stepper-step .step-icon {
    display: none;
  }
}

/* Primary buttons: pill shape, gradient, shadow (navy #18305A for checkout) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  color: white;
  transition: opacity 0.2s, transform 0.2s;
  background: linear-gradient(90deg, #7d6540 0%, #6B542E 50%, #5a4726 100%);
  box-shadow: 0 4px 14px rgba(107, 84, 46, 0.35);
}
.btn-primary:hover {
  opacity: 0.95;
}
.btn-primary-navy {
  background: linear-gradient(90deg, #2a4a7a 0%, #18305A 50%, #122544 100%);
  box-shadow: 0 4px 14px rgba(24, 48, 90, 0.35);
}
.btn-primary svg {
  width: 1rem;
  height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  flex-shrink: 0;
  flex-grow: 0;
}
.btn-primary:disabled,
.btn-primary.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Confirmation card: centered on page */
.checkout-confirmation-centered {
  width: 100%;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* Keep reCAPTCHA from breaking narrow layouts */
.recaptcha-wrap {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.recaptcha-wrap .g-recaptcha {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.checkout-checkbox-lg {
  transform: scale(1.15);
  transform-origin: center;
}

@media (min-width: 1024px) {
  .checkout-checkbox-lg {
    transform: scale(1.3);
  }
}

#discount-message.success {
  color: #16a34a;
}

#discount-message.warning {
  color: #b45309;
}

.checkout-card-input-wrap {
  position: relative;
}

.checkout-card-brand-logo {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 1.35rem;
  max-width: 2.2rem;
  max-height: 1.35rem;
  pointer-events: none;
  overflow: hidden;
}

.checkout-card-brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.checkout-card-brand-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-image-zoom-wrap {
  min-height: 105px;
}
