/* The Plumbing: Popups. Colours come from the settings screen (--tpop-main, --tpop-cta). */
.tpop[hidden],.tpop-bar[hidden]{display:none!important}
.tpop{position:fixed;inset:0;z-index:9990;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;transition:opacity .22s ease}
.tpop.is-in{opacity:1}
.tpop__overlay{position:absolute;inset:0;background:rgba(2,8,23,.62);backdrop-filter:blur(2px)}
.tpop__card{position:relative;width:100%;max-width:520px;max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 30px 70px -12px rgba(2,8,23,.55);transform:translateY(14px) scale(.97);transition:transform .25s ease;outline:0}
.tpop.is-in .tpop__card{transform:none}
.tpop__x{position:absolute;top:12px;right:12px;z-index:2;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;font-size:26px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;padding:0}
.tpop__x:hover,.tpop__x:focus-visible{background:rgba(255,255,255,.38)}
.tpop__top{display:flex;align-items:center;justify-content:center;height:112px;color:#fff;background:linear-gradient(135deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.26) 100%),var(--tpop-main,#0a6ba7)}
.tpop__body{padding:26px 30px 28px;text-align:center;color:#1f2937}
.tpop__eyebrow{margin:0 0 8px;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--tpop-main,#0a6ba7)}
.tpop__body h2{margin:0 0 12px;font-size:1.65rem;line-height:1.2;font-weight:800;color:#0b2540;text-wrap:balance}
.tpop__body #tpop-text{margin:0 0 22px;font-size:1rem;line-height:1.6;color:#4b5563}
.tpop__actions{display:flex;flex-direction:column;align-items:center;gap:12px}
.tpop__cta{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;min-height:3.4rem;padding:0 2.2rem;border-radius:999px;font-weight:800;font-size:1rem;letter-spacing:.05em;text-transform:uppercase;text-decoration:none;color:#0b2540!important;background:var(--tpop-cta,#ffbe0b);background:linear-gradient(135deg,color-mix(in srgb,var(--tpop-cta,#ffbe0b) 55%,#fff) 0%,var(--tpop-cta,#ffbe0b) 55%,color-mix(in srgb,var(--tpop-cta,#ffbe0b) 80%,#ff7a00) 100%);box-shadow:0 12px 26px -8px color-mix(in srgb,var(--tpop-cta,#ffbe0b) 85%,transparent);transition:transform .25s ease,box-shadow .25s ease,filter .25s ease}
.tpop__cta:hover,.tpop__cta:focus-visible{transform:translateY(-2px) scale(1.03);filter:brightness(1.06)}
.tpop__call{font-weight:700;font-size:.98rem;color:var(--tpop-main,#0a6ba7);text-decoration:none}
.tpop__call:hover{text-decoration:underline}
.tpop__no{margin-top:16px;background:none;border:0;padding:6px 10px;font-size:.88rem;color:#6b7280;cursor:pointer;text-decoration:underline}
.tpop__no:hover{color:#374151}
html.tpop-open{overflow:hidden}
/* Sticky Call / Book bar */
.tpop-bar{position:fixed;left:0;right:0;bottom:0;z-index:9980;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #dbe3ee;box-shadow:0 -8px 24px -10px rgba(2,8,23,.35);transform:translateY(100%);transition:transform .28s ease}
.tpop-bar.is-in{transform:none}
.tpop-bar a{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;min-height:3rem;padding:0 10px;border-radius:999px;font-weight:800;font-size:clamp(.78rem,3.9vw,.92rem);line-height:1.1;text-decoration:none;white-space:nowrap}
.tpop-bar a span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tpop-bar a svg{flex:none;width:18px;height:18px}
.tpop-bar__call{color:#fff!important;background:var(--tpop-main,#0a6ba7);background:linear-gradient(135deg,var(--tpop-main,#0a6ba7),color-mix(in srgb,var(--tpop-main,#0a6ba7) 78%,#fff))}
.tpop-bar__book{color:#0b2540!important;background:var(--tpop-cta,#ffbe0b);background:linear-gradient(135deg,color-mix(in srgb,var(--tpop-cta,#ffbe0b) 55%,#fff) 0%,var(--tpop-cta,#ffbe0b) 55%,color-mix(in srgb,var(--tpop-cta,#ffbe0b) 80%,#ff7a00) 100%)}
@media (max-width:340px){.tpop-bar{gap:6px;padding-inline:8px}.tpop-bar a{padding:0 6px}.tpop-bar a svg{display:none}}
html.tpop-has-bar body{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
@media (prefers-reduced-motion:reduce){.tpop,.tpop__card,.tpop-bar{transition:none}}

/* ---------- Modal designs (v0.17): image layouts, price box, themes ---------- */
.tpop--design .tpop__card{max-width:540px}
.tpop--design.tpop--image_left .tpop__card,.tpop--design.tpop--image_right .tpop__card{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);max-width:900px;overflow:auto}
.tpop--design.tpop--image_right .tpop__media{order:2}
.tpop--design .tpop__media{position:relative;min-height:240px;background:var(--tpop-main,#0a6ba7);overflow:hidden}
.tpop--design .tpop__img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.tpop__img--top{object-position:center top!important}.tpop__img--bottom{object-position:center bottom!important}.tpop__img--left{object-position:left center!important}.tpop__img--right{object-position:right center!important}
.tpop--design.tpop--image_top .tpop__card{max-width:580px;overflow:auto}
.tpop--design.tpop--image_top .tpop__media{height:230px;min-height:0}
.tpop__badge{position:absolute;left:14px;top:14px;z-index:1;padding:6px 13px;border-radius:999px;background:var(--tpop-cta,#ffbe0b);color:#0b2540;font-weight:800;font-size:.76rem;letter-spacing:.05em;text-transform:uppercase;box-shadow:0 8px 18px -6px rgba(2,8,23,.5)}
.tpop--design .tpop__x{background:rgba(255,255,255,.94);color:#0b2540;box-shadow:0 4px 14px -4px rgba(2,8,23,.4)}
.tpop--design .tpop__x:hover,.tpop--design .tpop__x:focus-visible{background:#fff}
.tpop--design .tpop__body{display:flex;flex-direction:column;justify-content:center;padding:32px 34px 26px;text-align:left;min-width:0}
.tpop--design.tpop--noimg .tpop__body{text-align:center;align-items:center}
.tpop--design.tpop--noimg .tpop__actions{align-items:center}
.tpop--design .tpop__body h2{margin:0 0 12px;font-size:1.7rem;line-height:1.18}
.tpop--design .tpop__text{margin:0 0 16px;font-size:1rem;line-height:1.6;color:#4b5563}
.tpop__list{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:9px}
.tpop__list li{position:relative;padding-left:30px;font-size:.97rem;line-height:1.45;color:#374151}
.tpop__list li::before{content:"";position:absolute;left:0;top:.1em;width:20px;height:20px;border-radius:50%;background:var(--tpop-main,#0a6ba7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
.tpop__price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 18px;padding:14px 16px;border-radius:14px;background:color-mix(in srgb,var(--tpop-main,#0a6ba7) 8%,#fff);border:1px solid color-mix(in srgb,var(--tpop-main,#0a6ba7) 20%,#fff)}
.tpop__price-label{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:#4b5563}
.tpop__price-amount{font-size:2.1rem;font-weight:800;line-height:1;color:var(--tpop-main,#0a6ba7)}
.tpop__price-note{flex-basis:100%;font-size:.88rem;color:#4b5563}
.tpop--design .tpop__actions{align-items:stretch;gap:10px}
.tpop--design .tpop__cta{box-sizing:border-box;width:100%;min-height:3.5rem;padding:0 1.2rem;text-align:center}
.tpop--design .tpop__call{text-align:center}
.tpop__trust{margin:12px 0 0;font-size:.82rem;color:#6b7280;display:flex;align-items:center;gap:7px}
.tpop__trust::before{content:"";width:14px;height:14px;flex:none;background:currentColor;opacity:.75;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E") center/contain no-repeat}
.tpop--design .tpop__no{align-self:flex-start;margin-top:10px}
.tpop--design.tpop--noimg .tpop__no{align-self:center}
.tpop--design.tpop--noimg .tpop__list{text-align:left}
/* dark */
.tpop--dark .tpop__card{background:#0f172a;color:#e5e7eb}
.tpop--dark .tpop__body h2{color:#fff}
.tpop--dark .tpop__eyebrow{color:var(--tpop-cta,#ffbe0b)}
.tpop--dark .tpop__text,.tpop--dark .tpop__list li{color:#cbd5e1}
.tpop--design .tpop__body #tpop-text{margin:0 0 16px}
.tpop--dark .tpop__body #tpop-text{color:#cbd5e1}
.tpop--dark .tpop__price{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16)}
.tpop--dark .tpop__price-amount{color:var(--tpop-cta,#ffbe0b)}
.tpop--dark .tpop__price-label,.tpop--dark .tpop__price-note,.tpop--dark .tpop__trust,.tpop--dark .tpop__no{color:#9ca3af}
.tpop--dark .tpop__call{color:#fff}
.tpop--dark .tpop__x{background:rgba(255,255,255,.16);color:#fff;box-shadow:none}
.tpop--dark .tpop__list li::before{background-color:var(--tpop-cta,#ffbe0b)}
.tpop--dark.tpop--noimg .tpop__card{border:1px solid rgba(255,255,255,.12)}
/* ---------- Window styles (v0.22.7). Classic is the base look above; these three change the whole window. ---------- */
.tpop--st-clean .tpop__card{border-radius:14px;border-top:5px solid var(--tpop-main,#0a6ba7);box-shadow:0 24px 60px -18px rgba(2,8,23,.5)}
.tpop--st-clean .tpop__top{display:none}
.tpop--st-clean .tpop__x{background:#eef2f6;color:#0b2540;box-shadow:none}
.tpop--st-clean .tpop__x:hover,.tpop--st-clean .tpop__x:focus-visible{background:#dde5ee}
.tpop--st-clean .tpop__body,.tpop--st-clean.tpop--design .tpop__body{text-align:left;padding:36px 36px 28px}
.tpop--st-clean .tpop__actions{align-items:stretch}
.tpop--st-clean .tpop__cta{border-radius:10px;background:var(--tpop-main,#0a6ba7);color:#fff!important;text-transform:none;letter-spacing:.01em;font-size:1.05rem;box-shadow:none}
.tpop--st-clean .tpop__call{text-align:center}
.tpop--st-clean .tpop__no,.tpop--st-clean.tpop--design.tpop--noimg .tpop__no{align-self:flex-start;text-decoration:none;color:#6b7280}
.tpop--st-clean.tpop--design.tpop--noimg .tpop__body{align-items:stretch;text-align:left}
.tpop--st-midnight .tpop__card{background-color:#0a1a30;background-image:radial-gradient(90% 60% at 100% 0,color-mix(in srgb,var(--tpop-main,#0a6ba7) 70%,transparent),transparent 62%);color:#e6eef8;border:1px solid rgba(255,255,255,.14);box-shadow:0 34px 80px -14px rgba(0,0,0,.85)}
.tpop--st-midnight .tpop__top{background:transparent;height:96px;color:var(--tpop-cta,#ffbe0b)}
.tpop--st-midnight .tpop__body h2{color:#fff}
.tpop--st-midnight .tpop__body #tpop-text,.tpop--st-midnight .tpop__text,.tpop--st-midnight .tpop__list li{color:#c9d6e8}
.tpop--st-midnight .tpop__eyebrow{color:var(--tpop-cta,#ffbe0b)}
.tpop--st-midnight .tpop__call{color:#fff}
.tpop--st-midnight .tpop__no,.tpop--st-midnight .tpop__trust,.tpop--st-midnight .tpop__price-label,.tpop--st-midnight .tpop__price-note{color:#9db0c8}
.tpop--st-midnight .tpop__x{background:rgba(255,255,255,.14);color:#fff;box-shadow:none}
.tpop--st-midnight .tpop__price{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16)}
.tpop--st-midnight .tpop__price-amount{color:var(--tpop-cta,#ffbe0b)}
.tpop--st-midnight .tpop__list li::before{background-color:var(--tpop-cta,#ffbe0b)}
.tpop--st-bold .tpop__card{background-color:var(--tpop-main,#0a6ba7);background-image:linear-gradient(160deg,rgba(255,255,255,.22) 0,rgba(255,255,255,0) 55%),radial-gradient(circle at 100% 100%,rgba(0,0,0,.28),transparent 55%);color:#fff;border-radius:28px;box-shadow:0 34px 80px -14px rgba(2,8,23,.7)}
.tpop--st-bold .tpop__top{background:transparent;height:100px}
.tpop--st-bold .tpop__body h2{color:#fff;font-size:1.85rem}
.tpop--st-bold .tpop__eyebrow{color:var(--tpop-cta,#ffbe0b)}
.tpop--st-bold .tpop__body #tpop-text,.tpop--st-bold .tpop__text,.tpop--st-bold .tpop__list li{color:rgba(255,255,255,.9)}
.tpop--st-bold .tpop__call{color:#fff}
.tpop--st-bold .tpop__no,.tpop--st-bold .tpop__trust,.tpop--st-bold .tpop__price-label,.tpop--st-bold .tpop__price-note{color:rgba(255,255,255,.75)}
.tpop--st-bold .tpop__x{background:rgba(255,255,255,.2);color:#fff;box-shadow:none}
.tpop--st-bold .tpop__price{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28)}
.tpop--st-bold .tpop__price-amount{color:#fff}
.tpop--st-bold .tpop__list li::before{background-color:var(--tpop-cta,#ffbe0b)}
/* still copies on the settings screens */
.tpop--inline{position:relative;inset:auto;z-index:auto;display:flex;justify-content:center;padding:0;opacity:1}
.tpop--inline .tpop__card{transform:none;max-height:none;overflow:hidden}
.tpop--inline .tpop__body h2{padding:0;text-transform:none}
/* phones and narrow windows */
@media (max-width:720px){
.tpop--design.tpop--image_left .tpop__card,.tpop--design.tpop--image_right .tpop__card{display:block;overflow:auto}
.tpop--design .tpop__media{height:190px;min-height:0}
.tpop--design .tpop__body{padding:22px 22px 20px}
.tpop--design .tpop__body h2{font-size:1.4rem}
.tpop__price-amount{font-size:1.8rem}
}
