/* ============================================================
   rewards.css, points pill, product card earn line, my-account.
   Uses tokens from design-system.css.
   ============================================================ */

/* === Header points pill === */
.points-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 42px;
    border-radius: var(--r-pill);
    background: #eff7f6;
    color: var(--ink);
    font-weight: 600;
    font-size: 12.5px;
    border: 1.5px solid rgba(14, 15, 18, .08);
    text-decoration: none;
    transition: transform .14s var(--ease), border-color .14s var(--ease);
}
.points-pill:hover {
    transform: translateY(-1px);
    border-color: var(--ink);
}
.points-pill .star {
    width: 16px;
    height: 16px;
    color: var(--amber);
    flex-shrink: 0;
}
.points-pill b {
    font-family: var(--fb);
    font-weight: 800;
    letter-spacing: -.01em;
}
.points-pill .tier {
    font-family: var(--fm);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--slate);
    margin-left: 4px;
}

/* Hide the pill below the tablet breakpoint, phones lose the secondary
   chrome and we keep the basket button as the priority signal. */
@media (max-width: 1180px) {
    .points-pill { display: none; }
}

/* === Product card "Earn N points" line === */
.prod .points-earn {
    font-family: var(--fm);
    font-size: 10.5px;
    color: #b8860b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 0 8px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.prod .points-earn::before {
    content: "★";
    color: var(--amber);
    font-size: 12px;
}
.prod .points-earn b {
    color: var(--ink);
    font-weight: 800;
}

/* === My-account → Rewards page === */
.rewards-account {
    font-family: var(--fb);
}
.rewards-header {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 18px;
    margin-bottom: 28px;
}
@media (max-width: 760px) {
    .rewards-header { grid-template-columns: 1fr; }
}
.rewards-balance-card {
    background: linear-gradient(135deg, #042220 0%, #2A2520 100%);
    color: #eff7f6;
    border-radius: var(--r-2xl);
    padding: 24px;
    text-align: center;
}
.rewards-balance-num {
    font-family: var(--fb);
    font-weight: 900;
    font-size: 48px;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--acc);
}
.rewards-balance-lbl {
    font-family: var(--fm);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-top: 4px;
    opacity: .8;
}
.rewards-balance-value {
    font-size: 13px;
    margin-top: 14px;
    opacity: .7;
}

.rewards-tier-card {
    background: #eff7f6;
    border-radius: var(--r-2xl);
    padding: 24px;
    border: 1.5px solid rgba(14, 15, 18, .08);
}
.rewards-tier-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.rewards-tier-name b {
    font-family: var(--fd);
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: var(--amber);
    margin-left: 6px;
}
.rewards-tier-rate {
    font-family: var(--fm);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--slate);
    margin-bottom: 12px;
}
.rewards-tier-next {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink);
    padding-top: 10px;
    border-top: 1px solid rgba(14, 15, 18, .08);
}

.rewards-account h3 {
    font-family: var(--fb);
    font-weight: 700;
    font-size: 16px;
    margin: 24px 0 10px;
    letter-spacing: -.01em;
}
.rewards-how {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rewards-how li {
    background: #fff;
    border: 1px solid var(--hair-2);
    border-radius: var(--r-md);
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
}
.rewards-how li b {
    font-weight: 700;
    color: var(--ink);
}

.rewards-tier-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 14px;
}
.rewards-tier-table th,
.rewards-tier-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--hair-2);
}
.rewards-tier-table thead th {
    background: var(--paper-2);
    font-family: var(--fm);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--slate);
    font-weight: 600;
}
.rewards-tier-table tbody tr.current {
    background: #eff7f6;
    font-weight: 600;
}
.rewards-tier-table tbody tr.current td:first-child::after {
    content: " (you)";
    color: var(--amber);
    font-style: italic;
}

/* ============================================================
   Subscriptions UI - subscribe radio + my-account list
   ============================================================ */

/* === Subscribe choice radio block on PDP === */
.subscribe-choice {
    border: 0;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 540px) {
    .subscribe-choice { grid-template-columns: 1fr; }
}
.subscribe-choice-card {
    border: 1.5px solid var(--ash);
    border-radius: var(--r-md);
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    transition: border-color .15s var(--ease), background .15s var(--ease);
}
.subscribe-choice-card input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}
.subscribe-choice-card:has(input:checked) {
    border-color: var(--ink);
    background: #fafafa;
}
.subscribe-choice-card.subscribe-choice-save {
    background: linear-gradient(180deg, #f0faf0 0%, #e8f5e8 100%);
    border-color: #2e7d32;
}
.subscribe-choice-card.subscribe-choice-save:has(input:checked) {
    background: linear-gradient(180deg, #d4f0d4 0%, #c1e8c1 100%);
}
.subscribe-choice-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.subscribe-choice-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.subscribe-choice-card.subscribe-choice-save .subscribe-choice-title {
    color: #1b5e20;
}
.subscribe-choice-price {
    font-family: var(--fb);
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.018em;
    line-height: 1.1;
    margin-top: 4px;
}
.subscribe-choice-price s {
    font-weight: 500;
    font-size: 13px;
    color: var(--mist);
    margin-left: 6px;
}
.subscribe-choice-sub {
    font-family: var(--fm);
    font-size: 11px;
    color: var(--slate);
    margin-top: 4px;
    line-height: 1.5;
}
.subscribe-choice-flag {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #2e7d32;
    color: #fff;
    font-family: var(--fm);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    letter-spacing: .04em;
}

/* === Subscribe badge inside descriptions === */
.subscribe-badge {
    display: inline-block;
    background: #e8f5e8;
    color: #1b5e20;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-family: var(--fm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.subscribe-badge b {
    font-family: var(--fb);
    font-weight: 800;
}

/* === My-account -> Subscriptions === */
.account-subscriptions {
    font-family: var(--fb);
}
.account-subscriptions h3 {
    font-family: var(--fb);
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 14px;
    letter-spacing: -.012em;
}
.account-subscriptions-empty {
    background: var(--paper-2);
    border-radius: var(--r-md);
    padding: 18px;
    color: var(--slate);
    font-size: 14px;
    line-height: 1.6;
}
.account-subscriptions-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.account-subscription {
    background: #fff;
    border: 1px solid var(--hair-2);
    border-radius: var(--r-md);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.account-subscription-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 220px;
}
.account-subscription-name {
    font-weight: 700;
    color: var(--ink);
    font-size: 15px;
    text-decoration: none;
}
.account-subscription-name:hover { color: var(--acc-2); }
.account-subscription-status {
    font-family: var(--fm);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    align-self: flex-start;
    width: max-content;
}
.account-subscription-status.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}
.account-subscription-status.status-cancelled,
.account-subscription-status.status-on-hold,
.account-subscription-status.status-pending {
    background: #fff3e0;
    color: #e65100;
}
.account-subscription-price {
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.account-subscription-cycle {
    font-family: var(--fm);
    font-weight: 500;
    font-size: 11px;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-left: 4px;
}
.account-subscription-cancel-form {
    margin: 0;
}
.account-subscription-cancel {
    background: transparent;
    color: #b71c1c;
    border: 1.5px solid #b71c1c;
    border-radius: var(--r-pill);
    padding: 8px 18px;
    font-family: var(--fb);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s var(--ease), color .15s var(--ease);
}
.account-subscription-cancel:hover {
    background: #b71c1c;
    color: #fff;
}
.account-subscriptions-help {
    color: var(--slate);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    border-top: 1px solid var(--hair-2);
    padding-top: 16px;
    margin-top: 16px;
}
.account-subscriptions-help a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sub-flash {
    border-radius: var(--r-md);
    padding: 14px 18px;
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 600;
}
.sub-flash-ok {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}
