/* ============================================================
   Dorve x Flamine starter pack pop-up (inc/starter-popup.php)
   Desktop: centered two-column modal. Up to 720px: bottom sheet.
   Uses the theme tokens from dorve.css (:root).
   ============================================================ */

.dsp{padding:0;border:0;margin:auto;width:min(920px,calc(100vw - 48px));max-width:none;max-height:none;background:transparent;color:var(--ink);font-family:inherit;line-height:1.5;overflow:visible}
.dsp:focus{outline:none}
.dsp::backdrop{background:rgba(0,7,54,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
html.dsp-lock{overflow:hidden}

.dsp-panel{position:relative;display:flex;background:var(--card);border-radius:28px;overflow:hidden;overflow-y:auto;box-shadow:var(--shadow);max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px)}

/* left column */
.dsp-main{flex:1 1 0;min-width:0;padding:44px 44px 42px;display:flex;flex-direction:column;gap:26px}
.dsp-brand{display:flex;align-items:center;gap:10px}
.dsp-brand img{width:110px;height:auto}
.dsp-x{font-size:1.06rem;font-weight:500;color:#33374a;letter-spacing:-.01em;padding-top:4px}
.dsp-head{display:flex;flex-direction:column;gap:14px}
.dsp-title{font-size:clamp(1.9rem,3.2vw,2.75rem);font-weight:300;letter-spacing:-.03em;line-height:1.08;color:var(--ink)}
.dsp-desc{font-size:1.06rem;color:var(--muted);max-width:44ch}
.dsp-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.dsp-list li{display:flex;gap:14px;align-items:flex-start}
.dsp-check{flex:0 0 24px;height:24px;margin-top:1px;border-radius:7px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center}
.dsp-item b{display:block;font-size:1rem;font-weight:600;color:var(--ink)}
.dsp-more{display:block;font-size:.94rem;color:var(--muted)}
.dsp-t-sm{display:none!important}

/* right column (navy) */
.dsp-side{flex:0 0 360px;background:var(--navy);color:#fff;padding:44px 36px 30px;display:flex;flex-direction:column;gap:24px}
.dsp-close{position:absolute;top:18px;right:18px;z-index:2;width:44px;height:44px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .15s}
.dsp-close:hover{border-color:rgba(255,255,255,.6)}
.dsp-price{display:flex;flex-direction:column;gap:24px}
.dsp-flag{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;padding-right:36px}
.dsp-tag{font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:6px 12px;border-radius:999px;background:var(--yellow);color:var(--navy)}
.dsp-when{font-size:.88rem;color:#b9bcd0}
.dsp-amount{display:flex;flex-direction:column;gap:6px}
.dsp-big{font-size:4.875rem;font-weight:300;letter-spacing:-.03em;line-height:1;color:#fff}
.dsp-unit{font-size:.94rem;color:#b9bcd0}
.dsp-pay{display:flex;flex-direction:column;gap:14px}
.dsp-split{display:flex;gap:6px;height:10px}
.dsp-split span{flex:1 1 0;border-radius:999px}
.dsp-split span:first-child{background:var(--yellow)}
.dsp-split span:last-child{border:2px solid var(--teal)}
.dsp-halves{display:flex;gap:16px}
.dsp-halves p{flex:1 1 0;display:flex;flex-direction:column}
.dsp-halves b{font-size:1.31rem;font-weight:600;letter-spacing:-.02em;color:#fff}
.dsp-halves span{font-size:.88rem;color:#b9bcd0}
.dsp-actions{margin-top:auto;display:flex;flex-direction:column;gap:6px}
.dsp-cta{min-height:52px;font-size:1rem}
.dsp-later{align-self:center;min-height:44px;padding:0 12px;background:none;border:0;color:#b9bcd0;font:inherit;font-size:.9rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.dsp-later:hover{color:#fff}
.dsp-fine{font-size:.78rem;line-height:1.45;color:#b9bcd0;text-align:center}

/* keyboard focus: yellow on navy, navy on white */
.dsp-close:focus-visible,.dsp-cta:focus-visible,.dsp-later:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}

/* entrance */
.dsp[open]{animation:dsp-in .22s ease-out}
.dsp[open]::backdrop{animation:dsp-fade .22s ease-out}
@keyframes dsp-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes dsp-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.dsp[open],.dsp[open]::backdrop{animation:none}.dsp-close{transition:none}}

/* tablet */
@media (max-width:960px){
  .dsp-main{padding:36px 32px 34px}
  .dsp-side{flex-basis:320px;padding:40px 28px 26px}
  .dsp-big{font-size:3.75rem}
}

/* phone: bottom sheet, price card above the list */
@media (max-width:720px){
  .dsp{width:100%;margin:auto 0 0}
  .dsp-panel{flex-direction:column;gap:16px;border-radius:28px 28px 0 0;padding:18px 20px calc(22px + env(safe-area-inset-bottom,0px));max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
  .dsp-main,.dsp-side{display:contents}
  .dsp-brand{order:1;min-height:44px;padding-right:56px;gap:8px}
  .dsp-head{order:2;gap:10px}
  .dsp-price{order:3;display:grid;grid-template-columns:1fr auto;gap:14px 12px;background:var(--navy);color:#fff;border-radius:20px;padding:18px 20px 20px}
  .dsp-list{order:4;gap:10px}
  .dsp-actions{order:5;gap:2px;margin-top:0}
  .dsp-x{font-size:1rem;padding-top:3px}
  .dsp-head .eyebrow{font-size:.75rem}
  .dsp-title{font-size:1.94rem}
  .dsp-desc{font-size:.94rem}
  .dsp-list li{align-items:center;gap:12px}
  .dsp-check{flex-basis:22px;height:22px;border-radius:6px}
  .dsp-check svg{width:13px;height:13px}
  .dsp-item b{font-size:.94rem;font-weight:500}
  .dsp-t-lg,.dsp-more{display:none!important}
  .dsp-t-sm{display:block!important}
  .dsp-flag{grid-column:2;grid-row:1;align-self:end;margin-bottom:6px;padding-right:0}
  .dsp-when{display:none}
  .dsp-amount{grid-column:1;grid-row:1;gap:4px}
  .dsp-big{font-size:3.125rem}
  .dsp-unit{font-size:.84rem}
  .dsp-pay{grid-column:1 / -1}
  .dsp-split{height:8px}
  .dsp-halves{gap:14px}
  .dsp-halves b{font-size:1.125rem}
  .dsp-halves span{font-size:.81rem}
  .dsp-close{top:18px;right:20px;background:var(--card);color:var(--ink);border-color:var(--line)}
  .dsp-close:hover{border-color:#cfcfca}
  .dsp-later,.dsp-fine{color:var(--muted)}
  .dsp-later:hover{color:var(--ink)}
  .dsp-fine{font-size:.75rem}
  .dsp-close:focus-visible,.dsp-cta:focus-visible,.dsp-later:focus-visible{outline-color:var(--navy)}
  .dsp[open]{animation-name:dsp-up}
  @keyframes dsp-up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
}

/* short phones: tighter sheet so the button stays in view */
@media (max-width:720px) and (max-height:760px){
  .dsp-panel{gap:12px;padding-top:14px}
  .dsp-desc{display:none}
  .dsp-title{font-size:1.75rem}
  .dsp-price{padding:16px 18px 18px;gap:12px 12px}
  .dsp-big{font-size:2.75rem}
  .dsp-list{gap:8px}
}
