/* ==========================================================================
   Payment - SimplePay checkout states
   Covers the test-mode banner, the order header on the delivery page and the
   failed-payment screen. Cart/checkout layout itself lives in cart.css.
   ========================================================================== */

/* Test mode banner --------------------------------------------------------- */
/* Purple rather than red: this is an advisory, not an error, and it must not
   read as "something went wrong" on an otherwise successful order. */

.payment-test-banner {
    max-width: 900px;
    margin: 1.5rem auto 0;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(var(--color-secondary-rgb), 0.45);
    border-radius: var(--radius-sm);
    background: rgba(var(--color-secondary-rgb), 0.1);
    color: var(--color-secondary-hover);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Order reference on the delivery page ------------------------------------- */

.checkout-order-ref {
    max-width: 900px;
    margin: 0 auto 2rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: center;
}

.checkout-order-ref strong {
    color: var(--color-text-main);
    font-family: var(--font-code);
    letter-spacing: 0.05em;
}

.checkout-order-hint {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--color-text-dim);
    font-size: 0.85rem;
}

/* Failed payment ----------------------------------------------------------- */

.payment-status {
    max-width: 560px;
    margin: 0 auto 3rem;
    padding: 2rem;
    border: 1px solid var(--color-border-solid);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-glass);
    text-align: center;
}

.payment-status p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.payment-status-fail {
    border-color: rgba(var(--color-primary-rgb), 0.35);
}

/* Receipt email, above the cart's checkout button -------------------------- */

.cart-email-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cart-email-input {
    width: 100%;
    margin-bottom: 0.9rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border-solid);
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-email-input::placeholder {
    color: var(--color-text-dim);
}

.cart-email-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.18);
}

/* Reassurance line under the cart's checkout button ------------------------ */

.cart-payment-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    color: var(--color-text-dim);
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-align: center;
}

.cart-payment-lock {
    font-size: 0.9rem;
    line-height: 1;
}
