/*
 * TV Sales Credit Calculator — Frontend Styles v3.4
 * Brand: TVSH Red (#CC1626) + Charcoal (#1C1C28)
 * Redesigned for Credit Payment Calculator
 */

/* ─── Google Font (fallback if wp_enqueue fails) ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700;800&display=swap');

/* ─── Page wrapper (redesigned) ─────────────────────────────────────────── */
.tvcc-page {
    background: linear-gradient(160deg, #f8f9fc 0%, #eef1f7 50%, #f5f6fa 100%);
    padding: 48px 24px 56px;
    margin: 0 -24px;
    border-radius: 0;
}
@media (min-width: 768px) {
    .tvcc-page {
        padding: 56px 32px 72px;
        margin: 0 -32px;
    }
}

/* ─── Tokens on :root ────────────────────────────────────────────────────── */
:root {
    --tvcc-red:          #CC1626;
    --tvcc-red-dark:     #A81020;
    --tvcc-red-pale:     #FFF0F1;
    --tvcc-red-ring:     rgba(204,22,38,.18);
    --tvcc-ink:          #1C1C28;
    --tvcc-ink-mid:      #4A4A5A;
    --tvcc-ink-light:    #767688;
    --tvcc-line:         #E8E8F0;
    --tvcc-surface:      #FAFAFA;
    --tvcc-white:        #ffffff;
    --tvcc-success:      #0D7A55;
    --tvcc-success-pale: #EAF6F0;
    --tvcc-r-sm:         6px;
    --tvcc-r-md:         10px;
    --tvcc-r-lg:         16px;
    --tvcc-r-xl:         20px;
    --tvcc-t:            0.2s cubic-bezier(.4,0,.2,1);
    --tvcc-pad:          40px;
}

/* ─── Outer shell ────────────────────────────────────────────────────────── */
.tvcc {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--tvcc-ink);
    max-width: 540px;
    margin: 0 auto;
    background: var(--tvcc-white);
    border-radius: var(--tvcc-r-xl);
    box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 24px 64px rgba(0,0,0,.08);
    overflow: hidden;
    box-sizing: border-box;
}

.tvcc *,
.tvcc *::before,
.tvcc *::after {
    box-sizing: border-box;
}

/* ─── Brand header ───────────────────────────────────────────────────────── */
.tvcc .tvcc__brand {
    background: linear-gradient(135deg, var(--tvcc-ink) 0%, #2a2d3a 100%) !important;
    padding: 26px var(--tvcc-pad);
    display: flex !important;
    align-items: center;
    gap: 16px;
}

.tvcc .tvcc__brand-badge {
    width: 36px;
    height: 36px;
    background: var(--tvcc-red) !important;
    border-radius: var(--tvcc-r-sm);
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}
.tvcc .tvcc__brand-badge svg { width: 20px; height: 20px; }

.tvcc .tvcc__brand-text { display: flex; flex-direction: column; gap: 1px; }
.tvcc .tvcc__brand-name { font-size: 1.05rem; font-weight: 800; color: white !important; letter-spacing: -.3px; display: block; }
.tvcc .tvcc__brand-sub  { font-size: 0.8125rem; color: rgba(255,255,255,.65) !important; display: block; }

/* ─── Step progress ──────────────────────────────────────────────────────── */
.tvcc .tvcc__stepper {
    padding: 0 var(--tvcc-pad);
    background: var(--tvcc-white);
    border-bottom: 1px solid var(--tvcc-line);
    position: relative;
}

.tvcc .tvcc__stepper-track {
    position: absolute;
    top: 26px;
    left: calc(var(--tvcc-pad) + 14px);
    right: calc(var(--tvcc-pad) + 14px);
    height: 2px;
    background: var(--tvcc-line);
    border-radius: 99px;
    z-index: 0;
}
.tvcc .tvcc__stepper-fill {
    height: 100%;
    background: var(--tvcc-red);
    border-radius: 99px;
    width: 0%;
    transition: width .45s ease;
}

.tvcc .tvcc__stepper-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding: 16px 0 14px;
}

.tvcc .tvcc__s-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.tvcc .tvcc__s-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tvcc-white);
    border: 2px solid var(--tvcc-line);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--tvcc-t), border-color var(--tvcc-t);
    position: relative;
}

.tvcc .tvcc__s-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tvcc-ink-light);
    transition: opacity var(--tvcc-t);
}

.tvcc .tvcc__s-tick {
    position: absolute;
    width: 10px;
    height: 8px;
    opacity: 0;
    transition: opacity var(--tvcc-t);
}

.tvcc .tvcc__s-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--tvcc-ink-light);
    text-align: center;
    transition: color var(--tvcc-t);
    white-space: nowrap;
}

.tvcc .tvcc__s-step.is-active .tvcc__s-dot { background: var(--tvcc-red) !important; border-color: var(--tvcc-red) !important; }
.tvcc .tvcc__s-step.is-active .tvcc__s-num { color: white !important; }
.tvcc .tvcc__s-step.is-active .tvcc__s-label { color: var(--tvcc-red) !important; font-weight: 700; }

.tvcc .tvcc__s-step.is-done .tvcc__s-dot { background: var(--tvcc-red) !important; border-color: var(--tvcc-red) !important; }
.tvcc .tvcc__s-step.is-done .tvcc__s-num { opacity: 0; }
.tvcc .tvcc__s-step.is-done .tvcc__s-tick { opacity: 1; }
.tvcc .tvcc__s-step.is-done .tvcc__s-label { color: var(--tvcc-red) !important; }

/* ─── Panel ──────────────────────────────────────────────────────────────── */
.tvcc .tvcc__panel {
    padding: 32px var(--tvcc-pad) 36px;
    animation: tvcc-slide-in .28s ease;
}
@keyframes tvcc-slide-in {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

.tvcc .tvcc__panel-heading { margin-bottom: 26px; }
.tvcc .tvcc__panel-title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--tvcc-ink) !important;
    letter-spacing: -.4px;
    margin: 0 0 5px !important;
    line-height: 1.3;
}
.tvcc .tvcc__panel-hint {
    font-size: 0.875rem !important;
    color: var(--tvcc-ink-light) !important;
    margin: 0 !important;
}

/* ─── Fields ─────────────────────────────────────────────────────────────── */
.tvcc .tvcc__fields { display: flex; flex-direction: column; gap: 18px; }
.tvcc .tvcc__field  { display: flex; flex-direction: column; gap: 6px; margin: 0 !important; }

.tvcc .tvcc__label {
    display: block !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: var(--tvcc-ink-mid) !important;
    letter-spacing: 0.1px;
    margin: 0 0 5px !important;
    padding: 0 !important;
}

/* ── Input shell ─ */
.tvcc .tvcc__input-shell { position: relative; }

.tvcc .tvcc__fi {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--tvcc-ink-light);
    pointer-events: none;
    z-index: 1;
}

/* Base input — high specificity to beat theme resets */
.tvcc .tvcc__input,
.tvcc input.tvcc__input,
.tvcc select.tvcc__input,
.tvcc textarea.tvcc__input {
    width: 100% !important;
    padding: 12px 14px !important;
    background: var(--tvcc-white) !important;
    border: 1.5px solid var(--tvcc-line) !important;
    border-radius: var(--tvcc-r-md) !important;
    font-size: 0.9375rem !important;
    font-family: 'DM Sans', sans-serif !important;
    color: var(--tvcc-ink) !important;
    transition: border-color var(--tvcc-t), box-shadow var(--tvcc-t) !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: block !important;
    height: auto !important;
    line-height: 1.5 !important;
}
.tvcc .tvcc__input--has-icon  { padding-left: 50px !important; }
.tvcc .tvcc__input--has-prefix { padding-left: 58px !important; }

.tvcc .tvcc__input:hover,
.tvcc input.tvcc__input:hover {
    border-color: #B8B8D0 !important;
}
.tvcc .tvcc__input:focus,
.tvcc input.tvcc__input:focus {
    border-color: var(--tvcc-red) !important;
    box-shadow: 0 0 0 3px var(--tvcc-red-ring) !important;
    outline: none !important;
}

/* USD prefix */
.tvcc .tvcc__prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--tvcc-ink-mid);
    pointer-events: none;
    letter-spacing: .5px;
    z-index: 1;
}

/* ─── Period pills ───────────────────────────────────────────────────────── */
.tvcc .tvcc__period-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tvcc .tvcc__period-pill {
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}
.tvcc .tvcc__period-pill input[type="radio"] {
    display: none !important;
    position: absolute;
    opacity: 0;
}
.tvcc .tvcc__period-pill span {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    padding: 12px 8px !important;
    border: 1.5px solid var(--tvcc-line) !important;
    border-radius: var(--tvcc-r-md) !important;
    background: var(--tvcc-white) !important;
    font-size: 0.8125rem !important;
    color: var(--tvcc-ink-mid) !important;
    transition: all var(--tvcc-t);
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
}
.tvcc .tvcc__period-pill span strong {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    display: block;
    color: var(--tvcc-ink) !important;
}
.tvcc .tvcc__period-pill input[type="radio"]:checked + span {
    border-color: var(--tvcc-red) !important;
    background: var(--tvcc-red-pale) !important;
    color: var(--tvcc-red-dark) !important;
    box-shadow: 0 0 0 3px var(--tvcc-red-ring) !important;
}
.tvcc .tvcc__period-pill input[type="radio"]:checked + span strong {
    color: var(--tvcc-red) !important;
}

/* ─── Employment cards ───────────────────────────────────────────────────── */
.tvcc .tvcc__emp-grid { display: flex; flex-direction: column; gap: 10px; }

.tvcc .tvcc__emp-card {
    cursor: pointer;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.tvcc .tvcc__emp-card input[type="radio"] {
    display: none !important;
    position: absolute;
    opacity: 0;
}
.tvcc .tvcc__emp-card-inner {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 14px 16px !important;
    border: 1.5px solid var(--tvcc-line) !important;
    border-radius: var(--tvcc-r-md) !important;
    background: var(--tvcc-white) !important;
    transition: all var(--tvcc-t);
    cursor: pointer;
}
.tvcc .tvcc__emp-icon {
    width: 20px;
    height: 20px;
    color: var(--tvcc-ink-light);
    flex-shrink: 0;
    transition: color var(--tvcc-t);
}
.tvcc .tvcc__emp-name {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--tvcc-ink) !important;
    display: block !important;
}
.tvcc .tvcc__emp-dep {
    font-size: 0.78rem !important;
    color: var(--tvcc-ink-light) !important;
    display: block !important;
}
.tvcc .tvcc__emp-card input[type="radio"]:checked ~ .tvcc__emp-card-inner {
    border-color: var(--tvcc-red) !important;
    background: var(--tvcc-red-pale) !important;
    box-shadow: 0 0 0 3px var(--tvcc-red-ring) !important;
}
.tvcc .tvcc__emp-card input[type="radio"]:checked ~ .tvcc__emp-card-inner .tvcc__emp-icon { color: var(--tvcc-red); }
.tvcc .tvcc__emp-card input[type="radio"]:checked ~ .tvcc__emp-card-inner .tvcc__emp-name { color: var(--tvcc-red-dark) !important; }

.tvcc .tvcc__emp-notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--tvcc-r-sm);
    padding: 9px 12px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #1E40AF;
    line-height: 1.45;
}
.tvcc .tvcc__emp-notice svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 2px; }

/* ─── Mini preview ───────────────────────────────────────────────────────── */
.tvcc .tvcc__mini-preview {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: var(--tvcc-surface);
    border: 1.5px solid var(--tvcc-line);
    border-radius: var(--tvcc-r-md);
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--tvcc-ink-mid);
    margin-top: 4px;
}
.tvcc .tvcc__mini-preview strong {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--tvcc-red) !important;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.tvcc .tvcc__cta-btn,
.tvcc button.tvcc__cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: 100% !important;
    background: var(--tvcc-red) !important;
    color: white !important;
    border: none !important;
    padding: 15px 24px !important;
    border-radius: var(--tvcc-r-md) !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    font-family: 'DM Sans', sans-serif !important;
    cursor: pointer !important;
    letter-spacing: -.1px;
    transition: background var(--tvcc-t), transform var(--tvcc-t), box-shadow var(--tvcc-t);
    margin-top: 28px !important;
    text-decoration: none !important;
    line-height: 1 !important;
    height: auto !important;
    box-shadow: none;
}
.tvcc .tvcc__cta-btn svg { width: 15px; height: 15px; transition: transform var(--tvcc-t); flex-shrink: 0; }
.tvcc .tvcc__cta-btn:hover,
.tvcc button.tvcc__cta-btn:hover {
    background: var(--tvcc-red-dark) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(204,22,38,.30) !important;
    text-decoration: none !important;
}
.tvcc .tvcc__cta-btn:hover svg { transform: translateX(3px); }
.tvcc .tvcc__cta-btn:active  { transform: none; box-shadow: none !important; }
.tvcc .tvcc__cta-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.tvcc .tvcc__cta-btn--apply,
.tvcc button.tvcc__cta-btn--apply {
    background: var(--tvcc-ink) !important;
}
.tvcc .tvcc__cta-btn--apply:hover,
.tvcc button.tvcc__cta-btn--apply:hover {
    background: #0D0D18 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.25) !important;
}

/* Ghost / back button */
.tvcc .tvcc__ghost-btn,
.tvcc button.tvcc__ghost-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    background: none !important;
    border: 1.5px solid var(--tvcc-line) !important;
    color: var(--tvcc-ink-mid) !important;
    padding: 11px 18px !important;
    border-radius: var(--tvcc-r-md) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    font-family: 'DM Sans', sans-serif !important;
    cursor: pointer !important;
    transition: all var(--tvcc-t);
    margin: 0 !important;
    height: auto !important;
    line-height: 1 !important;
    text-decoration: none !important;
}
.tvcc .tvcc__ghost-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.tvcc .tvcc__ghost-btn:hover { border-color: var(--tvcc-ink) !important; color: var(--tvcc-ink) !important; }
.tvcc .tvcc__ghost-btn--center {
    display: flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 10px !important;
}

.tvcc .tvcc__nav-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.tvcc .tvcc__nav-row .tvcc__cta-btn { flex: 1; margin-top: 0 !important; }

/* Spinner */
.tvcc .tvcc__btn-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: white;
    border-radius: 50%;
    animation: tvcc-spin .65s linear infinite;
    flex-shrink: 0;
}
.tvcc .tvcc__btn-spinner.is-on { display: block; }
@keyframes tvcc-spin { to { transform: rotate(360deg); } }

.tvcc .tvcc__btn-arrow { flex-shrink: 0; }

/* ─── Trust pills ────────────────────────────────────────────────────────── */
.tvcc .tvcc__trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.tvcc .tvcc__trust-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem !important;
    color: var(--tvcc-ink-light) !important;
    background: var(--tvcc-surface) !important;
    border: 1px solid var(--tvcc-line) !important;
    border-radius: 99px !important;
    padding: 5px 11px !important;
    margin: 0 !important;
}
.tvcc .tvcc__trust-pill svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ─── Messages ───────────────────────────────────────────────────────────── */
.tvcc .tvcc__msg {
    border-radius: var(--tvcc-r-sm);
    padding: 11px 14px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}
.tvcc .tvcc__msg--error { background: var(--tvcc-red-pale); border: 1px solid #FCA5A5; color: #991B1B; }
.tvcc .tvcc__msg--error ul { margin: 5px 0 0; padding-left: 18px; }
.tvcc .tvcc__msg--success { background: var(--tvcc-success-pale); border: 1px solid #6EE7B7; color: var(--tvcc-success); }

/* ─── Result hero ────────────────────────────────────────────────────────── */
.tvcc .tvcc__result-hero {
    text-align: center;
    padding: 8px 0 28px;
    border-bottom: 1px solid var(--tvcc-line);
    margin-bottom: 24px;
}
.tvcc .tvcc__result-icon {
    color: var(--tvcc-red);
    width: 48px; height: 48px;
    margin: 0 auto 14px;
    animation: tvcc-pop .4s cubic-bezier(.34,1.56,.64,1);
}
.tvcc .tvcc__result-icon svg { width: 100%; height: 100%; }
@keyframes tvcc-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.tvcc .tvcc__result-hi    { font-size: 0.875rem !important; font-weight: 600 !important; color: var(--tvcc-ink-mid) !important; margin: 0 0 6px !important; }
.tvcc .tvcc__result-caption { font-size: 0.875rem !important; color: var(--tvcc-ink-light) !important; margin: 0 0 14px !important; }

.tvcc .tvcc__result-amount-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}
.tvcc .tvcc__result-curr { font-size: 1rem; font-weight: 700; color: var(--tvcc-ink-mid); }
.tvcc .tvcc__result-num {
    font-size: 3.6rem !important;
    font-weight: 800 !important;
    color: var(--tvcc-red) !important;
    letter-spacing: -2px;
    line-height: 1;
    animation: tvcc-count-in .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes tvcc-count-in { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.tvcc .tvcc__result-period {
    display: inline-block !important;
    margin-top: 10px;
    background: var(--tvcc-red-pale) !important;
    color: var(--tvcc-red-dark) !important;
    border: 1px solid rgba(204,22,38,.2) !important;
    border-radius: 99px !important;
    padding: 4px 14px !important;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ─── Breakdown ──────────────────────────────────────────────────────────── */
.tvcc .tvcc__breakdown {
    background: var(--tvcc-surface);
    border-radius: var(--tvcc-r-md);
    border: 1px solid var(--tvcc-line);
    overflow: hidden;
    margin-bottom: 24px;
}
.tvcc .tvcc__breakdown-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--tvcc-line);
    font-size: 0.875rem;
    margin: 0 !important;
}
.tvcc .tvcc__breakdown-row:last-child { border-bottom: none; }
.tvcc .tvcc__breakdown-row span { color: var(--tvcc-ink-light) !important; }
.tvcc .tvcc__breakdown-row span em {
    font-style: normal;
    background: #F0FDF4;
    color: var(--tvcc-success);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    margin-left: 6px;
    border: 1px solid #A7F3D0;
}
.tvcc .tvcc__breakdown-row strong { font-weight: 700 !important; color: var(--tvcc-ink) !important; }

/* ─── Result CTAs ────────────────────────────────────────────────────────── */
.tvcc .tvcc__result-actions { display: flex; flex-direction: column; }
.tvcc .tvcc__result-actions .tvcc__cta-btn { margin-top: 0 !important; }

/* ─── Disclaimer ─────────────────────────────────────────────────────────── */
.tvcc .tvcc__disclaimer {
    margin-top: 20px;
    font-size: 0.75rem !important;
    color: var(--tvcc-ink-light) !important;
    line-height: 1.6;
    text-align: center;
    border-top: 1px solid var(--tvcc-line);
    padding-top: 16px;
}

/* ─── Utility ────────────────────────────────────────────────────────────── */
.tvcc .tvcc--hidden,
.tvcc--hidden { display: none !important; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
    .tvcc { border-radius: 0; box-shadow: none; --tvcc-pad: 22px; }
    .tvcc .tvcc__brand { padding: 18px 22px; }
    .tvcc .tvcc__panel { padding: 24px 22px 30px; }
    .tvcc .tvcc__result-num { font-size: 2.8rem !important; }
    .tvcc .tvcc__period-pill span { width: 80px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WOOCOMMERCE — Cart Button + Modal
   ═══════════════════════════════════════════════════════════════════════════ */

.tvcc-wc-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: var(--tvcc-white, #ffffff) !important;
    color: var(--tvcc-red, #CC1626) !important;
    border: 2px solid var(--tvcc-red, #CC1626) !important;
    border-radius: 6px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
    line-height: 1 !important;
}
.tvcc-wc-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.tvcc-wc-btn:hover {
    background: var(--tvcc-red, #CC1626) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.tvcc-wc-btn--cart {
    width: 100%;
    padding: 13px 20px !important;
    margin-top: 10px !important;
    display: flex !important;
}

.tvcc-wc-btn--mini {
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
}

.tvcc-wc-btn--link,
a.tvcc-wc-btn--link {
    text-decoration: none !important;
    display: flex !important;
}

/* Modal overlay */
.tvcc-modal-overlay {
    position: fixed !important;
    inset: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,20,.65);
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: tvcc-overlay-in .2s ease;
}
@keyframes tvcc-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.tvcc-modal-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 20px;
    animation: tvcc-modal-in .28s cubic-bezier(.34,1.2,.64,1);
}
@keyframes tvcc-modal-in {
    from { opacity: 0; transform: scale(.93) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.tvcc-modal-box::-webkit-scrollbar { width: 5px; }
.tvcc-modal-box::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }

.tvcc-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 10;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255,255,255,.15) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    color: #ffffff !important;
    padding: 0 !important;
    transition: background .15s;
}
.tvcc-modal-close:hover { background: rgba(255,255,255,.3) !important; }
.tvcc-modal-close svg { width: 14px; height: 14px; }

body.tvcc-modal-open { overflow: hidden !important; }

@media (max-width: 540px) {
    .tvcc-modal-overlay { padding: 0 !important; align-items: flex-end; }
    .tvcc-modal-box {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        animation: tvcc-modal-up .3s cubic-bezier(.34,1.1,.64,1);
    }
    @keyframes tvcc-modal-up {
        from { opacity: 0; transform: translateY(40px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}
