/* Benefits Panel — block-scoped. V4 receipt / V5 split pricing (V1-V3 culled). */

/* ---- VARIANT 4 — receipt card (Paper VS-V1) in the bordered-box chrome:
   square corners + hover-animated green shadow (icon-V4 treatment) ---- */
.tt-benefits .tt-benefits-receipt {
    box-sizing: border-box; /* card edge = lane width */
    max-width: 789px; /* lane: normal (five-col) */
    margin: 0 auto;
    background: var(--var-white);
    border: 1px solid var(--var-offblack);
    border-radius: 0;
    padding: 2em 2.2em;
}
.tt-benefits--v6 .tt-benefits-receipt,
.tt-benefits--v8 .tt-benefits-receipt,
.tt-benefits--v9 .tt-benefits-receipt,
.tt-benefits--v10 .tt-benefits-receipt,
.tt-benefits--v11 .tt-benefits-receipt,
.tt-benefits--v12 .tt-benefits-receipt { box-shadow: 6px 6px 0 var(--var-offblack); }
@media (prefers-reduced-motion: no-preference) {
    .tt-benefits .tt-benefits-receipt {
        transition: box-shadow 0.18s ease-out;
    }
    .tt-benefits--v6 .tt-benefits-receipt:hover,
    .tt-benefits--v8 .tt-benefits-receipt:hover,
    .tt-benefits--v9 .tt-benefits-receipt:hover,
    .tt-benefits--v10 .tt-benefits-receipt:hover,
    .tt-benefits--v11 .tt-benefits-receipt:hover,
    .tt-benefits--v12 .tt-benefits-receipt:hover { box-shadow: 12px 12px 0 var(--var-offblack); }
}
.tt-benefits .tt-receipt-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8em;
    padding: 1.1em 0;
    border-bottom: 1px solid var(--var-light_grey);
}
.tt-benefits .tt-receipt-row:first-child { padding-top: 0; }
.tt-benefits .tt-receipt-body { flex: 1 1 auto; }
.tt-benefits .tt-receipt-title {
    margin: 0 0 0.25em;
    font-size: 20px; /* type token: body */
}
.tt-benefits .tt-receipt-copy {
    margin: 0;
    color: var(--var-offblack);
}
.tt-benefits .tt-receipt-bonus {
    display: inline-block;
    background: var(--var-yellow);
    color: var(--var-offblack);
    font-size: 16px; /* type token: small */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 3px;
    padding: 0.2em 0.55em;
    margin-right: 0.6em;
    vertical-align: middle;
}
.tt-benefits .tt-receipt-value {
    flex: 0 0 auto;
    font-weight: bold;
    font-size: 20px; /* type token: body */
}
.tt-benefits .tt-receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap; /* squeezed: the price drops below the label as ONE unit */
    gap: 0.15em 1.5em;
    padding: 1.1em 0 0.4em;
    border-top: 2px solid var(--var-offblack);
    margin-top: -1px; /* sits on the last row's light rule */
}
.tt-benefits .tt-receipt-total-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 16px; /* type token: small */
    color: var(--var-grey);
}
.tt-benefits .tt-receipt-total-value { color: var(--var-grey); }
.tt-benefits .tt-receipt-pay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* squeezed: the price drops below the label as ONE unit */
    gap: 0.15em 1.5em;
    background: var(--var-green);
    color: var(--var-offblack);
    padding: 0.9em 1.2em;
    margin-top: 0.9em;
}
.tt-benefits .tt-receipt-pay-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 16px; /* type token: small */
    font-weight: bold;
}
.tt-benefits .tt-receipt-pay-value { font-size: 36px; /* type token: large */ }
/* the price phrase itself NEVER breaks, at any width — the row wraps
   around it instead (plus the <=480 stacked layout further down) */
.tt-benefits .tt-receipt-total-value,
.tt-benefits .tt-receipt-pay-value { white-space: nowrap; }

/* ---- VARIANT 5 — split pricing card (Paper VS-V2) in the bordered-box
   chrome: square corners + hover-animated green shadow ---- */
.tt-benefits--v5 .tt-benefits-split,
.tt-benefits--v7 .tt-benefits-split {
    display: flex;
    box-sizing: border-box; /* card edge = lane width */
    max-width: 789px; /* lane: normal (five-col) */
    margin: 0 auto;
    background: var(--var-white);
    border: 1px solid var(--var-offblack);
    border-radius: 0;
    /* offblack, not the family green: the solid green price panel merged
       into a green shadow along its edges */
    box-shadow: 6px 6px 0 var(--var-offblack);
    overflow: hidden; /* green panel fills to the border cleanly */
}
@media (prefers-reduced-motion: no-preference) {
    .tt-benefits--v5 .tt-benefits-split,
    .tt-benefits--v7 .tt-benefits-split {
        transition: box-shadow 0.18s ease-out;
    }
    .tt-benefits--v5 .tt-benefits-split:hover,
    .tt-benefits--v7 .tt-benefits-split:hover {
        box-shadow: 12px 12px 0 var(--var-offblack);
    }
}
.tt-benefits--v5 .tt-split-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 16px; /* type token: small */
    font-weight: bold;
    color: var(--var-grey);
    margin: 0 0 1em;
}
.tt-benefits--v5 .tt-split-list {
    flex: 1.4 1 0;
    padding: 2.2em 2.4em;
}
.tt-benefits--v5 .tt-split-item {
    display: flex;
    gap: 0.8em;
    align-items: flex-start;
    margin-bottom: 1.3em;
}
.tt-benefits--v5 .tt-split-item:last-child { margin-bottom: 0; }
.tt-benefits .tt-split-tick {
    flex: 0 0 0.95em;
    height: 0.5em;
    border-left: 3px solid var(--var-green);
    border-bottom: 3px solid var(--var-green);
    transform: rotate(-45deg);
    margin-top: 0.45em;
}
.tt-benefits--v5 .tt-split-title { margin: 0 0 0.2em; font-size: 20px; /* type token: body */ }
.tt-benefits--v5 .tt-split-copy { margin: 0; }
.tt-benefits--v5 .tt-split-price {
    flex: 1 1 0;
    background: var(--var-green);
    color: var(--var-offblack);
    padding: 2.2em 2.4em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tt-benefits--v5 .tt-split-price .tt-split-eyebrow { color: var(--var-offblack); opacity: 0.75; }
.tt-benefits--v5 .tt-split-total {
    font-size: 36px; /* type token: large */
    font-weight: bold;
    color: rgba(40, 40, 40, 0.55);
    margin-bottom: 0.6em;
}
.tt-benefits--v5 .tt-split-rule {
    width: 3em;
    border: 0;
    border-top: 1px solid rgba(40, 40, 40, 0.35);
    margin: 0 0 1.2em;
}
.tt-benefits--v5 .tt-split-amount {
    font-size: 47px; /* type token: xlarge */
    font-weight: bold;
    line-height: 1;
}
.tt-benefits--v5 .tt-split-period {
    font-size: 20px; /* type token: body */
    font-weight: bold;
    margin-top: 0.5em;
}
@media only screen and (max-width: 700px) {
    .tt-benefits--v5 .tt-benefits-split { flex-direction: column; }
}

/* ---- VARIANT 6 — receipt with the V5 language: full-bleed green footer
   band + offblack shadow (green-on-green clash avoided) ---- */
.tt-benefits--v6 .tt-benefits-receipt { padding-bottom: 0; }
.tt-benefits--v6 .tt-receipt-pay {
    margin-left: -2.2em;  /* bleed to the card edges */
    margin-right: -2.2em;
    padding: 1.1em 2.2em;
}

/* ---- VARIANTS 7 + 8 — the same split/receipt cards in the narrow lane
   (621px, four-col) instead of the normal 789px lane. V7 reuses every
   .tt-benefits--v5 part rule via the v5 class emitted alongside (see
   template note); only the card width differs. ---- */
.tt-benefits--v7 .tt-benefits-split,
.tt-benefits--v8 .tt-benefits-receipt,
.tt-benefits--v9 .tt-benefits-receipt,
.tt-benefits--v10 .tt-benefits-receipt,
.tt-benefits--v11 .tt-benefits-receipt,
.tt-benefits--v12 .tt-benefits-receipt {
    max-width: 621px; /* lane: narrow (four-col) */
}

/* ---- VARIANT 10 — large triangles CUT OUT of the receipt top: the
   notches show the page background through the paper. Offblack teeth
   one size up behind offwhite teeth fake the edge line. ---- */
.tt-benefits--v10 .tt-benefits-receipt {
    border-top: 0;
    position: relative;
    overflow: hidden;
}
.tt-benefits--v10 .tt-benefits-receipt::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 16px;
    z-index: 1;
    pointer-events: none;
    /* page-bg teeth cut down into the paper; the drop-shadow traces the
       zigzag with the edge line (a border can't follow it) */
    background-image:
        linear-gradient(135deg, var(--var-offwhite) 16px, transparent 0),
        linear-gradient(-135deg, var(--var-offwhite) 16px, transparent 0);
    background-size: 32px 16px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 1.5px 0 var(--var-offblack));
}

/* ---- VARIANT 11 — scalloped top: half-circle punches along the edge
   (ticket look). One radial layer draws cutout + 1px rim, a hairline
   layer restores the straight edge between scallops. ---- */
.tt-benefits--v11 .tt-benefits-receipt {
    border-top: 0;
    position: relative;
    overflow: hidden;
}
.tt-benefits--v11 .tt-benefits-receipt::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12px;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 11px 0, var(--var-offwhite) 7.25px, var(--var-offblack) 7.5px 8.25px, transparent 8.5px),
        linear-gradient(to bottom, var(--var-offblack) 1px, transparent 1px);
    background-size: 22px 12px, 100% 12px;
    background-repeat: repeat-x, no-repeat;
}

/* ---- VARIANT 12 — straight edge with a perforated tear line just
   below it: a row of punched holes (offwhite dots with offblack rims). ---- */
.tt-benefits--v12 .tt-benefits-receipt {
    position: relative;
}
.tt-benefits--v12 .tt-benefits-receipt::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: 9px;
    height: 8px;
    pointer-events: none;
    background-image: radial-gradient(circle at 4px 4px, var(--var-offwhite) 2.5px, var(--var-offblack) 3px 3.5px, transparent 4px);
    background-size: 14px 8px;
    background-repeat: repeat-x;
}

/* ---- VARIANT 9 — V8's narrow receipt with a jagged (torn-paper) top
   edge. Borders can't follow a zigzag, so the top border comes off and
   two stacked sawtooth strips fake it: offblack teeth 1px proud behind
   white teeth (both from repeating 45deg gradients). ---- */
.tt-benefits--v9 .tt-benefits-receipt {
    border-top: 0;
    position: relative;
    margin-top: 12px; /* room for the teeth */
}
.tt-benefits--v9 .tt-benefits-receipt::before,
.tt-benefits--v9 .tt-benefits-receipt::after {
    content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    height: 10px;
    background-repeat: repeat-x;
    background-size: 16px 10px;
}
.tt-benefits--v9 .tt-benefits-receipt::after {
    /* the 1px offblack edging: same teeth, one pixel higher */
    top: -11px;
    background-image:
        linear-gradient(135deg, var(--var-offblack) 50%, transparent 50%),
        linear-gradient(-135deg, var(--var-offblack) 50%, transparent 50%);
    background-position: 0 0, 8px 0;
}
.tt-benefits--v9 .tt-benefits-receipt::before {
    top: -10px;
    z-index: 1;
    background-image:
        linear-gradient(135deg, var(--var-white) 50%, transparent 50%),
        linear-gradient(-135deg, var(--var-white) 50%, transparent 50%);
    background-position: 0 0, 8px 0;
}

/* Phone widths: the two-column receipt rows squeezed the price into
   mid-phrase wraps ("£15 per / week", struck-through "£30 per / week").
   The rows stack — label above, price below, never broken (2026-08-13). */
@media only screen and (max-width: 480px) {
    .tt-benefits .tt-receipt-total,
    .tt-benefits .tt-receipt-pay {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15em;
    }
    .tt-benefits .tt-receipt-total-value,
    .tt-benefits .tt-receipt-pay-value { white-space: nowrap; }
    .tt-benefits .tt-receipt-pay-value { font-size: 30px; }
}
