:root{
  --cbf-toolbar-height:58px;
  --cbf-panel:#edf4ff;
  --cbf-panel-strong:#dce9fb;
  --cbf-border:#a8bdd9;
}

html{scroll-padding-top:calc(92px + var(--cbf-toolbar-height))}
body.cbf-drawer-open{overflow:hidden}
[hidden]{display:none!important}

.cbf-toolbar{
  position:sticky;
  top:0;
  z-index:190;
  min-height:var(--cbf-toolbar-height);
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr);
  align-items:center;
  gap:18px;
  padding:7px max(16px,calc((100vw - var(--cbv-shell))/2));
  border-bottom:1px solid #b9c8da;
  background:rgba(255,255,255,.97);
  box-shadow:0 8px 24px rgba(7,21,47,.08);
  backdrop-filter:blur(12px);
}
.cbf-toolbar-copy{display:flex;flex-direction:column;line-height:1.15}
.cbf-toolbar-copy strong{font-family:Georgia,"Times New Roman",serif;font-size:1rem}
.cbf-toolbar-copy span,.cbf-toolbar>p{color:var(--cbv-muted);font-size:.68rem}
.cbf-toolbar>p{justify-self:end;margin:0;text-align:right}
.cbf-layout-tabs{height:42px;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #aebdd0;border-radius:7px;overflow:hidden;background:#f7f9fc}
.cbf-layout-tabs button{min-width:132px;min-height:40px;padding:0 13px;border:0;border-right:1px solid #aebdd0;background:transparent;color:#334158;font-size:.74rem;font-weight:900;cursor:pointer}
.cbf-layout-tabs button:last-child{border-right:0}
.cbf-layout-tabs button span{display:inline-grid;width:20px;height:20px;margin-right:4px;place-items:center;border-radius:50%;background:#dce5f1;color:var(--cbv-blue);font-size:.66rem}
.cbf-layout-tabs button[aria-selected="true"]{background:var(--cbv-ink);color:#fff}
.cbf-layout-tabs button[aria-selected="true"] span{background:var(--cbv-cyan);color:#001328}

.cbv-header{top:var(--cbf-toolbar-height)}
.cbf-original-actions{display:none}
.cbf-variant{margin-top:24px;animation:cbf-enter .32s var(--cbv-ease) both}
@keyframes cbf-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

.cbf-variant-direct,.cbf-variant-timed{
  padding:18px;
  border:1px solid var(--cbf-border);
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 32px rgba(7,21,47,.09);
}
.cbf-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.cbf-form-head>div{display:flex;flex-direction:column}
.cbf-form-head span,.cbf-price-label{color:var(--cbv-blue);font-size:.65rem;font-weight:900;letter-spacing:.08em}
.cbf-form-head strong{font-size:1.02rem}
.cbf-form-head>p{display:flex;flex-direction:column;align-items:flex-end;margin:0}
.cbf-form-head b{font-family:Georgia,"Times New Roman",serif;font-size:1.35rem}
.cbf-form-head small{color:var(--cbv-green);font-size:.65rem;font-weight:900}

.cbf-order-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cbf-order-form>label{display:grid;gap:5px;color:#26364d;font-size:.72rem;font-weight:900}
.cbf-order-form input{width:100%;min-height:48px;padding:10px 12px;border:1px solid #aebdd0;border-radius:6px;background:#fff;color:var(--cbv-ink)}
.cbf-order-form input::placeholder{color:#7c899c}
.cbf-field-wide{grid-column:1/-1}
.cbf-form-note{min-height:22px;display:flex;align-items:center;gap:7px;margin:0;color:var(--cbv-green);font-size:.68rem;font-weight:800}
.cbf-form-note .cbv-icon{width:18px;height:18px}
.cbf-form-status{min-height:18px;margin:0;color:var(--cbv-green);font-size:.72rem;font-weight:900}

.cbf-variant-panel{padding:20px 0;border-top:1px solid var(--cbv-line);border-bottom:1px solid var(--cbv-line)}
.cbf-variant-panel>div{display:grid;grid-template-columns:1fr auto;gap:2px 16px;align-items:end;margin-bottom:15px}
.cbf-variant-panel>div span{grid-column:1/-1}
.cbf-variant-panel>div strong{font-family:Georgia,"Times New Roman",serif;font-size:2rem;line-height:1}
.cbf-variant-panel>div small{color:var(--cbv-green);font-size:.78rem;font-weight:900;text-align:right}
.cbf-variant-panel>p{display:flex;gap:8px;margin:14px 0 0;color:var(--cbv-muted);font-size:.75rem}
.cbf-variant-panel>p .cbv-icon{width:19px;height:19px;color:var(--cbv-green)}

.cbf-story-gate{padding:15px 0;border-top:1px solid #88a5ca;border-bottom:1px solid #88a5ca;background:#eaf2ff}
.cbf-story-gate>.cbv-shell{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.cbf-story-gate>.cbv-shell>div{display:flex;align-items:center;gap:11px}
.cbf-story-gate p{margin:0;color:#31435d;font-size:.82rem}
.cbf-story-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}
.cbf-reset-timer{min-height:44px;padding:0 15px;border:1px solid #8198b8;border-radius:6px;background:#fff;color:var(--cbv-blue-dark);font-size:.76rem;font-weight:900;cursor:pointer}
.cbf-reset-timer:hover{border-color:var(--cbv-blue);background:#f8fbff}
.cbf-pulse{width:12px;height:12px;border:3px solid var(--cbv-blue);border-radius:50%;animation:cbf-pulse 1.1s ease-in-out infinite}
.cbf-story-gate.is-ready .cbf-pulse{border-color:var(--cbv-green);background:var(--cbv-green);animation:none}
@keyframes cbf-pulse{50%{box-shadow:0 0 0 7px rgba(17,79,209,.12)}}

body[data-active-layout="c"]:not(.cbf-story-visible) main>.cbv-assurance-band,
body[data-active-layout="c"]:not(.cbf-story-visible) main>.cbv-section,
body[data-active-layout="c"]:not(.cbf-story-visible) main>.cbv-marquee,
body[data-active-layout="c"]:not(.cbf-story-visible) .cbv-footer{display:none}

.cbf-drawer-backdrop{position:fixed;z-index:10100;inset:0;background:rgba(3,7,13,.62);backdrop-filter:blur(3px)}
.cbf-order-drawer{position:fixed;z-index:10110;top:0;right:0;width:min(100%,480px);height:100dvh;overflow-y:auto;padding:24px 28px 40px;background:#fff;box-shadow:-24px 0 70px rgba(3,7,13,.3);transform:translateX(105%);transition:transform .3s var(--cbv-ease)}
.cbf-order-drawer[aria-hidden="false"]{transform:translateX(0)}
.cbf-drawer-close{width:44px;height:44px;display:grid;margin-left:auto;place-items:center;border:1px solid var(--cbv-line);border-radius:50%;background:#fff;color:var(--cbv-ink);cursor:pointer}
.cbf-drawer-product{display:grid;grid-template-columns:104px 1fr;gap:16px;align-items:center;margin:14px 0 24px;padding-bottom:22px;border-bottom:1px solid var(--cbv-line)}
.cbf-drawer-product img{width:104px;height:104px;object-fit:cover;border-radius:7px}
.cbf-drawer-product h2{margin:5px 0;font-size:1.8rem}
.cbf-drawer-product p{margin:0;color:var(--cbv-green);font-weight:900}
.cbf-drawer-form{grid-template-columns:1fr}
.cbf-quantity{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 8px;padding:0;border:0}
.cbf-quantity legend{grid-column:1/-1;margin-bottom:5px;font-size:.74rem;font-weight:900}
.cbf-quantity label{position:relative}
.cbf-quantity input{position:absolute;opacity:0;pointer-events:none}
.cbf-quantity span{min-height:44px;display:grid;place-items:center;border:1px solid #aebdd0;border-radius:5px;font-size:.72rem;font-weight:900;cursor:pointer}
.cbf-quantity input:checked+span{border-color:var(--cbv-blue);background:#eaf2ff;color:var(--cbv-blue)}

@media (max-width:860px){
  :root{--cbf-toolbar-height:56px}
  .cbf-toolbar{grid-template-columns:1fr;padding:6px 8px}
  .cbf-toolbar-copy,.cbf-toolbar>p{display:none}
  .cbf-layout-tabs{width:100%;height:44px}
  .cbf-layout-tabs button{min-width:0;padding:0 6px;font-size:.67rem}
  .cbf-layout-tabs button span{width:18px;height:18px;margin-right:2px}
  .cbv-header{top:var(--cbf-toolbar-height)}
  .cbf-story-gate>.cbv-shell{align-items:stretch;flex-direction:column;padding-block:8px}
  .cbf-story-actions{display:grid;grid-template-columns:1fr 1fr}
  .cbf-story-gate .cbv-button,.cbf-reset-timer{width:100%;padding-inline:10px}
}

@media (max-width:620px){
  .cbf-variant-direct,.cbf-variant-timed{margin-inline:-4px;padding:16px 14px}
  .cbf-order-form{grid-template-columns:1fr}
  .cbf-field-wide{grid-column:auto}
  .cbf-form-head b{font-size:1.2rem}
  .cbf-variant-panel>div{grid-template-columns:1fr}
  .cbf-variant-panel>div span{grid-column:auto}
  .cbf-variant-panel>div small{text-align:left}
  .cbf-variant-panel .cbv-button{width:100%}
  .cbf-order-drawer{top:auto;bottom:0;width:100%;height:min(92dvh,760px);padding:16px 18px 30px;border-radius:8px 8px 0 0;transform:translateY(105%)}
  .cbf-order-drawer[aria-hidden="false"]{transform:translateY(0)}
  .cbf-drawer-product{grid-template-columns:84px 1fr;margin-top:8px}
  .cbf-drawer-product img{width:84px;height:84px}
  .cbf-drawer-product h2{font-size:1.45rem}
}

@media (prefers-reduced-motion:reduce){
  .cbf-variant,.cbf-pulse{animation:none}
  .cbf-order-drawer{transition:none}
}
