/* ============================================================
   CHECKOUT — fully isolated styles
   No inheritance from style.css intended
   ============================================================ */

/* ORDER CTA BANNER */
.order-cta-wrap {
  margin-top: 2.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5e8c0 0%, #fceef3 100%);
  border: 1.5px solid rgba(200, 155, 74, 0.25);
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 24px rgba(44, 32, 24, 0.08);
}
.order-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.order-cta-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.order-cta-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.order-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c2018;
  margin: 0 0 3px 0;
}
.order-cta-sub {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: #5a4a35;
  line-height: 1.5;
  margin: 0;
}
.btn-order {
  background: #2c2018 !important;
  color: #fdf8f0 !important;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 12px 24px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  border: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.btn-order:hover {
  background: #c89b4a !important;
  color: #2c2018 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(200, 155, 74, 0.35) !important;
}

/* OVERLAY */
.checkout-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 32, 24, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.checkout-overlay.visible {
  display: flex !important;
}

/* MODAL BOX */
.checkout-modal {
  background: #fffdf7;
  border-radius: 20px;
  border: 1.5px solid rgba(200, 155, 74, 0.2);
  box-shadow: 0 24px 64px rgba(44, 32, 24, 0.25);
  width: 100%;
  max-width: 540px;
  height: 88vh;
  max-height: 700px;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
}
.checkout-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c89b4a 0%, #d4708a 50%, #a07ab8 100%);
  border-radius: 20px 20px 0 0;
  z-index: 2;
  pointer-events: none;
}

/* HEADER */
.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.75rem 1.2rem;
  border-bottom: 1.5px solid rgba(200, 155, 74, 0.15);
  flex-shrink: 0;
  background: #fffdf7;
}
.checkout-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-header-icon {
  font-size: 14px;
  color: #c89b4a;
  display: inline-block;
}
.checkout-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  font-style: italic !important;
  color: #2c2018 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.checkout-close {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  color: #9a8870;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}
.checkout-close:hover {
  color: #2c2018;
  background: #f7f0e0 !important;
}

/* SCROLLABLE BODY */
.checkout-body {
  flex: 1 1 0% !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 1.4rem 1.75rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  min-height: 0 !important;
  background: #fffdf7;
}
.checkout-body::-webkit-scrollbar { width: 4px; }
.checkout-body::-webkit-scrollbar-track { background: transparent; }
.checkout-body::-webkit-scrollbar-thumb { background: rgba(200,155,74,0.3); border-radius: 4px; }

/* ORDER SUMMARY BOX */
.checkout-summary {
  background: #f7f0e0 !important;
  border-radius: 10px !important;
  border: 1.5px solid rgba(200, 155, 74, 0.25) !important;
  overflow: visible !important;
  flex-shrink: 0;
  font-family: 'Nunito', sans-serif !important;
}
.checkout-summary-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.85rem 1.25rem !important;
  border-bottom: 1px solid rgba(200, 155, 74, 0.18) !important;
}
.checkout-summary-label {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  color: #9a8870 !important;
}

/* CURRENCY SWITCHER */
.currency-switcher {
  display: flex !important;
  gap: 3px !important;
  background: #fffdf7 !important;
  border-radius: 50px !important;
  padding: 3px !important;
  border: 1px solid rgba(200, 155, 74, 0.3) !important;
}
.currency-btn {
  all: unset;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #9a8870;
  padding: 4px 10px;
  border-radius: 50px;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
  display: inline-block;
}
.currency-btn.active {
  background: #c89b4a !important;
  color: #2c2018 !important;
}
.currency-btn:hover:not(.active) {
  background: #f5e8c0;
  color: #5a4a35;
}

/* BINDING OPTIONS */
.checkout-summary-items {
  padding: 0.4rem 0 !important;
}
.order-item {
  display: block !important;
  cursor: pointer !important;
  padding: 0.8rem 1.25rem !important;
  transition: background 0.15s !important;
  border: none !important;
  background: transparent !important;
}
.order-item:hover {
  background: rgba(200, 155, 74, 0.07) !important;
}
.order-item input[type="radio"] {
  display: none !important;
}
.order-item-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}
.order-item-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.order-item-radio-dot {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px;
  border-radius: 50% !important;
  border: 2px solid rgba(200, 155, 74, 0.45) !important;
  position: relative !important;
  transition: border-color 0.2s !important;
  display: block !important;
  background: transparent !important;
}
.order-item-radio-dot::after {
  content: '' !important;
  position: absolute !important;
  inset: 3px !important;
  border-radius: 50% !important;
  background: #c89b4a !important;
  opacity: 0 !important;
  transition: opacity 0.2s !important;
}
.order-item input[type="radio"]:checked ~ .order-item-inner .order-item-radio-dot {
  border-color: #c89b4a !important;
}
.order-item input[type="radio"]:checked ~ .order-item-inner .order-item-radio-dot::after {
  opacity: 1 !important;
}
.order-item-name {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #2c2018 !important;
  margin: 0 0 2px 0 !important;
  padding: 0 !important;
}
.order-item-desc {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.77rem !important;
  color: #9a8870 !important;
  font-style: normal !important;
  margin: 0 !important;
  padding: 0 !important;
}
.order-item-price {
  font-family: 'Nunito', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #2c2018 !important;
  white-space: nowrap !important;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.85rem 1.25rem !important;
  border-top: 1px solid rgba(200, 155, 74, 0.18) !important;
  background: rgba(200, 155, 74, 0.08) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #5a4a35 !important;
  letter-spacing: 0.02em !important;
  border-radius: 0 0 10px 10px !important;
}
.checkout-total-price {
  font-family: 'Nunito', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #2c2018 !important;
}

/* SECTION DIVIDERS */
.checkout-section-divider {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #9a8870 !important;
  flex-shrink: 0;
}
.checkout-section-divider::before,
.checkout-section-divider::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: rgba(200, 155, 74, 0.2) !important;
}

/* FORM */
.checkout-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  flex-shrink: 0;
}
.checkout-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  flex: 1 !important;
  min-width: 0;
}
.checkout-field > label {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #5a4a35 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  display: block !important;
}
.checkout-optional {
  font-weight: 400 !important;
  text-transform: none !important;
  color: #9a8870 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0 !important;
  font-style: italic !important;
}
.checkout-field input,
.checkout-field select {
  all: unset;
  display: block;
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: #2c2018;
  background: #fffdf7;
  border: 1.5px solid rgba(200, 155, 74, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.checkout-field input:focus,
.checkout-field select:focus {
  outline: none;
  border-color: #c89b4a;
  box-shadow: 0 0 0 3px rgba(200, 155, 74, 0.18);
}
.checkout-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a8870' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fffdf7;
  padding-right: 36px;
  cursor: pointer;
}
.checkout-field--zip {
  max-width: 140px !important;
}
.checkout-field-row {
  display: flex !important;
  gap: 1rem !important;
}
@media (max-width: 480px) {
  .checkout-field-row { flex-direction: column !important; }
  .checkout-field--zip { max-width: 100% !important; }
}

/* STRIPE PLACEHOLDER FIELDS */
.stripe-field {
  background: #fffdf7 !important;
  border: 1.5px solid rgba(200, 155, 74, 0.25) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  height: 44px !important;
  box-sizing: border-box;
}
.stripe-field .StripeElement {
  width: 100% !important;
}
.stripe-field-placeholder {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.9rem !important;
  color: #9a8870 !important;
  pointer-events: none !important;
  letter-spacing: 0.06em !important;
}
.checkout-secure-note {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-family: 'Lora', serif !important;
  font-size: 0.77rem !important;
  font-style: italic !important;
  color: #9a8870 !important;
}

/* FOOTER */
.checkout-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 1.2rem 1.75rem !important;
  border-top: 1.5px solid rgba(200, 155, 74, 0.12) !important;
  flex-shrink: 0 !important;
  background: #fffdf7 !important;
  border-radius: 0 0 20px 20px !important;
}
.checkout-btn-cancel {
  background: transparent !important;
  color: #9a8870 !important;
  border: 1.5px solid rgba(200, 155, 74, 0.25) !important;
  font-size: 0.85rem !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
.checkout-btn-cancel:hover {
  background: #f7f0e0 !important;
  color: #5a4a35 !important;
}
.checkout-btn-pay {
  background: #c89b4a !important;
  color: #2c2018 !important;
  font-size: 0.92rem !important;
  padding: 12px 28px !important;
  box-shadow: 0 4px 16px rgba(200, 155, 74, 0.35) !important;
  flex: 1 !important;
  justify-content: center !important;
  max-width: 260px !important;
  border-radius: 50px !important;
  border: none !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.checkout-btn-pay:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(200, 155, 74, 0.45) !important;
}

/* SHIPPING ROW & NOTE */
.checkout-shipping-price {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #2c2018 !important;
}
.checkout-shipping-note {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.75rem !important;
  color: #9a8870 !important;
  font-style: italic !important;
  text-align: center !important;
  padding: 0.6rem 1.25rem !important;
  margin: 0 !important;
}

/* DISCOUNT CODE */
.discount-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex-shrink: 0;
}
.discount-input-wrap {
  display: flex !important;
  gap: 8px !important;
}
.discount-input-wrap input {
  all: unset;
  flex: 1;
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: #2c2018;
  background: #fffdf7;
  border: 1.5px solid rgba(200, 155, 74, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.04em;
}
.discount-input-wrap input:focus {
  outline: none;
  border-color: #c89b4a;
  box-shadow: 0 0 0 3px rgba(200, 155, 74, 0.18);
}
.discount-input-wrap input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.discount-apply-btn {
  all: unset;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  background: #2c2018;
  color: #fffdf7;
  padding: 10px 18px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.discount-apply-btn:hover:not(:disabled) {
  background: #c89b4a;
  color: #2c2018;
}
.discount-apply-btn.discount-applied {
  background: #7aad8c !important;
  color: #fff !important;
  cursor: default !important;
}
.discount-apply-btn:disabled {
  cursor: default;
}
.discount-msg {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.78rem !important;
  margin: 0 !important;
  padding: 0 2px !important;
  min-height: 1em;
}
.discount-msg--success { color: #4d8a62 !important; font-weight: 600 !important; }
.discount-msg--error   { color: #c0394b !important; }

/* DISCOUNT ROW IN SUMMARY */
.checkout-discount-val {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #4d8a62 !important;
}

/* Final total row — slightly bolder */
.checkout-total-row--final {
  border-top: 1.5px solid rgba(200, 155, 74, 0.25) !important;
  border-radius: 0 0 10px 10px !important;
}
.checkout-total-row--final .checkout-total-price {
  font-size: 1.25rem !important;
}

/* STRIPE ERROR MESSAGE */
.stripe-error-msg {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.82rem !important;
  color: #c0394b !important;
  min-height: 1.2em;
  font-weight: 600 !important;
}


/* SUCCESS POPUP */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 32, 24, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.success-popup {
  background: #fffdf7;
  border-radius: 20px;
  border: 1.5px solid rgba(200, 155, 74, 0.2);
  box-shadow: 0 24px 64px rgba(44, 32, 24, 0.22);
  padding: 3rem 2.5rem;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.success-popup-icon {
  font-size: 3.5rem;
  line-height: 1;
}
.success-popup-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  font-style: italic !important;
  color: #2c2018 !important;
  margin: 0 !important;
}
.success-popup-msg {
  font-family: 'Lora', serif !important;
  font-size: 0.92rem !important;
  color: #5a4a35 !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* STRIPE ERROR MESSAGE */
.stripe-error-msg {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.82rem !important;
  color: #c0394b !important;
  min-height: 1.2em;
  font-weight: 600 !important;
}

/* Poster currency buttons — mirror .currency-btn */
.poster-currency-btn {
  all: unset;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #9a8870;
  padding: 4px 10px;
  border-radius: 50px;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
  display: inline-block;
}
.poster-currency-btn.active {
  background: #c89b4a !important;
  color: #2c2018 !important;
}
.poster-currency-btn:hover:not(.active) {
  background: #f5e8c0;
  color: #5a4a35;
}
