/* TV Tiered Pricing Frontend v9.0 — TerraVida Premium B2B Design */

/* ═══ DESIGN TOKENS ════════════════════════════════════════════ */
.tvtp,
.tvof,
.tvcmp {
    --tv:        #1B3B34;
    --tv-2:      #264840;
    --tv-3:      #2e6b4e;
    --tvC:       #FBE973;
    --tvC-l:     #fff19a;
    --tvC-d:     #d4b94e;
    --tvE:       #F5F0E1;
    --bg:        #fbf8ee;
    --bg-2:      #f5f0e1;
    --bg-3:      #ede8d0;
    --white:     #ffffff;
    --nav:       #0d1f18;
    --text:      #1a1a12;
    --muted:     #6e6254;
    --faint:     #cec0a0;
    --border:    #e3dcc4;
    --border-2:  #cec0a0;
    --ok:        #2e7d32;
    --ok-l:      #4caf50;
    --warn:      #d4a418;
    --err:       #c62828;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    color: var(--text);
    box-sizing: border-box;
}
.tvtp *, .tvof *, .tvcmp *,
.tvtp *::before, .tvof *::before, .tvcmp *::before,
.tvtp *::after, .tvof *::after, .tvcmp *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════════════
 *  TIER PRICING TABLE – [tv_tiered_pricing]
 * ═══════════════════════════════════════════════════════════════ */
.tvtp {
    margin: 32px 0;
    position: relative;
}

/* Header */
.tvtp-hd {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.tvtp-hd::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 50px; height: 2px;
    background: linear-gradient(90deg, var(--tvC), transparent);
    border-radius: 1px;
}
.tvtp-icon {
    width: 44px; height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--tv), var(--tv-2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(27,59,52,.18), inset 0 1px 0 rgba(251,233,115,.18);
    position: relative;
}
.tvtp-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 13px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.15));
    pointer-events: none;
}
.tvtp-icon svg {
    width: 20px; height: 20px;
    stroke: var(--tvC);
    position: relative;
    z-index: 1;
}
.tvtp-title {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--tv);
    line-height: 1.15;
    letter-spacing: -.01em;
}
.tvtp-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    font-weight: 500;
}

/* Grid + Cards */
.tvtp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.tvtp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 16px 16px;
    border-radius: 18px;
    border: 1.5px solid var(--border);
    background: linear-gradient(180deg, var(--white), var(--bg));
    cursor: pointer;
    text-align: center;
    transition: transform .35s cubic-bezier(.22,1,.36,1),
                box-shadow .35s cubic-bezier(.22,1,.36,1),
                border-color .25s ease;
    box-shadow: 0 1px 3px rgba(27,59,52,.04);
    overflow: visible;
}
.tvtp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, transparent 60%, rgba(251,233,115,.04));
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s;
}
.tvtp-card:hover {
    border-color: var(--tv);
    box-shadow:
        0 12px 28px rgba(27,59,52,.12),
        0 2px 6px rgba(27,59,52,.06);
    transform: translateY(-4px);
}
.tvtp-card:hover::before { opacity: 1; }
.tvtp-card:active { transform: translateY(-1px) scale(.99); }

/* Best card — subtle premium treatment */
.tvtp-card--best {
    border-color: rgba(251,233,115,.55);
    background: linear-gradient(180deg, var(--white) 50%, rgba(251,233,115,.07));
    box-shadow:
        0 0 0 1px rgba(251,233,115,.2),
        0 6px 20px rgba(251,233,115,.1);
}
.tvtp-card--best::after {
    content: '';
    position: absolute;
    top: 0; left: 14px; right: 14px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tvC), transparent);
    border-radius: 0 0 2px 2px;
}
.tvtp-card--best:hover {
    border-color: var(--tvC);
    box-shadow:
        0 0 0 2px rgba(251,233,115,.4),
        0 14px 32px rgba(251,233,115,.18);
}

/* Best badge — pill on top */
.tvtp-badge {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--tv), var(--tv-2));
    color: var(--tvC);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(27,59,52,.2);
    border: 1.5px solid var(--tvC);
    z-index: 2;
}

/* Card top — qty + chips */
.tvtp-card-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.tvtp-qty {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--tv);
    line-height: 1;
    letter-spacing: -.02em;
}
.tvtp-qty small {
    font-size: 14px;
    opacity: .35;
    font-weight: 700;
    margin-left: 1px;
}
.tvtp-disc {
    padding: 4px 10px;
    background: rgba(46,125,50,.08);
    border: 1px solid rgba(46,125,50,.22);
    border-radius: 100px;
    color: var(--ok);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}
.tvtp-sale {
    padding: 3px 8px;
    background: rgba(198,40,40,.08);
    border: 1px solid rgba(198,40,40,.22);
    border-radius: 100px;
    color: var(--err);
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Price */
.tvtp-card-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
}
.tvtp-old {
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-color: rgba(110,98,84,.45);
    opacity: .7;
    font-weight: 500;
}
.tvtp-pr {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: calc(20px + 4px * var(--e));
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -.01em;
    transition: color .4s;
}
.tvtp-pr small {
    font-size: 11px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--muted);
    margin-left: 2px;
}
/* Emphasis based on saving — most discounted card gets darkest green */
.tvtp-card[style*="--e:0.4"] .tvtp-pr,
.tvtp-card[style*="--e:0.5"] .tvtp-pr { color: #2d5a3f; }
.tvtp-card[style*="--e:0.6"] .tvtp-pr,
.tvtp-card[style*="--e:0.7"] .tvtp-pr { color: #1f6b3f; }
.tvtp-card[style*="--e:0.8"] .tvtp-pr,
.tvtp-card[style*="--e:0.9"] .tvtp-pr,
.tvtp-card[style*="--e:1.0"] .tvtp-pr,
.tvtp-card[style*="--e:1.00"] .tvtp-pr {
    color: var(--tv);
    text-shadow: 0 1px 6px rgba(27,59,52,.08);
}

.tvtp-save {
    font-size: 11px;
    font-weight: 700;
    color: var(--ok);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Cart button — secondary inside card */
.tvtp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 11px;
    background: var(--bg-2);
    color: var(--tv);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .01em;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .25s cubic-bezier(.22,1,.36,1);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.tvtp-btn svg {
    width: 14px; height: 14px;
    stroke: var(--tv);
    transition: transform .25s;
    flex-shrink: 0;
}
.tvtp-card:hover .tvtp-btn {
    background: var(--tv);
    color: var(--tvC);
    box-shadow: 0 6px 18px rgba(27,59,52,.25);
}
.tvtp-card:hover .tvtp-btn svg {
    stroke: var(--tvC);
    transform: translateX(-2px);
}
.tvtp-card--best .tvtp-btn {
    background: var(--tvC);
    color: var(--tv);
    box-shadow: 0 4px 14px rgba(251,233,115,.35);
}
.tvtp-card--best .tvtp-btn svg { stroke: var(--tv); }
.tvtp-card--best:hover .tvtp-btn {
    background: var(--tvC-l);
    color: var(--tv);
    box-shadow: 0 6px 22px rgba(251,233,115,.5);
}
.tvtp-card--best:hover .tvtp-btn svg { stroke: var(--tv); }

/* Success state after add */
.tvtp-card.tvtp-ok .tvtp-btn {
    background: linear-gradient(135deg, var(--ok-l), var(--ok)) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(46,125,50,.4) !important;
    animation: tvtp-success-pop .5s cubic-bezier(.34,1.56,.64,1);
}
.tvtp-card.tvtp-ok .tvtp-btn svg {
    stroke: #fff !important;
    animation: tvtp-cart-fly .55s cubic-bezier(.4,0,.2,1);
}
@keyframes tvtp-success-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes tvtp-cart-fly {
    0% { transform: translate(0, 0); }
    35% { transform: translate(0, -4px) scale(1.1); }
    70% { transform: translate(6px, -8px) scale(.85); opacity: .6; }
    100% { transform: translate(0, 0); opacity: 1; }
}

/* Out of stock variant */
.tvtp-card--nostock {
    opacity: .5;
    cursor: not-allowed;
    background: linear-gradient(180deg, var(--bg), var(--bg-2)) !important;
    border-style: dashed;
    border-color: var(--border-2) !important;
}
.tvtp-card--nostock:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-2) !important;
}
.tvtp-card--nostock .tvtp-qty { color: var(--muted); }
.tvtp-nostock-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    flex: 1;
    justify-content: center;
}

/* Footer note */
.tvtp-ft {
    margin-top: 12px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    font-style: italic;
    opacity: .8;
}

/* Tooltip — when variation not selected */
.tvtp-tip {
    display: none;
    position: absolute;
    z-index: 100;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--tv), var(--tv-2));
    color: var(--tvC);
    font-size: 13px;
    font-weight: 700;
    border-radius: 11px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid rgba(251,233,115,.25);
}
.tvtp-tip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--tv-2);
}
.tvtp-tip.tvtp-tip--show {
    display: block;
    animation: tvtp-tipIn .3s ease;
}
@keyframes tvtp-tipIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Update animations */
@keyframes tvtp-flash {
    0%   { background: linear-gradient(180deg, var(--white), var(--bg)); }
    50%  { background: linear-gradient(180deg, rgba(251,233,115,.12), rgba(251,233,115,.04)); }
    100% { background: linear-gradient(180deg, var(--white), var(--bg)); }
}
.tvtp-card--updated { animation: tvtp-flash .55s ease; }
.tvtp-pr--updated { animation: tvtp-prPop .42s cubic-bezier(.22,1,.36,1); }
@keyframes tvtp-prPop {
    0%   { transform: scale(.85); opacity: .4; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile */
@media (max-width: 480px) {
    .tvtp { margin: 22px 0; }
    .tvtp-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    .tvtp-card { padding: 18px 12px 14px; border-radius: 16px; }
    .tvtp-qty { font-size: 28px; }
    .tvtp-disc { font-size: 11px; padding: 3px 8px; }
    .tvtp-pr { font-size: calc(17px + 3px * var(--e)) !important; }
    .tvtp-btn { padding: 9px; font-size: 11.5px; }
    .tvtp-icon { width: 38px; height: 38px; }
    .tvtp-icon svg { width: 17px; height: 17px; }
    .tvtp-title { font-size: 17px; }
    .tvtp-sub { font-size: 11px; }
    .tvtp-badge { font-size: 8px; padding: 3px 10px; }
}

/* ═══════════════════════════════════════════════════════════════
 *  CUSTOM OFFER CARDS – [tv_tiered_offers]
 * ═══════════════════════════════════════════════════════════════ */
.tvof {
    margin: 28px 0;
}

/* Banner — premium dark green with gold accent ribbon */
.tvof-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--tv) 0%, var(--tv-2) 100%);
    color: #fff;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow:
        0 10px 32px rgba(27,59,52,.22),
        inset 0 1px 0 rgba(251,233,115,.12);
    border: 1px solid rgba(251,233,115,.18);
}
.tvof-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(251,233,115,.14), transparent 60%),
        radial-gradient(ellipse at 85% 100%, rgba(251,233,115,.06), transparent 50%);
    pointer-events: none;
}
.tvof-icon {
    width: 32px; height: 32px;
    stroke: var(--tvC);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(251,233,115,.3));
}
.tvof-banner-text {
    position: relative;
    flex: 1;
    min-width: 0;
    z-index: 1;
}
.tvof-banner-text strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--tvC);
    line-height: 1.2;
    letter-spacing: -.01em;
}
.tvof-banner-text span {
    display: block;
    font-size: 12px;
    color: rgba(245,240,225,.6);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.tvof-ribbon {
    position: absolute;
    top: 14px; right: -32px;
    padding: 5px 40px;
    background: linear-gradient(135deg, var(--tvC), var(--tvC-d));
    color: var(--tv);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    z-index: 2;
}
.tvof-pdf-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(251,233,115,.12);
    border: 1px solid rgba(251,233,115,.28);
    color: var(--tvC);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all .25s;
    flex-shrink: 0;
    margin-right: 36px;
    letter-spacing: .01em;
}
.tvof-pdf-btn:hover {
    background: var(--tvC);
    border-color: var(--tvC);
    color: var(--tv);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(251,233,115,.35);
}
.tvof-pdf-btn:hover svg { stroke: var(--tv); }
.tvof-pdf-btn svg { stroke: var(--tvC); transition: stroke .25s; }

/* Offer cards grid */
.tvof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}
.tvof-card {
    position: relative;
    padding: 22px 18px 18px;
    border-radius: 18px;
    border: 2px solid var(--tvC);
    background: linear-gradient(170deg, var(--white) 30%, rgba(251,233,115,.08));
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(251,233,115,.15),
        0 6px 22px rgba(251,233,115,.1);
    transition: all .35s cubic-bezier(.22,1,.36,1);
    cursor: pointer;
    overflow: visible;
}
.tvof-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 2px rgba(251,233,115,.55),
        0 14px 36px rgba(251,233,115,.22);
}
.tvof-card:active { transform: translateY(-1px) scale(.99); }

/* Tag badge — pill on top */
.tvof-card-tag {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--tvC), var(--tvC-d));
    color: var(--tv);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(251,233,115,.4);
    border: 1.5px solid var(--tv);
    z-index: 2;
}

.tvof-card-product {
    font-size: 11px;
    font-weight: 700;
    color: var(--tv);
    margin-bottom: 10px;
    opacity: .68;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tvof-card-qty {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--tv);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}
.tvof-card-qty small {
    font-size: 13px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    opacity: .4;
}
.tvof-card-price { margin-bottom: 8px; }
.tvof-old {
    display: block;
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
    opacity: .6;
    margin-bottom: 2px;
    font-weight: 500;
}
.tvof-pr {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--tv);
    line-height: 1.1;
    letter-spacing: -.01em;
}
.tvof-pr small {
    font-size: 11px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--muted);
    margin-left: 2px;
}

.tvof-disc {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(46,125,50,.1);
    border: 1px solid rgba(46,125,50,.22);
    border-radius: 100px;
    color: var(--ok);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: .01em;
}
.tvof-note {
    font-size: 11.5px;
    color: var(--muted);
    font-style: italic;
    margin-top: 6px;
    line-height: 1.4;
}
.tvof-card--nostock {
    opacity: .55;
    border-style: dashed;
    border-color: var(--border-2);
    cursor: not-allowed;
    background: linear-gradient(170deg, var(--bg), var(--bg-2));
}
.tvof-card--nostock:hover {
    transform: none;
    box-shadow:
        0 0 0 1px rgba(251,233,115,.15),
        0 4px 14px rgba(251,233,115,.08);
}

.tvof-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 12px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--tvC), var(--tvC-d));
    color: var(--tv);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
    border: none;
    cursor: pointer;
    transition: all .25s cubic-bezier(.22,1,.36,1);
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(251,233,115,.32);
}
.tvof-btn svg {
    width: 15px; height: 15px;
    stroke: var(--tv);
    transition: transform .25s;
    flex-shrink: 0;
}
.tvof-card:hover .tvof-btn {
    background: var(--tv);
    color: var(--tvC);
    box-shadow: 0 6px 22px rgba(27,59,52,.32);
}
.tvof-card:hover .tvof-btn svg {
    stroke: var(--tvC);
    transform: translateX(-2px);
}
.tvof-card.tvof-ok .tvof-btn {
    background: linear-gradient(135deg, var(--ok-l), var(--ok)) !important;
    color: #fff !important;
    box-shadow: 0 6px 22px rgba(46,125,50,.4) !important;
    animation: tvtp-success-pop .5s cubic-bezier(.34,1.56,.64,1);
}
.tvof-card.tvof-ok .tvof-btn svg {
    stroke: #fff !important;
    animation: tvtp-cart-fly .55s cubic-bezier(.4,0,.2,1);
}
.tvof-nostock {
    padding: 14px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

/* Cards entry animation */
@keyframes tvof-appear {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tvof { animation: tvof-appear .5s ease; }
.tvof-card { animation: tvof-appear .5s ease backwards; }
.tvof-card:nth-child(2) { animation-delay: .08s; }
.tvof-card:nth-child(3) { animation-delay: .16s; }
.tvof-card:nth-child(4) { animation-delay: .24s; }

/* Tablet */
@media (max-width: 720px) {
    .tvof-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tvof-banner {
        padding: 16px 20px;
        gap: 12px;
        margin-bottom: 12px;
        border-radius: 16px;
    }
    .tvof-banner-text strong { font-size: 17px; }
    .tvof-banner-text span { font-size: 11px; }
    .tvof-icon { width: 26px; height: 26px; }
    .tvof-ribbon {
        top: 12px;
        right: -30px;
        padding: 4px 32px;
        font-size: 8px;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .tvof { margin: 20px 0; }
    .tvof-grid { grid-template-columns: 1fr; gap: 10px; }
    .tvof-card {
        padding: 18px 16px 16px;
        border-radius: 16px;
        text-align: left;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "tag tag tag"
            "qty price disc"
            "product product product"
            "btn btn btn";
        gap: 6px 14px;
        align-items: center;
    }
    .tvof-card-tag {
        position: relative;
        top: auto; left: auto;
        transform: none;
        grid-area: tag;
        justify-self: start;
        padding: 4px 12px;
        margin-bottom: 4px;
    }
    .tvof-card-product {
        grid-area: product;
        margin: 0;
        text-align: left;
        -webkit-line-clamp: 1;
    }
    .tvof-card-qty {
        grid-area: qty;
        font-size: 28px;
        margin: 0;
        text-align: left;
    }
    .tvof-card-qty small { font-size: 11px; }
    .tvof-card-price {
        grid-area: price;
        margin: 0;
        text-align: right;
        justify-self: end;
    }
    .tvof-old { font-size: 11px; }
    .tvof-pr { font-size: 20px; }
    .tvof-disc {
        grid-area: disc;
        margin: 0;
        font-size: 10px;
        padding: 3px 8px;
        align-self: center;
        justify-self: end;
    }
    .tvof-note { grid-column: 1/-1; margin-top: 2px; }
    .tvof-btn {
        grid-area: btn;
        margin-top: 8px;
        padding: 12px;
        font-size: 13px;
    }
    .tvof-nostock { grid-column: 1/-1; text-align: center; padding: 8px 0; }

    .tvof-banner { flex-wrap: wrap; padding: 14px 18px; }
    .tvof-banner-text { flex: 1 1 auto; min-width: 0; order: 1; }
    .tvof-pdf-btn {
        order: 2;
        margin-left: auto;
        margin-right: 32px !important;
        padding: 7px 11px !important;
        font-size: 10.5px !important;
    }
    .tvof-pdf-btn svg { width: 13px !important; height: 13px !important; }
    .tvof-pdf-btn span { display: none; }
}
@media (max-width: 380px) {
    .tvof-card {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "tag tag"
            "qty price"
            "product product"
            "btn btn";
    }
    .tvof-disc { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
 *  PRICE COMPARISON TABLE – [tv_tiered_compare]
 * ═══════════════════════════════════════════════════════════════ */
.tvcmp {
    margin: 24px 0;
    border-radius: 18px;
    border: 1.5px solid var(--border);
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(27,59,52,.05);
}
.tvcmp-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--tv), var(--tv-2));
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--tvC);
    letter-spacing: -.01em;
    position: relative;
}
.tvcmp-hd::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251,233,115,.4), transparent);
}
.tvcmp-hd svg {
    width: 20px; height: 20px;
    stroke: var(--tvC);
    flex-shrink: 0;
}
.tvcmp-body { padding: 4px 0; }
.tvcmp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-bottom: 1px solid var(--bg-3);
    transition: background .2s;
}
.tvcmp-row:last-child { border-bottom: none; }
.tvcmp-row:hover { background: var(--bg); }
.tvcmp-row--best {
    background: linear-gradient(90deg, rgba(251,233,115,.08), rgba(251,233,115,.04));
}
.tvcmp-row--best:hover {
    background: linear-gradient(90deg, rgba(251,233,115,.14), rgba(251,233,115,.08));
}
.tvcmp-row-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}
.tvcmp-row-tag {
    padding: 3px 10px;
    background: rgba(46,125,50,.1);
    border: 1px solid rgba(46,125,50,.22);
    border-radius: 100px;
    color: var(--ok);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .01em;
}
.tvcmp-row--offer .tvcmp-row-tag {
    background: rgba(251,233,115,.18);
    border-color: rgba(251,233,115,.4);
    color: var(--tv);
}
.tvcmp-row-best {
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--tvC), var(--tvC-d));
    border-radius: 100px;
    color: var(--tv);
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    box-shadow: 0 2px 6px rgba(251,233,115,.3);
}
.tvcmp-row-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--tv);
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
    letter-spacing: -.01em;
}
.tvcmp-row-price small {
    font-size: 11px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: var(--muted);
}
.tvcmp-row-price--old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 14px;
    opacity: .55;
}
.tvcmp-row--normal .tvcmp-row-label {
    color: var(--muted);
    font-weight: 500;
}

@media (max-width: 480px) {
    .tvcmp { border-radius: 16px; }
    .tvcmp-hd { font-size: 14px; padding: 13px 16px; }
    .tvcmp-hd svg { width: 17px; height: 17px; }
    .tvcmp-row { padding: 11px 16px; }
    .tvcmp-row-label { font-size: 12.5px; gap: 8px; }
    .tvcmp-row-price { font-size: 15px; }
    .tvcmp-row-tag { font-size: 9.5px; padding: 2px 8px; }
    .tvcmp-row-best { font-size: 9px; padding: 2px 8px; }
}

/* ═══════════════════════════════════════════════════════════════
 *  QUOTE BANNER – [tv_tiered_quote]
 * ═══════════════════════════════════════════════════════════════ */
.tvqt {
    --tv:        #1B3B34;
    --tv-2:      #264840;
    --tvC:       #FBE973;
    --tvC-l:     #fff19a;
    --tvC-d:     #d4b94e;
    --muted:     rgba(245,240,225,.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 0;
    padding: 20px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--tv) 0%, var(--tv-2) 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    box-shadow:
        0 10px 32px rgba(27,59,52,.22),
        inset 0 1px 0 rgba(251,233,115,.12);
    border: 1px solid rgba(251,233,115,.18);
    box-sizing: border-box;
}
.tvqt *,
.tvqt *::before,
.tvqt *::after { box-sizing: border-box; }
.tvqt-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(251,233,115,.12), transparent 60%),
        radial-gradient(ellipse at 85% 100%, rgba(251,233,115,.06), transparent 50%);
    pointer-events: none;
}
.tvqt-body {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.tvqt-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(251,233,115,.12);
    border: 1.5px solid rgba(251,233,115,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tvC);
}
.tvqt-icon svg {
    width: 22px; height: 22px;
}
.tvqt-text {
    flex: 1;
    min-width: 0;
}
.tvqt-text strong {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.tvqt-text span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 500;
}
.tvqt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tvC), var(--tvC-d));
    color: var(--tv);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    transition: all .3s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 4px 14px rgba(251,233,115,.32);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 1.5px solid transparent;
}
.tvqt-btn svg {
    width: 16px; height: 16px;
    stroke: var(--tv);
    flex-shrink: 0;
    transition: transform .25s;
}
.tvqt-btn:hover {
    background: var(--tvC-l);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(251,233,115,.45);
}
.tvqt-btn:hover svg {
    transform: translateX(2px);
}

@media (max-width: 720px) {
    .tvqt {
        padding: 16px 20px;
        gap: 14px;
        border-radius: 16px;
        margin: 18px 0;
    }
    .tvqt-icon { width: 40px; height: 40px; }
    .tvqt-icon svg { width: 19px; height: 19px; }
    .tvqt-text strong { font-size: 15px; }
    .tvqt-text span { font-size: 11px; }
    .tvqt-btn {
        padding: 11px 16px;
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .tvqt {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .tvqt-body { width: 100%; }
    .tvqt-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}
