:root {
    --ttbsp-ink: #0b3540;
    --ttbsp-teal: #118f8b;
    --ttbsp-teal-dark: #08736f;
    --ttbsp-sun: #f4bb4d;
    --ttbsp-cream: #fff9ec;
    --ttbsp-mint: #edf8f5;
}

.ttbsp-banner,
.ttbsp-card,
.ttbsp-banner *,
.ttbsp-card * {
    box-sizing: border-box;
}

.ttbsp-banner {
    position: sticky;
    top: 0;
    z-index: 9998;
    width: 100%;
    min-height: 38px;
    background: linear-gradient(90deg, #f6c458 0%, #ffd978 52%, #f4bb4d 100%);
    border-bottom: 1px solid rgba(11, 53, 64, .16);
    box-shadow: 0 4px 16px rgba(8, 45, 55, .12);
    color: var(--ttbsp-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.admin-bar .ttbsp-banner { top: 32px; }

.ttbsp-banner__inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.25;
}

.ttbsp-banner__badge {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--ttbsp-ink);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ttbsp-banner__message { font-weight: 800; }
.ttbsp-banner__note { color: #31535a; font-weight: 650; }

.ttbsp-banner .ttbsp-offer-link {
    margin-left: 4px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--ttbsp-teal-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.ttbsp-banner .ttbsp-offer-link:hover,
.ttbsp-banner .ttbsp-offer-link:focus-visible {
    background: var(--ttbsp-ink);
    color: #fff;
}

.ttbsp-card {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 9997;
    width: min(390px, calc(100% - 44px));
    padding: 27px 28px 25px;
    overflow: hidden;
    border: 1px solid rgba(9, 72, 79, .14);
    border-top: 4px solid var(--ttbsp-sun);
    border-radius: 16px;
    background: linear-gradient(145deg, var(--ttbsp-cream) 0%, var(--ttbsp-mint) 100%);
    box-shadow: 0 24px 64px rgba(5, 38, 45, .24);
    color: var(--ttbsp-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .24s ease, transform .24s ease;
}

.ttbsp-card[hidden] { display: none; }
.ttbsp-card.ttbsp-card--visible { opacity: 1; transform: translateY(0); }

.ttbsp-card__close {
    position: absolute;
    top: 12px;
    right: 13px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 53, 64, .08);
    color: var(--ttbsp-ink);
    font: 400 24px/32px Arial, sans-serif;
    cursor: pointer;
}

.ttbsp-card__close:hover,
.ttbsp-card__close:focus-visible { background: rgba(8, 53, 64, .16); }

.ttbsp-card__eyebrow {
    margin: 0 42px 8px 0 !important;
    color: var(--ttbsp-teal-dark) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .13em !important;
    line-height: 1.3 !important;
    text-transform: uppercase;
}

.ttbsp-card h2 {
    margin: 0 36px 11px 0 !important;
    color: var(--ttbsp-ink) !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: clamp(25px, 3vw, 33px) !important;
    font-weight: 800 !important;
    letter-spacing: -.025em !important;
    line-height: 1.08 !important;
}

.ttbsp-card__body {
    margin: 0 0 19px !important;
    color: #405b62 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.ttbsp-card .ttbsp-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    border-radius: 3px;
    background: var(--ttbsp-teal);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
}

.ttbsp-card .ttbsp-card__cta:hover,
.ttbsp-card .ttbsp-card__cta:focus-visible { background: var(--ttbsp-teal-dark); color: #fff; }

@media (max-width: 700px) {
    .ttbsp-banner__inner {
        width: calc(100% - 20px);
        min-height: 44px;
        gap: 6px;
        padding: 6px 0;
        font-size: 11px;
        text-align: center;
    }

    .ttbsp-banner__badge,
    .ttbsp-banner__note { display: none; }
    .ttbsp-banner .ttbsp-offer-link { font-size: 10px; }

    .ttbsp-card {
        left: 12px;
        bottom: 86px;
        width: calc(100% - 24px);
        padding: 23px 22px 21px;
        border-radius: 14px;
    }

    .ttbsp-card h2 { font-size: 25px !important; }
    .ttbsp-card__body { font-size: 13px !important; }
}

@media (max-width: 782px) {
    body.admin-bar .ttbsp-banner { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .ttbsp-card { transition: none; }
}

