/* Buttons reusing .plan-cta styling need the browser button reset — the
   class itself already carries all the visual styling from pricing.css */
button.plan-cta {
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}

/* Selected state for bundle cards / journal add-on card */
.plan-card.selected,
.journal-tier-card.selected {
    border-color: var(--accent);
    background: var(--glow);
    box-shadow: 0 0 0 1px var(--accent);
}
.plan-card.selected .js-select-bundle,
.journal-tier-card.selected .js-select-journal {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

main#payment-container { padding-bottom: 8rem; } /* leave room for the sticky cart bar */

.credit-section { max-width: 1100px; margin: 4rem auto 1rem; }
.credit-balance { margin: 1rem 0 1.25rem; color: var(--text-secondary, #aaa); }
.credit-balance strong { color: var(--accent, #c9a25e); font-size: 1.25rem; }
.credit-section .alc-item-price small { display: block; margin-top: .25rem; opacity: .75; }

#alc-vs-bundle { cursor: pointer; }
#alc-vs-bundle:hover { text-decoration: underline; }

.state-box {
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    padding: 4rem 0; color: var(--muted); font-size: 0.95rem;
}
.spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--input-border); border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-banner {
    background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.3);
    color: var(--negative); border-radius: 14px; padding: 1rem 1.2rem; font-size: 0.9rem; text-align: center;
}

/* ── STICKY CART BAR ── */
.cart-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    padding: 1rem 2rem;
    background: var(--surface); border-top: 1px solid var(--surface-border);
    backdrop-filter: blur(20px);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.cart-info { flex: 1; min-width: 180px; }
.cart-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.cart-price { font-size: 1.3rem; font-weight: 800; color: var(--text-strong); margin-top: 0.1rem; }

.cart-currency { display: flex; flex-direction: column; gap: 0.3rem; }
.cart-currency label { font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cart-currency select {
    background: var(--select-bg); color: var(--select-color);
    border: 1px solid var(--input-border); border-radius: 10px;
    padding: 0.5rem 0.7rem; font-family: inherit; font-size: 0.85rem; cursor: pointer; outline: none;
}

.cart-methods { display: flex; align-items: center; gap: 0.6rem; }
.method-icon {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    width: 66px; padding: 0.5rem 0.4rem;
    border-radius: 14px; border: 1px solid transparent;
    text-decoration: none; color: var(--text);
    transition: all 0.2s ease; cursor: pointer;
}
.method-icon:hover { border-color: rgba(194,136,64,0.35); background: rgba(255,255,255,0.04); }
.method-icon svg { width: 26px; height: 26px; }
.method-icon span { font-size: 0.66rem; font-weight: 600; text-align: center; line-height: 1.15; }

.cart-methods.disabled .method-icon {
    opacity: 0.35; pointer-events: none;
}
.cart-methods.busy .method-icon {
    opacity: 0.5; pointer-events: none;
}

@media (max-width: 780px) {
    .cart-bar { flex-direction: column; align-items: stretch; gap: 0.9rem; padding: 1rem 1.2rem 1.2rem; }
    .cart-currency { flex-direction: row; align-items: center; justify-content: space-between; }
    .cart-methods { justify-content: space-between; }
    .method-icon { width: auto; flex: 1; }
    main#payment-container { padding-bottom: 11rem; }
}
@media (max-width: 420px) {
    .cart-methods { flex-wrap: wrap; }
    .method-icon { flex: 1 1 30%; min-width: 70px; }
    .method-icon span { font-size: 0.6rem; }
}
