/* Akora Links G02: responsive Quick Checkout + lightweight checkout polish. */
.quick-checkout-overlay[hidden], .quick-checkout-overlay [hidden] { display: none !important; }
body.quick-checkout-open { overflow: hidden; }
.quick-checkout-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(10, 31, 27, .64); overflow: auto;
  overscroll-behavior: contain;
}
.quick-checkout-card {
  width: min(100%, 490px); max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto;
  background: #fff; color: #162c24; border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 25, 18, .3);
  padding: clamp(16px, 4vw, 26px); box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.quick-checkout-card * { box-sizing: border-box; min-width: 0; }
.quick-checkout-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.quick-checkout-eyebrow { color: #087456; font-size: 12px; font-weight: 800; }
.quick-checkout-header h2 { font-size: clamp(20px, 5vw, 26px); margin: 5px 0; line-height: 1.2; color: #153d30; }
.quick-checkout-header p { font-size: 13px; line-height: 1.5; color: #64766e; margin: 0; }
.quick-checkout-close { flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #dae8df;
  background: #f7faf8; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; color: #245244; }
.quick-checkout-close:hover { background: #e7f4eb; }
.quick-checkout-summary { background: #f1faf3; border: 1px solid #cde9d6; border-radius: 15px;
  padding: 15px; margin: 18px 0 16px; }
.quick-checkout-network { display: inline-flex; background: #fff; color: #0b6746; border-radius: 7px;
  padding: 5px 9px; font-weight: 800; font-size: 12px; }
.quick-checkout-product { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; margin-top: 13px; }
.quick-checkout-product strong { display: block; font-size: 24px; line-height: 1.2; color: #173d30; }
.quick-checkout-product small { display: block; font-size: 12px; color: #657b6f; margin-top: 4px; overflow-wrap: anywhere; }
.quick-checkout-price { text-align: right; flex: 0 0 auto; }
.quick-checkout-price span { display: block; color: #557268; font-size: 12px; }
.quick-checkout-price strong { font-size: 22px; white-space: nowrap; }
.quick-checkout-form { display: grid; gap: 10px; }
.quick-checkout-field label { display: block; margin-bottom: 7px; color: #254b3a; font-weight: 800; font-size: 13px; }
.quick-checkout-field input { width: 100%; min-height: 50px; border: 1px solid #b7cbc1;
  background: #fff; border-radius: 11px; padding: 11px 14px; font: 500 16px 'DM Sans', system-ui, sans-serif;
  color: #172d23; outline: none; }
.quick-checkout-field input:focus { border-color: #15865b; box-shadow: 0 0 0 3px rgba(21,134,91,.13); }
.quick-checkout-field input.is-invalid { border-color: #c83c37; }
.quick-checkout-warning { font-size: 12px; line-height: 1.45; color: #876324; background: #fff8e7;
  padding: 10px 11px; border-radius: 9px; margin: 0; }
.quick-checkout-terms { display: flex; align-items: flex-start; gap: 9px; font-size: 12px;
  line-height: 1.5; cursor: pointer; color: #344c40; margin-top: 3px; }
.quick-checkout-terms input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: #128659; }
.quick-checkout-submit { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: center;
  gap: 12px; border: none; border-radius: 11px; background: #087456; color: #fff;
  font: 800 14px 'DM Sans', system-ui, sans-serif; cursor: pointer; padding: 12px 15px; }
.quick-checkout-submit:hover:not(:disabled) { background: #065b43; }
.quick-checkout-submit:disabled { opacity: .65; cursor: wait; }
.quick-checkout-alert { background: #fff0ec; border: 1px solid #e6bcb6; color: #8a2521;
  padding: 10px 12px; border-radius: 9px; margin-bottom: 10px; font-size: 13px; }
.quick-checkout-stage { text-align: center; font-size: 12px; color: #0f6b4d; min-height: 1em; }
.quick-checkout-card .field-error { display: block; color: #af352c; font-size: 12px; line-height: 1.4; }
.quick-checkout-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5ede8;
  display: flex; flex-wrap: wrap; gap: 10px 15px; align-items: center; justify-content: space-between;
  color: #587367; font-size: 11px; }
.quick-checkout-support { position: relative; }
.quick-checkout-support summary { color: #087456; font-weight: 800; cursor: pointer; padding: 8px 3px; }
.quick-checkout-support-links { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.quick-checkout-support-links a { color: #0a684d; font-size: 12px; font-weight: 700; }
.quick-checkout-card :focus-visible { outline: 3px solid #2da977; outline-offset: 2px; }
.checkout-page .checkout-main { padding-top: 22px; }
.checkout-page .checkout-heading { margin-bottom: 17px; }
.checkout-page .checkout-heading p { max-width: 42ch; }
.checkout-support-link { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px;
  border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #f0f8f3; color: #315544; font-size: 12px; }
.checkout-support-link a { font-weight: 800; color: #087456; text-decoration: underline; text-underline-offset: 3px; }
.network-helpful-link a { color: #087456; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width: 600px) {
  .quick-checkout-overlay { align-items: center; padding: 8px; }
  .quick-checkout-card { border-radius: 16px; max-height: calc(100dvh - 16px); padding: 16px; }
  .quick-checkout-summary { margin: 12px 0; padding: 12px; }
  .quick-checkout-product strong { font-size: 22px; }
  .quick-checkout-price strong { font-size: 20px; }
  .checkout-page .checkout-main { padding-top: 14px; }
}

/* G02 feedback: compact brand icon, no wasted mobile height. */
.quick-checkout-identity { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; }
.quick-checkout-logo { display: block; height: 32px; width: 32px; flex: 0 0 32px; object-fit: cover; border-radius: 9px; }
.quick-checkout-identity-copy { display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; color: #173d30; }
.quick-checkout-identity-copy strong { font-family: 'Manrope', 'DM Sans', system-ui, sans-serif; font-weight: 800; }
.quick-checkout-identity-copy strong b { color: #087456; }
.quick-checkout-identity-copy small { color: #64766e; font-size: 10px; margin-top: 2px; }
.quick-checkout-footer .quick-checkout-privacy-link { color: #087456; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }

/* G02-04: clear Akora-green modal perimeter; retain accessible validation styling. */
.quick-checkout-card {
  border: 3px solid #168b5b;
  box-shadow: 0 0 0 3px rgba(64, 192, 119, .17), 0 25px 80px rgba(0, 25, 18, .30);
}
.quick-checkout-summary { border-color: #90d0af; }
.quick-checkout-field input { border-color: #91bca4; }

/* G02-06: checkout entrance animation and backdrop blur */

.quick-checkout-overlay {
    background: rgba(8, 28, 23, 0.54);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
}

@keyframes akoraCheckoutZoomIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.quick-checkout-overlay:not([hidden]) .quick-checkout-card {
    animation: akoraCheckoutZoomIn 260ms
        cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .quick-checkout-overlay:not([hidden]) .quick-checkout-card {
        animation: none;
    }
}
