/* ── Checkout Modal — Andrew Akers ──────────────────────────────────────── */

.checkout-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000; display: none;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.checkout-modal-overlay.active { display: flex; animation: checkoutFadeIn 0.3s ease; }
@keyframes checkoutFadeIn { from { opacity: 0; } to { opacity: 1; } }

.checkout-modal {
    background: rgba(5,4,2,0.96);
    border: 1px solid #979797;
    border-radius: 1.08rem;
    padding: 2.5rem;
    max-width: 860px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #555 #000;
    animation: checkoutSlideIn 0.35s ease;
}
.checkout-modal::-webkit-scrollbar       { width: 6px; }
.checkout-modal::-webkit-scrollbar-track { background: #000; }
.checkout-modal::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }
@keyframes checkoutSlideIn {
    from { opacity: 0; transform: translateY(-28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.checkout-modal-close {
    position: absolute; top: 1.2rem; right: 1.5rem;
    background: none; border: none;
    color: #fff; font-size: 1.5rem;
    cursor: pointer; opacity: 0.55;
    transition: opacity 0.2s; z-index: 1; line-height: 1;
}
.checkout-modal-close:hover { opacity: 1; }

.checkout-modal-title {
    font-family: "rigid-square", sans-serif;
    font-size: 1.5rem; color: #fff;
    margin-bottom: 2rem; text-align: center;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.checkout-layout {
    display: block;
    /* display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem; align-items: start; */
}
@media (max-width: 680px) {
    .checkout-layout        { grid-template-columns: 1fr; }
    .checkout-order-summary { order: -1; }
    .checkout-modal         { padding: 1.5rem; }
}

.checkout-section-title {
    font-family: "rigid-square", sans-serif;
    font-size: 0.68rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: #979797;
    margin-bottom: 1rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(151,151,151,0.4);
}

.product-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.product-tab {
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: #979797;
    background: rgba(255,255,255,0.04);
    border: 1px solid #979797; border-radius: 0.6rem;
    padding: 0.45rem 0.9rem; cursor: pointer;
    transition: all 0.2s; user-select: none;
}
.product-tab:hover  { color: #fff; border-color: #fff; }
.product-tab.active { color: #000; background: #fff; border-color: #fff; }

.product-options        { display: none; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.product-options.active { display: flex; }

.product-option {
    display: flex; align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(151,151,151,0.5);
    border-radius: 0.75rem; padding: 0.85rem 1.1rem;
    cursor: pointer; transition: all 0.2s; gap: 1rem;
}
.product-option:hover    { border-color: #fff;    background: rgba(255,255,255,0.08); }
.product-option.selected { border-color: #fbb302; background: rgba(251,179,2,0.08);  }
.product-option input[type="checkbox"] {
    accent-color: #fbb302; width: 1rem; height: 1rem;
    flex-shrink: 0; cursor: pointer;
}
.product-option-label {
    flex: 1;
    font-family: "rigid-square", sans-serif;
    font-size: 0.82rem; color: #fff; letter-spacing: 0.03em;
}
.product-option-desc  { font-size: 0.68rem; color: #979797; margin-top: 0.2rem; font-family: "rigid-square", sans-serif; }
.product-option-price { font-family: "rigid-square", sans-serif; font-size: 0.9rem; color: #fbb302; white-space: nowrap; }

.checkout-fields {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.85rem; margin-bottom: 1.25rem;
}
.checkout-fields .full { grid-column: 1 / -1; }

.checkout-field { display: flex; flex-direction: column; gap: 0.3rem; position: relative; }
.checkout-field label {
    font-family: "rigid-square", sans-serif;
    font-size: 0.62rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: #979797; line-height: 1.3;
}
.co-field-hint { color: #555; font-size: 0.58rem; text-transform: none; letter-spacing: 0; }

.checkout-field input,
.checkout-field select {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(151,151,151,0.6);
    border-radius: 0.6rem; padding: 0.6rem 0.85rem;
    font-family: "rigid-square", sans-serif;
    font-size: 0.8rem; color: #fff;
    outline: none; width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
}
.checkout-field input::placeholder { color: #444; }
.checkout-field select             { color: #fff; }
.checkout-field select option      { background: #111; color: #fff; }
.checkout-field input:focus,
.checkout-field select:focus {
    border-color: #fbb302;
    box-shadow: 0 0 0 3px rgba(251,179,2,0.15);
}
.checkout-field input.err,
.checkout-field select.err { border-color: #c1121f; box-shadow: 0 0 0 2px rgba(193,18,31,0.12); }
.checkout-field input.ok,
.checkout-field select.ok  { border-color: #2d8653; }

.field-err { font-family: "rigid-square", sans-serif; font-size: 0.62rem; color: #c1121f; display: none; margin-top: 0.1rem; }
.field-err.show { display: block; }

.check-mark {
    position: absolute; right: 0.7rem; bottom: 0.68rem;
    color: #2d8653; font-size: 0.75rem; display: none; pointer-events: none;
}
.checkout-field.is-valid .check-mark { display: block; }

/* Kindle note */
.co-kindle-msg {
    font-family: "rigid-square", sans-serif;
    font-size: 0.75rem; color: #979797;
    background: rgba(251,179,2,0.06);
    border: 1px solid rgba(251,179,2,0.2);
    border-radius: 0.6rem; padding: 0.65rem 0.9rem; line-height: 1.5;
}

/* Card hint above PayPal button — fixes the readability issue */
.co-card-hint {
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; color: #aaa;
    line-height: 1.6; margin-bottom: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(151,151,151,0.3);
    border-radius: 0.6rem;
}

.co-paypal-wrap { margin-top: 0.75rem; }

.co-cart-warning {
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; color: #fbb302;
    text-align: center; margin-top: 0.6rem;
    display: none; padding: 0.4rem 0.7rem;
    border: 1px solid rgba(251,179,2,0.3);
    border-radius: 0.5rem;
    background: rgba(251,179,2,0.05);
}
.co-cart-warning.show { display: block; }

.co-secure {
    display: flex; align-items: center; justify-content: center;
    gap: 0.45rem; font-family: "rigid-square", sans-serif;
    font-size: 0.62rem; color: #555;
    margin-top: 0.75rem; letter-spacing: 0.05em;
}

/* Order summary sidebar */
.checkout-order-summary {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(151,151,151,0.5);
    border-radius: 1rem; padding: 1.5rem;
    position: sticky; top: 1rem;
    margin-top: 1.5rem;
}
.cart-items { margin-bottom: 0.75rem; }
.cart-empty {
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; color: #555;
    text-align: center; padding: 1rem 0;
}
.cart-item {
    display: flex; justify-content: space-between;
    align-items: flex-start; padding: 0.5rem 0;
    border-bottom: 1px solid rgba(151,151,151,0.2);
    gap: 0.5rem;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name  { font-family: "rigid-square", sans-serif; font-size: 0.72rem; color: #fff; line-height: 1.4; flex: 1; }
.cart-item-format { font-size: 0.6rem; color: #979797; display: block; margin-top: 0.15rem; }
.cart-item-price { font-family: "rigid-square", sans-serif; font-size: 0.8rem; color: #fbb302; white-space: nowrap; }
.cart-remove {
    background: none; border: none; color: #555;
    cursor: pointer; font-size: 0.75rem;
    padding: 0 0.2rem; transition: color 0.2s;
    line-height: 1; flex-shrink: 0;
}
.cart-remove:hover { color: #c1121f; }
.cart-totals { margin-top: 0.5rem; }
.cart-line {
    display: flex; justify-content: space-between;
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; color: #979797; padding: 0.25rem 0;
}
.cart-line.total {
    font-size: 0.9rem; color: #fff;
    border-top: 1px solid rgba(151,151,151,0.4);
    margin-top: 0.5rem; padding-top: 0.6rem;
}
.cart-line.total span:last-child { color: #fbb302; }
.co-receipt-note {
    font-family: "rigid-square", sans-serif;
    font-size: 0.62rem; color: #555;
    margin-top: 0.75rem; text-align: center; line-height: 1.5;
}

/* Result overlays */
.co-result-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 4000; align-items: center;
    justify-content: center; padding: 1rem;
}
.co-result-overlay.active { display: flex; animation: checkoutFadeIn 0.25s ease; }

.co-result-modal {
    background: rgba(5,4,2,0.97);
    border: 1px solid #979797;
    border-radius: 1.08rem;
    padding: 3rem 2.5rem;
    max-width: 440px; width: 100%;
    text-align: center;
    animation: checkoutSlideIn 0.3s ease;
}
.co-result-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; font-size: 1.75rem;
}
.co-result-icon.success { background: rgba(45,134,83,0.2);  color: #2d8653; }
.co-result-icon.error   { background: rgba(193,18,31,0.15); color: #c1121f; }
.co-result-modal h2 { font-family: "rigid-square", sans-serif; font-size: 1.35rem; color: #fff; margin-bottom: 0.75rem; }
.co-result-modal p  { font-family: "rigid-square", sans-serif; font-size: 0.78rem; color: #979797; line-height: 1.65; margin-bottom: 0.5rem; }
.co-result-modal strong { color: #fff; }
.co-order-tag {
    display: inline-block;
    background: rgba(251,179,2,0.08);
    border: 1px solid rgba(251,179,2,0.35);
    border-radius: 0.5rem; padding: 0.3rem 0.85rem;
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; letter-spacing: 0.1em; color: #fbb302;
    margin: 0.75rem 0 1.25rem;
}

.co-btn {
    display: inline-block;
    font-family: "rigid-square", sans-serif;
    font-size: 0.78rem; letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.7rem 1.75rem;
    border-radius: 0.9rem; cursor: pointer;
    border: none; text-decoration: none;
    transition: all 0.2s; margin: 0.25rem; line-height: normal;
}
.co-btn-primary       { background: #fff;        color: #000; }
.co-btn-primary:hover { background: #e0e0e0;     color: #000; border: none; padding: 0.7rem 1.75rem; }
.co-btn-ghost         { background: transparent; color: #979797; border: 1px solid #979797; }
.co-btn-ghost:hover   { color: #fff; border-color: #fff; background: transparent; padding: 0.7rem 1.75rem; }

.co-spinner-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 5000; align-items: center; justify-content: center;
}
.co-spinner-overlay.active { display: flex; }
.co-spinner {
    width: 44px; height: 44px;
    border: 3px solid #333;
    border-top-color: #fbb302;
    border-radius: 50%;
    animation: coSpin 0.8s linear infinite;
}
@keyframes coSpin { to { transform: rotate(360deg); } }

/* Buy Now button on book pages */
.buy-now-btn {
    display: inline-block;
    font-family: "rigid-square", sans-serif;
    font-weight: 400; font-size: 0.9rem;
    letter-spacing: 0.05em; color: #fff;
    background: rgba(0,0,0,0.15);
    border: 1px solid #979797;
    border-radius: 1rem;
    padding: 0.8rem 1.8rem; line-height: 1;
    cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.buy-now-btn:hover {
    background: #fff; color: #000;
    border-color: #fff; padding: 0.8rem 1.8rem;
}
/* ── Kindle Amazon links ── */
.co-kindle-amazon-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-family: "rigid-square", sans-serif;
    font-size: 0.75rem;
    color: #979797;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(151,151,151,0.3);
    border-radius: 0.6rem;
    padding: 0.75rem 0.9rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.kindle-amazon-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(151,151,151,0.5) !important;
    border-radius: 0.75rem !important;
    padding: 0.85rem 1.1rem !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    gap: 1rem !important;
    margin-bottom: 0.75rem !important;
    /* override global <a> styles from andrew.css */
    line-height: normal !important;
    color: #fff !important;
    border-width: 1px !important;
    border-radius: 0.75rem !important;
}
.kindle-amazon-link:hover {
    border-color: #fbb302 !important;
    background: rgba(251,179,2,0.08) !important;
    color: #fff !important;
    padding: 0.85rem 1.1rem !important;
}

.kindle-link-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}
.kindle-link-label {
    font-family: "rigid-square", sans-serif;
    font-size: 0.82rem;
    color: #fff;
    letter-spacing: 0.03em;
}
.kindle-link-desc {
    font-family: "rigid-square", sans-serif;
    font-size: 0.68rem;
    color: #979797;
}
.kindle-link-amazon {
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem;
    color: #fbb302;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}








/* 
.checkout-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000; display: none;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.checkout-modal-overlay.active { display: flex; animation: checkoutFadeIn 0.3s ease; }
@keyframes checkoutFadeIn { from { opacity: 0; } to { opacity: 1; } }

.checkout-modal {
    background: rgba(5,4,2,0.96);
    border: 1px solid #979797;
    border-radius: 1.08rem;
    padding: 2.5rem;
    max-width: 860px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #555 #000;
    animation: checkoutSlideIn 0.35s ease;
}
.checkout-modal::-webkit-scrollbar       { width: 6px; }
.checkout-modal::-webkit-scrollbar-track { background: #000; }
.checkout-modal::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }
@keyframes checkoutSlideIn {
    from { opacity: 0; transform: translateY(-28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.checkout-modal-close {
    position: absolute; top: 1.2rem; right: 1.5rem;
    background: none; border: none;
    color: #fff; font-size: 1.5rem;
    cursor: pointer; opacity: 0.55;
    transition: opacity 0.2s; z-index: 1; line-height: 1;
}
.checkout-modal-close:hover { opacity: 1; }

.checkout-modal-title {
    font-family: "rigid-square", sans-serif;
    font-size: 1.5rem; color: #fff;
    margin-bottom: 2rem; text-align: center;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem; align-items: start;
}
@media (max-width: 680px) {
    .checkout-layout        { grid-template-columns: 1fr; }
    .checkout-order-summary { order: -1; }
    .checkout-modal         { padding: 1.5rem; }
}

.checkout-section-title {
    font-family: "rigid-square", sans-serif;
    font-size: 0.68rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: #979797;
    margin-bottom: 1rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(151,151,151,0.4);
}

.product-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.product-tab {
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: #979797;
    background: rgba(255,255,255,0.04);
    border: 1px solid #979797; border-radius: 0.6rem;
    padding: 0.45rem 0.9rem; cursor: pointer;
    transition: all 0.2s; user-select: none;
}
.product-tab:hover  { color: #fff; border-color: #fff; }
.product-tab.active { color: #000; background: #fff; border-color: #fff; }

.product-options        { display: none; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.product-options.active { display: flex; }

.product-option {
    display: flex; align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(151,151,151,0.5);
    border-radius: 0.75rem; padding: 0.85rem 1.1rem;
    cursor: pointer; transition: all 0.2s; gap: 1rem;
}
.product-option:hover    { border-color: #fff;    background: rgba(255,255,255,0.08); }
.product-option.selected { border-color: #fbb302; background: rgba(251,179,2,0.08);  }
.product-option input[type="checkbox"] {
    accent-color: #fbb302; width: 1rem; height: 1rem;
    flex-shrink: 0; cursor: pointer;
}
.product-option-label {
    flex: 1;
    font-family: "rigid-square", sans-serif;
    font-size: 0.82rem; color: #fff; letter-spacing: 0.03em;
}
.product-option-desc  { font-size: 0.68rem; color: #979797; margin-top: 0.2rem; font-family: "rigid-square", sans-serif; }
.product-option-price { font-family: "rigid-square", sans-serif; font-size: 0.9rem; color: #fbb302; white-space: nowrap; }

.checkout-fields {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.85rem; margin-bottom: 1.25rem;
}
.checkout-fields .full { grid-column: 1 / -1; }

.checkout-field { display: flex; flex-direction: column; gap: 0.3rem; position: relative; }
.checkout-field label {
    font-family: "rigid-square", sans-serif;
    font-size: 0.62rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: #979797; line-height: 1.3;
}
.co-field-hint { color: #555; font-size: 0.58rem; text-transform: none; letter-spacing: 0; }

.checkout-field input,
.checkout-field select {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(151,151,151,0.6);
    border-radius: 0.6rem; padding: 0.6rem 0.85rem;
    font-family: "rigid-square", sans-serif;
    font-size: 0.8rem; color: #fff;
    outline: none; width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
}
.checkout-field input::placeholder { color: #444; }
.checkout-field select             { color: #fff; }
.checkout-field select option      { background: #111; color: #fff; }
.checkout-field input:focus,
.checkout-field select:focus {
    border-color: #fbb302;
    box-shadow: 0 0 0 3px rgba(251,179,2,0.15);
}
.checkout-field input.err,
.checkout-field select.err { border-color: #c1121f; box-shadow: 0 0 0 2px rgba(193,18,31,0.12); }
.checkout-field input.ok,
.checkout-field select.ok  { border-color: #2d8653; }

.field-err { font-family: "rigid-square", sans-serif; font-size: 0.62rem; color: #c1121f; display: none; margin-top: 0.1rem; }
.field-err.show { display: block; }

.check-mark {
    position: absolute; right: 0.7rem; bottom: 0.68rem;
    color: #2d8653; font-size: 0.75rem; display: none; pointer-events: none;
}
.checkout-field.is-valid .check-mark { display: block; }

.co-kindle-msg {
    font-family: "rigid-square", sans-serif;
    font-size: 0.75rem; color: #979797;
    background: rgba(251,179,2,0.06);
    border: 1px solid rgba(251,179,2,0.2);
    border-radius: 0.6rem; padding: 0.65rem 0.9rem; line-height: 1.5;
}

.co-card-hint {
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; color: #aaa;
    line-height: 1.6; margin-bottom: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(151,151,151,0.3);
    border-radius: 0.6rem;
}

.co-paypal-wrap { margin-top: 0.75rem; }

.co-cart-warning {
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; color: #fbb302;
    text-align: center; margin-top: 0.6rem;
    display: none; padding: 0.4rem 0.7rem;
    border: 1px solid rgba(251,179,2,0.3);
    border-radius: 0.5rem;
    background: rgba(251,179,2,0.05);
}
.co-cart-warning.show { display: block; }

.co-secure {
    display: flex; align-items: center; justify-content: center;
    gap: 0.45rem; font-family: "rigid-square", sans-serif;
    font-size: 0.62rem; color: #555;
    margin-top: 0.75rem; letter-spacing: 0.05em;
}

.checkout-order-summary {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(151,151,151,0.5);
    border-radius: 1rem; padding: 1.5rem;
    position: sticky; top: 1rem;
}
.cart-items { margin-bottom: 0.75rem; }
.cart-empty {
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; color: #555;
    text-align: center; padding: 1rem 0;
}
.cart-item {
    display: flex; justify-content: space-between;
    align-items: flex-start; padding: 0.5rem 0;
    border-bottom: 1px solid rgba(151,151,151,0.2);
    gap: 0.5rem;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name  { font-family: "rigid-square", sans-serif; font-size: 0.72rem; color: #fff; line-height: 1.4; flex: 1; }
.cart-item-format { font-size: 0.6rem; color: #979797; display: block; margin-top: 0.15rem; }
.cart-item-price { font-family: "rigid-square", sans-serif; font-size: 0.8rem; color: #fbb302; white-space: nowrap; }
.cart-remove {
    background: none; border: none; color: #555;
    cursor: pointer; font-size: 0.75rem;
    padding: 0 0.2rem; transition: color 0.2s;
    line-height: 1; flex-shrink: 0;
}
.cart-remove:hover { color: #c1121f; }
.cart-totals { margin-top: 0.5rem; }
.cart-line {
    display: flex; justify-content: space-between;
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; color: #979797; padding: 0.25rem 0;
}
.cart-line.total {
    font-size: 0.9rem; color: #fff;
    border-top: 1px solid rgba(151,151,151,0.4);
    margin-top: 0.5rem; padding-top: 0.6rem;
}
.cart-line.total span:last-child { color: #fbb302; }
.co-receipt-note {
    font-family: "rigid-square", sans-serif;
    font-size: 0.62rem; color: #555;
    margin-top: 0.75rem; text-align: center; line-height: 1.5;
}

.co-result-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 4000; align-items: center;
    justify-content: center; padding: 1rem;
}
.co-result-overlay.active { display: flex; animation: checkoutFadeIn 0.25s ease; }

.co-result-modal {
    background: rgba(5,4,2,0.97);
    border: 1px solid #979797;
    border-radius: 1.08rem;
    padding: 3rem 2.5rem;
    max-width: 440px; width: 100%;
    text-align: center;
    animation: checkoutSlideIn 0.3s ease;
}
.co-result-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; font-size: 1.75rem;
}
.co-result-icon.success { background: rgba(45,134,83,0.2);  color: #2d8653; }
.co-result-icon.error   { background: rgba(193,18,31,0.15); color: #c1121f; }
.co-result-modal h2 { font-family: "rigid-square", sans-serif; font-size: 1.35rem; color: #fff; margin-bottom: 0.75rem; }
.co-result-modal p  { font-family: "rigid-square", sans-serif; font-size: 0.78rem; color: #979797; line-height: 1.65; margin-bottom: 0.5rem; }
.co-result-modal strong { color: #fff; }
.co-order-tag {
    display: inline-block;
    background: rgba(251,179,2,0.08);
    border: 1px solid rgba(251,179,2,0.35);
    border-radius: 0.5rem; padding: 0.3rem 0.85rem;
    font-family: "rigid-square", sans-serif;
    font-size: 0.72rem; letter-spacing: 0.1em; color: #fbb302;
    margin: 0.75rem 0 1.25rem;
}

.co-btn {
    display: inline-block;
    font-family: "rigid-square", sans-serif;
    font-size: 0.78rem; letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.7rem 1.75rem;
    border-radius: 0.9rem; cursor: pointer;
    border: none; text-decoration: none;
    transition: all 0.2s; margin: 0.25rem; line-height: normal;
}
.co-btn-primary       { background: #fff;        color: #000; }
.co-btn-primary:hover { background: #e0e0e0;     color: #000; border: none; padding: 0.7rem 1.75rem; }
.co-btn-ghost         { background: transparent; color: #979797; border: 1px solid #979797; }
.co-btn-ghost:hover   { color: #fff; border-color: #fff; background: transparent; padding: 0.7rem 1.75rem; }

.co-spinner-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 5000; align-items: center; justify-content: center;
}
.co-spinner-overlay.active { display: flex; }
.co-spinner {
    width: 44px; height: 44px;
    border: 3px solid #333;
    border-top-color: #fbb302;
    border-radius: 50%;
    animation: coSpin 0.8s linear infinite;
}
@keyframes coSpin { to { transform: rotate(360deg); } }

.buy-now-btn {
    display: inline-block;
    font-family: "rigid-square", sans-serif;
    font-weight: 400; font-size: 0.9rem;
    letter-spacing: 0.05em; color: #fff;
    background: rgba(0,0,0,0.15);
    border: 1px solid #979797;
    border-radius: 1rem;
    padding: 0.8rem 1.8rem; line-height: 1;
    cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.buy-now-btn:hover {
    background: #fff; color: #000;
    border-color: #fff; padding: 0.8rem 1.8rem;
} */