.nav-checkout{position:relative;color:#b2bdca;font-size:14px}
.nav-checkout:hover,.nav-checkout[aria-current]{color:#fff}
.nav-cart-count{display:none;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:9px;background:#42aeff;color:#041018;font-size:11px;font-weight:700;line-height:18px;text-align:center;vertical-align:middle}
.nav-cart-count.is-on{display:inline-block}
.compound-order-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 4px}
.compound-order-actions .button{min-height:44px;padding:10px 16px;font-size:13px}
.compound-order-actions .secondary{background:transparent;border:1px solid #8ea7bc55;color:#e8eef4}
.compound-order-actions .secondary:hover{border-color:#42aeff;color:#fff;transform:translateY(-1px)}
@media(max-width:760px){
  .site-header nav{gap:14px}
  .nav-checkout{font-size:13px}
  .compound-order-actions{margin-top:14px}
}

.site-header nav .nav-checkout{appearance:none;background:transparent;border:0;padding:0;color:#b2bdca;font:inherit;font-size:14px;cursor:pointer}
.site-header nav .nav-checkout:hover{color:#fff}
.cart-card-wrap{display:flex;flex-direction:column;align-items:center;min-width:0}
.cart-card-wrap .compound-card{width:100%}
.cart-add-btn{margin-top:10px;min-height:40px;padding:8px 14px;font-size:13px;width:100%;max-width:180px;background:transparent;border:1px solid #8ea7bc55;color:#e8eef4}
.cart-add-btn:hover{border-color:#42aeff;color:#fff}
#onyx-cart-drawer:modal{
  width:min(420px, calc(100% - 32px));
  margin:auto;
  padding:20px 18px 18px;
  border:1px solid #8ea7bc55;
  border-radius:20px;
  background:linear-gradient(145deg,#17202b,#0b1118);
  color:#edf2f7;
  box-shadow:0 20px 60px #000b;
  overscroll-behavior:contain;
}
#onyx-cart-drawer::backdrop{background:rgba(3,6,11,.92)}
.onyx-cart-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 14px}
.onyx-cart-bar h2{margin:0;font-size:20px;color:#fff}
.onyx-cart-close{width:36px;height:36px;border:1px solid #ffffff2b;border-radius:50%;background:#151d26;color:#fff;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;padding:0;flex-shrink:0}
.onyx-cart-lines{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:10px}
.onyx-cart-line{display:grid;grid-template-columns:1fr 72px auto;gap:8px;align-items:center}
.onyx-cart-line-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.onyx-cart-line-info strong{font-size:14px;color:#fff}
.onyx-cart-line-info span{font-size:12px;color:#9daab9}
.onyx-cart-qty{width:72px;min-height:40px;background:#070c12;border:1px solid #8ea7bc44;border-radius:8px;color:#f1f4f7;padding:6px 8px;font:inherit}
.onyx-cart-remove{border:0;background:transparent;color:#9daab9;font-size:13px;text-decoration:underline;min-height:40px;padding:0 6px}
.onyx-cart-remove:hover{color:#fff}
.onyx-cart-empty{margin:0 0 12px;color:#9daab9;font-size:14px}
.onyx-cart-empty[hidden],.onyx-cart-test[hidden]{display:none!important}
.onyx-cart-test{margin:0 0 12px}
.onyx-cart-footer{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.onyx-cart-subtotal{margin:0;font-size:15px;color:#d5dee8}
.onyx-cart-subtotal strong{color:#fff}
.onyx-cart-note{margin:0;font-size:12px;color:#9daab9;line-height:1.45}
#onyx-cart-checkout{min-height:48px;width:100%}
#onyx-cart-checkout.is-disabled{pointer-events:none;opacity:.45}
.onyx-cart-line.is-test strong{color:#fde68a}
@media(max-width:760px){
  .site-header nav .nav-checkout{font-size:13px}
  .cart-add-btn{max-width:none}
}

.onyx-cart-totals{display:flex;flex-direction:column;gap:4px;margin:0}
.onyx-cart-totals p{margin:0;font-size:14px;color:#d5dee8}
.onyx-cart-totals strong{color:#fff}
.onyx-cart-ship-note{font-size:13px;color:#fde68a!important;line-height:1.45}
.onyx-cart-ship-note.is-free{color:#8be0b0!important}
.onyx-cart-ship-note[hidden]{display:none!important}
.onyx-ship-banner{background:#0c1a28;border-bottom:1px solid #42aeff55;padding:8px 16px;text-align:center}
.onyx-ship-banner p{margin:0;font-size:13px;font-weight:700;letter-spacing:.02em;color:#e8eef4}
@media(max-width:760px){.onyx-ship-banner p{font-size:12px}}

/* Match the catalogue's graphite surfaces and quiet icy-blue edge. */
.nav-checkout{color:#c5d3df}
.nav-checkout:is(:hover,[aria-current="page"]){color:#ecf7ff}
.nav-cart-count{
  min-width:19px;height:19px;line-height:17px;background:#142634;color:#d5eeff;
  border:1px solid #81bedf;border-radius:5px;box-shadow:inset 0 1px #c7ebff24;
}
.compound-order-actions .button{
  min-height:46px;border-radius:8px;white-space:normal;line-height:1.25;text-align:center;
}
.compound-order-actions .button.primary{
  border:1px solid #c0e9ff;background:linear-gradient(165deg,#e6f5ff,#9dd2f2);color:#05101a;
}
.compound-order-actions .button.secondary{
  border:1px solid #6b9ab7;background:linear-gradient(160deg,#152637,#0c1723);color:#e1eff9;
}
.compound-order-actions .button:is(:hover,:focus-visible){border-color:#b9e5ff;transform:none}
.compound-order-actions .button:focus-visible,.nav-checkout:focus-visible{outline:2px solid #9bdcff;outline-offset:3px}

/* Match the marble catalogue chrome; leave hooks, visibility classes and order logic alone. */
.site-header nav .nav-checkout{color:#c5d3df}
.site-header nav .nav-checkout:is(:hover,[aria-current="page"]){color:#edf8ff}
#onyx-cart-drawer:modal{
  width:min(462px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;
  box-sizing:border-box;padding:clamp(16px,4vw,24px);border:1px solid #81b3d2;border-radius:14px;
  background:linear-gradient(150deg,#111e2bbd,#09121af7 78%),url("./onyx-checkout-marble.webp") center top/cover;
  color:#ecf3f9;box-shadow:0 24px 70px #000b,inset 0 1px #d4f0ff38;color-scheme:dark;
}
#onyx-cart-drawer::backdrop{background:#030710d9}
.onyx-cart-bar{align-items:center;border-bottom:1px solid #91b8d13d;padding:0 0 12px}
.onyx-cart-bar h2{color:#eef6fc;font-size:clamp(1.3rem,5vw,1.65rem);line-height:1.2}
.onyx-cart-close{width:44px;height:44px;border:1px solid #68849c;border-radius:8px;background:#0e1b28}
.onyx-cart-line{
  grid-template-columns:minmax(0,1fr) 68px auto;padding:8px 0;border-bottom:1px solid #91b8d128;
}
.onyx-cart-line-info strong{overflow-wrap:anywhere}
.onyx-cart-line-info span,.onyx-cart-note,.onyx-cart-empty{color:#b9cbd9}
.onyx-cart-qty{width:100%;min-width:0;box-sizing:border-box;min-height:44px;font-size:16px;border-color:#536d83}
.onyx-cart-remove{min-height:44px;color:#c7d8e6;text-underline-offset:3px}
.onyx-cart-footer{border-top:1px solid #91b8d13d;padding-top:12px}
.onyx-cart-totals p{color:#c8d7e3}
#onyx-cart-checkout{border:1px solid #bcdef2;border-radius:8px;background:linear-gradient(165deg,#e6f5ff,#a2cce5);color:#07121d}
#onyx-cart-drawer :is(button,a,input):focus-visible,.compound-page .cart-add-btn:focus-visible{outline:2px solid #a2deff;outline-offset:3px}
.onyx-ship-banner{background:linear-gradient(180deg,#111e2c,#0c1722);border-color:#66849a62}
.onyx-ship-banner p{color:#d3e3ef}
.compound-page{
  background-color:#081019;
  background-image:linear-gradient(180deg,#07101a16,#07101ab0 56rem,#07101a),url("./onyx-checkout-marble.webp");
  background-size:cover,auto max(1200px,100vh);background-repeat:no-repeat;background-position:center top;
}
.compound-page .site-header{background:linear-gradient(180deg,#090f18fa,#080e17e8);border-bottom:1px solid #8db8d237}
.compound-page .detail-intro h1{color:#edf3f9;text-shadow:0 3px 24px #02060f}
.compound-page .detail-intro .eyebrow,.compound-page .back-link{color:#afdaef}
.compound-page :is(.compound-overview,.compound-panel,.detail-contact,.vial-card,.compound-poster){
  border-color:#6c95b16b;box-shadow:inset 0 1px #c3eaff1e,0 10px 24px #0003;
}
.compound-page :is(.compound-overview,.detail-contact,.vial-card){
  background:linear-gradient(148deg,#152638d9,#0a1520f0);
}
.compound-page .compound-poster{border:1px solid #799db87d;border-radius:10px;overflow:hidden}
.compound-page .detail-badges > span{border-color:#6b91a9;background:#0d1c29;color:#deebf6}
.compound-page .compound-panel-copy{overflow-wrap:anywhere}
.compound-page .compound-order-actions .button,.compound-page .cart-add-btn{border-radius:8px;min-height:46px}
.compound-page .cart-add-btn{border-color:#7498b1;background:linear-gradient(155deg,#172839,#0b1723);color:#e8f1f7}
@media(max-width:600px){
  .compound-page{background-size:cover,auto 960px}
}
@media(max-width:370px){
  .onyx-cart-line{grid-template-columns:minmax(0,1fr) 58px auto;gap:5px}
}

/* Carved catalogue surfaces and a sculptural cart crown. */
@font-face{font-family:OnyxCinzel;src:url("./cinzel-latin.ttf") format("truetype");font-display:swap}
#onyx-cart-drawer:modal{border-radius:4px 20px 4px 4px}
.onyx-cart-bar{
  position:relative;isolation:isolate;margin:-4px -2px 13px;min-height:66px;
  background:linear-gradient(90deg,#0d1a26 26%,#0d1a2688 71%,#0d1a2677),url("./onyx-catalogue-athena-hd.webp") center 28%/cover;
  padding:10px 8px 10px 13px;border-bottom-color:#b0d5ee7a;
}
.onyx-cart-bar h2{font-family:OnyxCinzel,Georgia,serif;font-weight:600;text-shadow:0 2px 12px #000}
#onyx-cart-checkout{border-radius:3px 12px 3px 3px;background:linear-gradient(158deg,#fbfcfc,#b9d0e0 52%,#85a5bc)}
.compound-page .detail-intro{
  position:relative;isolation:isolate;margin-block:clamp(14px,2.5vw,32px);padding:clamp(20px,5vw,52px);
  border:1px solid #7294ac80;overflow:hidden;
  clip-path:polygon(0 0,calc(100% - 20px) 0,100% 20px,100% 100%,20px 100%,0 calc(100% - 20px));
  background:linear-gradient(92deg,#061019 15%,#0a1420ed 44%,#111e2a20),url("./onyx-catalogue-athena-hd.webp") right center/auto 115% no-repeat,#0a1420;
}
.compound-page .detail-intro h1{
  font-family:OnyxCinzel,Georgia,serif;font-weight:600;overflow-wrap:anywhere;font-size:clamp(2.15rem,7vw,4.75rem)
}
.compound-page :is(.overview-title,.detail-contact h2,.detail-related h2){font-family:OnyxCinzel,Georgia,serif;letter-spacing:0}
.compound-page :is(.compound-overview,.detail-contact,.vial-card,.compound-poster){
  border-radius:3px 16px 3px 3px;
}
@media(max-width:600px){
  .compound-page .detail-intro{
    background-image:linear-gradient(90deg,#061019dc 22%,#0a1420df 52%,#111e2a8c),url("./onyx-catalogue-athena-hd.webp");
  }
}

/* v42 hooks: cart link, add-to-cart, price, drawer isolation */
[data-cart-count]{display:inline-grid;place-items:center;min-width:1.38em;min-height:1.38em;padding:0 .2em;box-sizing:border-box;border:1px solid #6886a0;border-radius:999px;color:#ecf5ff;background:#18293a;font-size:.84em;vertical-align:middle}
[data-cart-count][hidden]{display:none!important}
.onyx-cart-link{white-space:nowrap;color:#c5d3df}
.onyx-cart-link:is(:hover,[aria-current]){color:#ecf7ff}
.onyx-cart-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin-block:1rem .3rem}
.onyx-cart-detail-actions button,.onyx-cart-detail-actions a{min-height:44px;padding:.75em 1em;display:inline-flex;align-items:center;gap:.4em;border-radius:.4rem;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;text-decoration:none}
.onyx-cart-detail-actions button{background:linear-gradient(135deg,#dfeaf4,#9eb9d0);color:#0b131d;border:1px solid #c9daea}
.onyx-cart-detail-actions a{border:1px solid #637c92;color:#eef4fa}
.onyx-cart-add-status{margin:.3rem 0;color:#d1e5f6;font-size:.85rem}
.onyx-cart-add-status:empty{display:none}
.onyx-detail-price{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:.6em;row-gap:.15em;color:#eef6ff;margin:.3rem 0 .65rem;line-height:1.25}
.onyx-detail-price strong{color:#f4f9ff;font:700 clamp(1.35rem,2.35vw,2rem)/1.15 system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.onyx-detail-price small{color:#bcd0e3;font:500 .82rem/1.25 system-ui,sans-serif}

/* Keep the shipping banner in flow under tight v42 headers; never cover the hero */
#onyx-ship-banner{position:relative;z-index:4}
body.home-page #onyx-ship-banner,
body.catalog-page #onyx-ship-banner,
body.compound-page #onyx-ship-banner{flex:none}

/* Drawer must sit above v42 chrome and ignore global svg/img resets */
#onyx-cart-drawer{z-index:10000}
#onyx-cart-drawer::backdrop{z-index:9999;background:#030710d9}
#onyx-cart-drawer svg{width:auto;height:auto;max-width:none}
#onyx-cart-drawer img{max-width:100%;height:auto}
#toast{z-index:10001}

.onyx-catalog-cart-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin:0 0 1rem;color:#cbd5e0;font-size:.9rem}
.onyx-catalog-cart-row .onyx-cart-link{display:inline-flex;align-items:center;gap:.5em;min-height:44px;padding:0 .9em;border:1px solid #60768a;border-radius:.4rem;text-decoration:none;color:#eef4fa;background:#0f1821}
