/* oga-checkout.css — _OgaCheckout: ONE standalone card (to inject in any page or modal) with two parts,
   "Order Summary" (Description, Qty, Price, Sub-Total; Sub-Total / Discount / Total on the right half on a
   desktop) and "Review and Pay" (payment.css: the methods). In the site's look; sizes step down at 991px,
   767px and 480px. */
.ogacheckout {
    --co-navy: #0B2C57; --co-navy2: #0A2340; --co-blue: #1F7BC0; --co-cyan: #2BB3E3; --co-red: #E63329; --co-redD: #C4271E;
    --co-border: #CFE6F5; --co-line: #E3EEF6; --co-muted: #6C8098; --co-section: #E9F5FC; --co-section2: #F2FAFF;
    font-family: 'Nunito', system-ui, -apple-system, sans-serif; color: var(--co-navy); text-align: left;
    width: 100%; max-width: 780px; margin: 0 auto; background: #fff; border: 1.5px solid var(--co-border); border-radius: 18px; overflow: hidden;
}
.ogacheckout[hidden] { display: none; }
.ogacheckout *, .ogacheckout *::before, .ogacheckout *::after { box-sizing: border-box; }
.ogacheckout-part { padding: 18px 20px 20px; }
.ogacheckout-part + .ogacheckout-part { border-top: 1px solid var(--co-line); }
.ogacheckout .ogacheckout-h { margin: 0 0 14px; font: 700 18px 'Poppins', system-ui, sans-serif; color: var(--co-navy); letter-spacing: 0; }
.ogacheckout-err { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; background: #FDECEB; color: var(--co-redD); font-weight: 700; font-size: 13px; }
.ogacheckout-err:empty { display: none !important; }
.ogacheckout-err.is-pending { background: var(--co-section2); color: var(--co-blue); }

/* the order: 4 columns */
.ogacheckout-tablewrap { overflow-x: auto; margin: 0 0 12px; }
.ogacheckout .ogacheckout-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; color: var(--co-navy); }
.ogacheckout .ogacheckout-table th { padding: 10px 10px; background: var(--co-section2); font: 800 12.5px 'Nunito', system-ui, sans-serif; color: var(--co-muted); text-transform: uppercase; letter-spacing: .03em; text-align: left; border: none; white-space: nowrap; }
.ogacheckout .ogacheckout-table th:first-child { border-radius: 10px 0 0 10px; }
.ogacheckout .ogacheckout-table th:last-child { border-radius: 0 10px 10px 0; }
.ogacheckout .ogacheckout-table td { padding: 12px 10px; border-bottom: 1px solid var(--co-line); font-weight: 700; color: var(--co-navy); vertical-align: top; }
.ogacheckout .ogacheckout-table td:first-child { overflow-wrap: anywhere; }
.ogacheckout .ogacheckout-table th.num, .ogacheckout .ogacheckout-table td.text-right { text-align: right; white-space: nowrap; }
.ogacheckout .ogacheckout-table td:last-child { font-weight: 800; }
.ogacheckout-table tr.is-loading td span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--co-line), var(--co-section2), var(--co-line)); background-size: 200% 100%; animation: ogacoShimmer 1.2s linear infinite; }
@keyframes ogacoShimmer { to { background-position: -200% 0; } }

/* the totals: the right half on a desktop, like the old design */
.ogacheckout-totals { display: flex; flex-direction: column; gap: 6px; width: 50%; margin-left: auto; }
.ogacheckout-trow { display: flex; justify-content: space-between; gap: 12px; padding: 0 10px; font-size: 14px; font-weight: 700; color: var(--co-muted); }
.ogacheckout-trow.total { margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--co-section2); color: var(--co-navy); font-weight: 800; align-items: center; }
.ogacheckout-trow.total span:last-child { font: 800 19px 'Poppins', system-ui, sans-serif; }

/* the coupon */
.ogacheckout-coupon { margin-top: 16px; }
.ogacheckout-coupon-row { display: flex; gap: 8px; }
/* specific enough to win over a page's own input rules (e.g. gift.css: .gift-page input[type="text"]) */
.ogacheckout .ogacheckout-coupon-row input.ogacheckout-field { flex: 1 1 auto; min-width: 0; height: 46px; border: 1.5px solid var(--co-border); border-radius: 12px; padding: 0 12px; font: 700 14px 'Nunito', system-ui, sans-serif; color: var(--co-navy); outline: none; background: #fff; box-shadow: none; }
.ogacheckout .ogacheckout-coupon-row input.ogacheckout-field:focus { border-color: var(--co-cyan); box-shadow: 0 0 0 2px rgba(43,179,227,.2); }
.ogacheckout-apply { flex: none; height: 46px; padding: 0 20px; border: none; border-radius: 12px; background: var(--co-navy); color: #fff; font: 800 14px 'Poppins', system-ui, sans-serif; cursor: pointer; }
.ogacheckout-apply:hover { background: var(--co-navy2); }
.ogacheckout-coupon .ogacheckout-err { margin: 8px 0 0; }

/* Pay */
.ogacheckout-pay { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 6px; border: none; border-radius: 12px; background: var(--co-red); color: #fff; font: 800 16px 'Poppins', system-ui, sans-serif; cursor: pointer; transition: background .15s ease, transform .1s ease; text-decoration: none; }
.ogacheckout-pay:hover { background: var(--co-redD); color: #fff; }
.ogacheckout-pay:active { transform: scale(.99); }
.ogacheckout-pay:disabled { opacity: .7; cursor: progress; }
.ogacheckout-pay:disabled::after { content: ''; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: pay-spin .6s linear infinite; }

/* ---- sizes step down ---- */
@media (max-width: 991px) {
    .ogacheckout-part { padding: 16px 18px 18px; }
    .ogacheckout .ogacheckout-h { font-size: 17px; }
    .ogacheckout-totals { width: 60%; }
}
@media (max-width: 767px) {
    .ogacheckout .ogacheckout-table { font-size: 13px; }
    .ogacheckout .ogacheckout-table th { font-size: 11.5px; padding: 8px 6px; }
    .ogacheckout .ogacheckout-table td { padding: 10px 6px; }
    .ogacheckout-totals { width: 100%; }
    .ogacheckout-trow.total span:last-child { font-size: 18px; }
    .ogacheckout-pay { min-height: 50px; font-size: 15px; }
}
@media (max-width: 480px) {
    .ogacheckout { border-radius: 16px; }
    .ogacheckout-part { padding: 14px 12px 16px; }
    .ogacheckout .ogacheckout-h { font-size: 16px; margin-bottom: 12px; }
    .ogacheckout .ogacheckout-table { font-size: 12.5px; }
    .ogacheckout .ogacheckout-table th { font-size: 10.5px; letter-spacing: 0; padding: 7px 4px; }
    .ogacheckout .ogacheckout-table td { padding: 9px 4px; }
    .ogacheckout-trow { font-size: 13px; padding: 0 4px; }
    .ogacheckout-apply { padding: 0 14px; font-size: 13.5px; }
}
