:root {
    --tbsps-green: #0a8a3a;
    --tbsps-green-dark: #066b2c;
    --tbsps-green-soft: #eaf7ee;
    --tbsps-text: #101820;
    --tbsps-muted: #59636d;
    --tbsps-border: #e3e8e5;
    --tbsps-white: #ffffff;
    --tbsps-radius: 22px;
    --tbsps-shadow: 0 24px 70px rgba(9, 30, 19, 0.20);
}

.tbsps-popup[hidden] { display: none !important; }

.tbsps-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: inherit;
}

.tbsps-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 20, 0.58);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

.tbsps-dialog {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(620px, calc(100vw - 40px));
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 34px 40px 30px;
    border: 1px solid rgba(16, 24, 32, 0.08);
    border-radius: var(--tbsps-radius);
    background: var(--tbsps-white);
    color: var(--tbsps-text);
    box-shadow: var(--tbsps-shadow);
    text-align: center;
    outline: none;
    animation: tbsps-pop-in .22s ease-out both;
}

.tbsps-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--tbsps-border);
    border-radius: 999px;
    background: #fff;
    color: #1c252b;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    cursor: pointer;
    font: inherit;
    font-size: 28px;
    line-height: 1;
}

.tbsps-close:hover { background: #f6f8f7; }

.tbsps-eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--tbsps-green-soft);
    color: var(--tbsps-green-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.tbsps-title,
.tbsps-inline-title {
    color: var(--tbsps-text);
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.tbsps-title {
    margin: 0 auto 12px;
    max-width: 520px;
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.12;
}

.tbsps-description {
    max-width: 520px;
    margin: 0 auto 20px;
    color: #374047;
    font-size: 17px;
    line-height: 1.55;
}

.tbsps-popup-art {
    display: block;
    width: 100%;
    margin: 2px auto 18px;
}

.tbsps-popup-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: contain;
}

.tbsps-primary-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #0b9842 0%, #078338 100%);
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(6, 122, 51, .18);
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.tbsps-dialog > .tbsps-primary-button {
    width: min(100%, 400px);
}

.tbsps-primary-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #0aa046 0%, #067a34 100%);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(6, 122, 51, .24);
}

.tbsps-button-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #fff;
    color: var(--tbsps-green);
    font-size: 14px;
    line-height: 1;
    flex: 0 0 28px;
}

.tbsps-support {
    margin: 14px 0 0;
    color: var(--tbsps-muted);
    font-size: 13px;
    line-height: 1.45;
}

.tbsps-later {
    display: inline-block;
    margin: 16px auto 0;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--tbsps-green-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.tbsps-close:focus-visible,
.tbsps-primary-button:focus-visible,
.tbsps-later:focus-visible {
    outline: 3px solid rgba(10,138,58,.30);
    outline-offset: 3px;
}

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

/* Inline CTA */
.tbsps-inline {
    box-sizing: border-box;
    margin: 28px 0;
    border: 1px solid #d9e8dd;
    border-radius: 18px;
    background: linear-gradient(135deg, #fbfefc 0%, #f2fbf5 100%);
    color: var(--tbsps-text);
    box-shadow: 0 8px 24px rgba(12, 64, 31, .06);
    overflow: hidden;
}

.tbsps-inline--full {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(220px, .92fr);
    align-items: center;
    gap: 22px;
    padding: 28px;
}

.tbsps-inline-copy { min-width: 0; }

.tbsps-inline-title {
    margin: 0 0 9px;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.18;
}

.tbsps-inline p {
    margin: 0 0 16px;
    color: #465149;
    font-size: 15px;
    line-height: 1.55;
}

.tbsps-inline-art {
    display: block;
    min-width: 0;
}

.tbsps-inline-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

.tbsps-inline-button { max-width: 100%; }

.tbsps-inline--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
}

.tbsps-inline--compact .tbsps-inline-title { font-size: 22px; }
.tbsps-inline--compact .tbsps-inline-copy { flex: 1; }
.tbsps-inline--compact p { margin-bottom: 0; }
.tbsps-inline--compact .tbsps-primary-button { flex: 0 0 auto; }

.tbsps-inline--button {
    display: flex;
    justify-content: flex-start;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

@keyframes tbsps-pop-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
    .tbsps-popup { padding: 12px; }
    .tbsps-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 30px 20px 22px;
        border-radius: 20px;
    }
    .tbsps-close { top: 10px; right: 10px; }
    .tbsps-eyebrow { margin-bottom: 9px; font-size: 11px; }
    .tbsps-title { font-size: 28px; padding: 0 16px; }
    .tbsps-description { font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
    .tbsps-popup-art { margin: 0 auto 14px; }
    .tbsps-popup-art img { max-height: 155px; }
    .tbsps-dialog > .tbsps-primary-button { width: 100%; min-height: 50px; font-size: 16px; padding: 12px 14px; }
    .tbsps-support { font-size: 12px; }

    .tbsps-inline--full {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 18px;
    }
    .tbsps-inline--full .tbsps-inline-art { order: -1; }
    .tbsps-inline-art img { max-height: 145px; }
    .tbsps-inline-title { font-size: 23px; }
    .tbsps-inline .tbsps-primary-button { width: 100%; }

    .tbsps-inline--compact {
        display: block;
        padding: 20px 18px;
    }
    .tbsps-inline--compact .tbsps-primary-button { margin-top: 16px; width: 100%; }
}

@media (max-width: 390px) {
    .tbsps-dialog { padding-left: 16px; padding-right: 16px; }
    .tbsps-title { font-size: 25px; }
    .tbsps-popup-art img { max-height: 128px; }
}

@media (prefers-reduced-motion: reduce) {
    .tbsps-dialog { animation: none; }
    .tbsps-primary-button { transition: none; }
}
