/* Adapted from store.html .bk-* and desktop-store.css: Navalo direct drawer only. */
#nvsBasket { --hdr:#0a1428; --ink:#101828; --sub:#5d6b7e; --line:#e6e8ee; font-family:"DM Sans",system-ui,sans-serif; line-height:1.5; position: fixed; inset: 0; z-index: 320; visibility: hidden; }
#nvsBasket.open { visibility: visible; }
#nvsBasket .bk-scrim { position: absolute; inset: 0; background: rgba(10,20,40,.4); opacity: 0; transition: opacity .28s; }
#nvsBasket.open .bk-scrim { opacity: 1; }
#nvsBasket .bk-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 88%; max-width: 360px; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
#nvsBasket.open .bk-panel { transform: translateX(0); }
#nvsBasket .bk-hd { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .9rem; padding-top: calc(1rem + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
#nvsBasket .bk-hd b { font-size: 16px; font-weight: 800; }
#nvsBasket .bk-x { background: none; border: none; color: var(--sub); padding: .3rem; }
#nvsBasket .bk-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem; padding: 2rem; color: var(--sub); }
#nvsBasket .bk-empty svg { color: #c6cbd3; }
#nvsBasket .bk-empty b { font-size: 15px; color: var(--ink); margin-top: .4rem; }
#nvsBasket .bk-empty p { font-size: 12.5px; margin: 0; }
#nvsBasket .bk-empty-btn { margin-top: .8rem; background: var(--hdr); color: #fff; border: none; border-radius: 11px; padding: .8rem 1.4rem; font-family: inherit; font-size: 13.5px; font-weight: 700; }
#nvsBasket .bk-list { flex: 1; overflow-y: auto; padding: .6rem 1rem; }
#nvsBasket .bk-line { display: flex; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
#nvsBasket .bk-line-img { width: 64px; height: 74px; border-radius: 9px; overflow: hidden; background: #eef0f3; flex-shrink: 0; }
#nvsBasket .bk-line-img canvas, #nvsBasket .bk-line-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
#nvsBasket .bk-line-tx { flex: 1; min-width: 0; }
#nvsBasket .bk-line-brand { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); }
#nvsBasket .bk-line-nm { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.25; margin: .1rem 0; }
#nvsBasket .bk-line-var { font-size: 11.5px; color: var(--sub); }
#nvsBasket .bk-line-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
#nvsBasket .bk-qty { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 9px; padding: .15rem; }
#nvsBasket .bk-qty button { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--ink); }
#nvsBasket .bk-qty span { min-width: 18px; text-align: center; font-size: 13px; font-weight: 700; }
#nvsBasket .bk-line-pr { font-size: 13.5px; font-weight: 800; }
#nvsBasket .bk-line-x { background: none; border: none; color: #aeb6c2; padding: .2rem; align-self: flex-start; }
#nvsBasket .bk-foot { border-top: 1px solid var(--line); padding: 1rem 1rem calc(1rem + max(env(safe-area-inset-bottom), 8px)); }
#nvsBasket .bk-tot { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
#nvsBasket .bk-tot b { font-size: 18px; font-weight: 800; }
#nvsBasket .bk-tax { font-size: 11px; color: var(--sub); margin: .3rem 0 .8rem; }
#nvsBasket .bk-checkout { width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem; background: var(--hdr); color: #fff; border: none; border-radius: 13px; padding: 1rem; font-family: inherit; font-size: 15px; font-weight: 700; }
#nvsBasket .bk-panel { color: var(--ink); }
#nvsBasket .bk-list { min-height: 0; overscroll-behavior: contain; }
#nvsBasket ul { list-style: none; margin: 0; padding: 0; }
#nvsBasket [hidden] { display: none; }
#nvsBasket .bk-qty button { cursor: pointer; }
#nvsBasket .bk-x, #nvsBasket .bk-line-x { cursor: pointer; }
/* 44×44 tap target, matching store.html. The -2px margin keeps the 40px
   footprint this header was already laid out around, so nothing shifts. */
#nvsBasket .bk-x { min-width: 44px; min-height: 44px; margin: -2px -2px -2px 0; display: inline-flex; align-items: center; justify-content: center; }
#nvsBasket .nvs-address { grid-template-columns: 1fr; }
#nvsBasket label { display: grid; gap: 6px; font-size: 14px; }
#nvsBasket input { width: 100%; min-width: 0; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
#nvsBasket [role=status] { font-size: 13px; line-height: 1.5; }
#nvsBasket button:disabled { opacity: .5; cursor: not-allowed; }
#nvsBasket :focus-visible, .nvs-basket-toggle:focus-visible { outline: 3px solid #b48127; outline-offset: 3px; }
.nvs-basket-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; background: none; border: none; color: #fff; cursor: pointer; }
.nvs-basket-toggle svg { width: 24px; height: 24px; }
#nvsBasketCount { min-width: 19px; height: 19px; padding: 0 4px; border-radius: 50%; color: var(--hdr); background: #fff; font-size: 11px; font-weight: 700; line-height: 19px; }
#nvsBasketCount[hidden] { display: none; }
@media (min-width: 1024px) {
  #nvsBasket .bk-panel { width: 440px; max-width: 92vw; box-shadow: -20px 0 60px rgba(10,20,40,.2); }
  #nvsBasket .bk-hd { padding: 22px 24px; }
  #nvsBasket .bk-hd b { font-size: 17px; }
  #nvsBasket .bk-list { padding: 8px 24px; }
  #nvsBasket .bk-line-img { width: 74px; height: 74px; border-radius: 10px; }
  #nvsBasket .bk-foot { padding: 20px 24px 24px; }
  #nvsBasket .bk-tot b { font-size: 20px; }
}
@media (max-width: 900px) {
  .nvs-topnav:has(#nvsBasketToggle) { display: contents; }
  .nvs-topnav:has(#nvsBasketToggle) a { display: none; }
}
@media (max-width: 560px) { .nvs-top-in:has(#nvsBasketToggle) .nvs-topcta { display: none; } }
@media (prefers-reduced-motion: reduce) { #nvsBasket .bk-panel, #nvsBasket .bk-scrim { transition: none; } }

#nvsBasket *, #nvsBasket *::before, #nvsBasket *::after { box-sizing: border-box; }
#nvsBasket .nvs-address { display: grid; gap: 12px; margin-bottom: 12px; }
/* Buy now's delivery form checks (owner, 9 Oct 2026; js/navalo-direct.js
   coProblem): a message under each field as the store checkout has, Country
   fixed with a note, and the pay button greyed until every field is right */
#nvsBasket .nvs-field { display: grid; gap: 6px; min-width: 0; }
#nvsBasket .nvs-err, #nvsBasket .nvs-note { margin: 0; font-size: 12.5px; line-height: 1.4; }
#nvsBasket .nvs-err { font-weight: 600; color: #7f1d1d; }
#nvsBasket .nvs-note { color: var(--sub); }
#nvsBasket input[aria-invalid="true"] { border-color: #7f1d1d; }
#nvsBasket input[readonly] { background: #f4f4ef; color: var(--ink); cursor: default; }
#nvsBasket .bk-checkout[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* A NAME ON THE GARMENT (owner, 20 Oct 2026; js/navalo-direct.js nameHTML):
   "Add a name" under size and quantity, its field when ticked, and the line
   price under it; a basket line's name. */
.nvs-buy-controls .nvs-name { margin: 0 0 14px; }
.nvs-buy-controls .nvs-name-on { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.nvs-buy-controls .nvs-name-on input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: #0a1428; }
.nvs-buy-controls .nvs-name-note { margin: 4px 0 0 28px; font-size: 12.5px; line-height: 1.4; color: #5d6b7e; }
.nvs-buy-controls .nvs-name-field { display: flex; align-items: flex-end; gap: 10px; margin: 10px 0 0 28px; }
.nvs-buy-controls .nvs-name-field[hidden] { display: none; }
.nvs-buy-controls .nvs-name-field label { flex: 1; min-width: 0; }
.nvs-buy-controls .nvs-name-field input { font: inherit; padding: 10px; border: 1px solid #909793; border-radius: 4px; background: #fff; color: #162e28; min-width: 0; width: 100%; box-sizing: border-box; }
.nvs-buy-controls .nvs-name-count { font-size: 12px; color: #5d6b7e; padding-bottom: 12px; font-variant-numeric: tabular-nums; }
.nvs-buy-controls .nvs-line-price { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
#nvsBasket .bk-line-name { display: block; font-size: 11.5px; color: var(--sub); margin-top: 2px; overflow-wrap: anywhere; }
#nvsBasket .bk-line-name b { color: var(--ink); }
/* the octopus and the name on the main picture (js/navalo-direct.js
   paintPreview): placed in the drawn zones, never catching a tap */
.nvs-deco { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.nvs-deco-z { position: absolute; display: block; transform-origin: 50% 50%; }
.nvs-deco-z img { position: absolute; object-fit: contain; display: block; }
.nvs-deco-z svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.nvs-deco-name text { font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; }

/* ONE BAG (owner, 23 Oct 2026; js/navalo-direct.js): the drawer's two parts,
   Your basket and Your collection, each with its heading when both are
   there; the collection's way back into the builder; the lines while the
   catalogue is on its way; and a bag's number hidden at nought */
#nvsBasket .bk-sec + .bk-sec { margin-top: 1.1rem; }
#nvsBasket .bk-sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin: .5rem 0 .1rem; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
#nvsBasket .bk-sec-n { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--sub); }
#nvsBasket .bk-sec-hd[hidden], #nvsBasket .bk-sec[hidden], #nvsBasket .bk-foot[hidden] { display: none; }
#nvsBasket .bk-coll-line { padding: .6rem 0; }
#nvsBasket .bk-coll-line .bk-line-img { width: 52px; height: 60px; }
#nvsBasket .bk-coll-more, #nvsBasket .bk-wait { padding: .8rem 0; font-size: 12.5px; color: var(--sub); }
#nvsBasket .bk-coll-go { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .9rem 0 .4rem; padding: .8rem 1rem; border: 1px solid var(--hdr); border-radius: 11px; color: var(--hdr); font-size: 13.5px; font-weight: 700; text-decoration: none; }
#nvsBasket .bk-coll-go:hover { background: #f4f5f7; }
[data-bag-n][hidden] { display: none !important; }
