/* Buying from inside a blog post (includes/quick-buy.php, assets/quick-buy.js). Colours and font from the theme's
   :root (--teal-deep 5.7:1 on white, on --teal-soft 5.0:1). Option borders #7b8a93 are 3.6:1 on white (non-text). */

/* The card button, under the price; cards in a row keep their buttons on one line. "Choose size & add to cart" is
   169px wide in Assistant 600 16px (measured 22.11.2026) + 32px padding: narrower cards say "Add to cart". */
.woocommerce ul.products li.product:has(.dive-qb-wrap){display:flex;flex-direction:column}
.dive-qb-wrap{container-type:inline-size;margin-top:auto;padding-top:12px}
.dive-qb-open{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:12px 16px;border:0;border-radius:999px;
  background:var(--teal-soft);color:var(--teal-deep);font:600 16px/1.25 var(--sans);cursor:pointer;text-align:center;transition:background .2s}
.dive-qb-open:hover{background:#cdebed}
.dive-qb-short{display:none}
@container (max-width:213px){.dive-qb-long{display:none}.dive-qb-short{display:inline}}

/* The window */
html.dive-qb-lock{overflow:hidden}
.dive-qb{border:0;padding:0;margin:auto;width:min(880px,calc(100% - 32px));max-height:calc(100dvh - 32px);border-radius:18px;
  background:#fff;color:var(--ink);box-shadow:0 24px 60px rgba(11,42,60,.28);overflow:auto;overscroll-behavior:contain}
.dive-qb::backdrop{background:rgba(6,30,38,.55)}
.dive-qb-in{position:relative;display:grid;grid-template-columns:minmax(0,44%) minmax(0,1fr);gap:32px;padding:32px}
.dive-qb-x{position:absolute;top:12px;right:12px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;
  background:transparent;color:var(--ink);cursor:pointer}
.dive-qb-x:hover{background:var(--teal-soft)}
.dive-qb-ph img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:12px;background:var(--sand)}
.dive-qb-main{padding-right:28px;min-width:0}
.dive-qb h2{font:700 26px/1.25 var(--sans);margin:4px 0 10px;color:var(--ink)}
.dive-qb-price{font:700 24px/1.2 var(--sans);color:var(--teal-deep);margin:0 0 22px;min-height:29px}
.dive-qb-price .from{font-size:.7em;font-weight:600;color:var(--muted)}
.dive-qb-opt{border:0;padding:0;margin:0 0 20px;min-width:0}
.dive-qb-opt legend{font:600 18px/1.2 var(--sans);padding:0;margin:0 0 12px}
.dive-qb-pills{display:flex;flex-wrap:wrap;gap:10px}
.dive-qb-pill{position:relative;display:inline-flex;cursor:pointer}
.dive-qb-pill input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.dive-qb-pill span{display:inline-flex;align-items:center;min-height:48px;padding:10px 20px;border:1.5px solid #7b8a93;border-radius:999px;
  font:500 16px/1.2 var(--sans);background:#fff;transition:background .15s,border-color .15s}
.dive-qb-pill:hover span{border-color:var(--teal-deep)}
.dive-qb-pill input:checked + span{border:2.5px solid var(--teal-deep);padding:9px 19px;background:var(--teal-soft);color:var(--teal-deep);font-weight:700}
.dive-qb-pill input:focus-visible + span{outline:3px solid #f2b64a;outline-offset:3px}
.dive-qb-pill input:disabled + span{opacity:.45;text-decoration:line-through;cursor:not-allowed}
.dive-qb-msg{margin:0 0 12px;color:#b3261e;font-weight:600}
.dive-qb-msg:empty{display:none}
.dive-qb-msg a{color:var(--teal-deep)}
.dive-qb-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:8px}
.dive-qb-add,.dive-qb-cart{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:16px 40px;border:0;border-radius:999px;
  background:var(--teal-deep);color:#fff;font:700 18px/1 var(--sans);cursor:pointer;text-decoration:none;transition:background .2s}
.dive-qb-add:hover,.dive-qb-cart:hover{background:#015a63;color:#fff}
.dive-qb-add:disabled{opacity:.7;cursor:progress}
.dive-qb-more{font:600 17px/1.3 var(--sans);color:var(--teal-deep);text-decoration:underline;text-underline-offset:3px}
.dive-qb-back{min-height:48px;padding:12px 24px;border:1.5px solid var(--teal-deep);border-radius:999px;background:#fff;color:var(--teal-deep);
  font:600 17px/1 var(--sans);cursor:pointer}
.dive-qb-ok{font:600 18px/1.45 var(--sans);margin:0 0 14px;padding:14px 16px;border-radius:12px;background:var(--teal-soft);color:var(--ink)}
.dive-qb.is-loading .dive-qb-ph img{visibility:hidden}
.dive-qb.is-loading .dive-qb-form{display:none}

@media (max-width:700px){
  .dive-qb{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
  .dive-qb-in{grid-template-columns:1fr;gap:16px;padding:20px 18px 22px}
  .dive-qb-ph{padding-right:44px}
  .dive-qb-ph img{width:auto;max-width:100%;max-height:min(34vh,240px);margin:0 auto}
  .dive-qb-main{padding-right:0}
  .dive-qb h2{font-size:21px}
  .dive-qb-price{font-size:21px;margin-bottom:16px}
  .dive-qb-pill span{padding:10px 16px}
  .dive-qb-pill input:checked + span{padding:9px 15px}
  .dive-qb-add,.dive-qb-cart{flex:1 1 100%;padding:16px 24px}
}
