/**
 * Botanical Teas Loyalty Points
 *
 * Colours: sage green (var(--bt-accent, #57316d)), gold accent (var(--bt-gold, #e0bd45)), cream (#faf8f0)
 * Designed to sit comfortably within the Botanical theme.
 */

/* ── Box sizing ─────────────────────────────────────── */

.btl-rewards-page *,
.btl-cart-widget *,
.btl-earn-message {
    box-sizing: border-box;
}

/* ── Balance card (My Rewards page) ────────────────────────────────── */

.btl-balance-card {
    background: var(--bt-accent, #57316d);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-bottom: 28px;
    max-width: 420px;
}

.btl-balance-number {
    font-size: 3em;
    font-weight: 700;
    line-height: 1.1;
}

.btl-balance-label {
    font-size: 1em;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.btl-balance-value {
    font-size: 1.15em;
    margin-top: 4px;
    opacity: 0.9;
}

.btl-balance-value .woocommerce-Price-amount {
    color: #fff !important;
}

.btl-redeem-link {
    display: inline-block;
    margin-top: 16px;
    background: var(--bt-gold, #e0bd45);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.2s;
}

.btl-redeem-link:hover {
    background: #c6a329;
    color: #fff !important;
}

.btl-min-notice {
    margin-top: 12px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* ── How to earn ───────────────────────────────────────────────────── */

.btl-how-to-earn {
    background: #faf8f0;
    border: 1px solid #e8e4d8;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
    max-width: 520px;
}

.btl-how-to-earn h3 {
    margin: 0 0 12px;
    font-size: 1.05em;
    color: #5c4a2a;
}

.btl-how-to-earn ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.btl-how-to-earn li {
    padding: 6px 0 6px 22px;
    position: relative;
    color: #555;
    font-size: 0.95em;
}

.btl-how-to-earn li::before {
    content: "\2726"; /* small diamond */
    position: absolute;
    left: 0;
    color: var(--bt-accent, #57316d);
    font-size: 1em;
}

/* ── Points history table ──────────────────────────────────────────── */

.btl-history {
    margin-bottom: 28px;
}

.btl-history h3 {
    font-size: 1.05em;
    color: #333;
    margin-bottom: 12px;
}

.btl-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}

.btl-history-table th {
    background: #faf8f0;
    border-bottom: 2px solid #e8e4d8;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #5c4a2a;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btl-history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.btl-positive {
    color: #3a7d44 !important;
    font-weight: 600;
}

.btl-negative {
    color: #c0392b !important;
    font-weight: 600;
}

.btl-no-history {
    color: #888;
    font-style: italic;
    padding: 20px 0;
}

/* ── Cart redemption widget ────────────────────────────────────────── */

.btl-cart-widget {
    background: #faf8f0;
    border: 1px solid #e8e4d8;
    border-left: 3px solid var(--bt-gold, #e0bd45);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.94em;
}

.btl-cart-balance {
    margin-bottom: 10px;
    color: #555;
}

.btl-cart-balance strong {
    color: #3a7d44;
}

.btl-cart-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btl-redeem-input {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
}

.btl-apply-btn {
    background: var(--bt-gold, #e0bd45) !important;
    color: #fff !important;
    border: none !important;
    padding: 7px 18px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em !important;
    transition: background 0.2s;
}

.btl-apply-btn:hover {
    background: #c6a329 !important;
}

.btl-cart-applied {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btl-applied-label {
    color: #3a7d44;
    font-weight: 600;
}

.btl-remove-points {
    color: #c0392b !important;
    font-size: 0.88em;
    text-decoration: underline;
}

.btl-cart-message {
    margin-top: 8px;
    font-size: 0.9em;
    color: #555;
}

.btl-cart-message.btl-error {
    color: #c0392b;
}

.btl-cart-message.btl-success {
    color: #3a7d44;
}

.btl-cart-min-notice {
    color: #888;
    font-size: 0.9em;
}

/* ── Product earn message ──────────────────────────────────────────── */

.btl-earn-message {
    color: var(--bt-accent, #57316d);
    font-size: 0.88em;
    margin: 8px 0 12px;
    padding: 4px 0;
    font-weight: 500;
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .btl-balance-card {
        padding: 24px 16px;
        max-width: 100%;
    }

    .btl-balance-number {
        font-size: 2.2em;
    }

    .btl-cart-form {
        flex-direction: column;
        align-items: stretch;
    }

    .btl-redeem-input {
        width: 100%;
    }

    .btl-history-table th,
    .btl-history-table td {
        padding: 8px;
    }
}

/* Account overview: the balance and actual earning rules share one clear reading area. */
.btl-rewards-intro{margin:0 0 28px}.btl-rewards-intro h2{font-family:var(--bt-font-heading,Georgia,serif);font-size:clamp(26px,3vw,36px);line-height:1.2;margin:8px 0 12px}.btl-rewards-intro>p:last-child{font-size:14px;color:var(--bt-muted,#716477)}.btl-rewards-overview{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:24px;align-items:stretch;margin-bottom:32px}.btl-rewards-overview .btl-balance-card{max-width:none;margin:0;border-radius:3px;padding:28px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center}.btl-rewards-overview .btl-how-to-earn{max-width:none;margin:0;border-radius:3px;background:#f8f5ef;border:0;padding:24px}.btl-rewards-page .btl-redeem-link,.btl-rewards-page .btl-redeem-link:hover{color:#211828!important}.btl-rewards-page .btl-redeem-link:focus-visible{outline:2px solid #fff;outline-offset:4px}.btl-rewards-page .btl-reward-terms{margin:18px 0 0;font-size:12px;line-height:1.7;color:#62546a;border-top:1px solid #e2dce5;padding-top:14px}.btl-rewards-page .btl-min-notice{opacity:1}.btl-rewards-page .btl-no-history{font-size:14px;padding:18px 0;border-top:1px solid #e2dce5}@media(max-width:700px){.btl-rewards-overview{grid-template-columns:minmax(0,1fr);gap:16px}.btl-rewards-overview .btl-balance-card{padding:24px}.btl-rewards-overview .btl-how-to-earn{padding:22px}}
