/* ==========================================================================
   basket.css — the header basket and its panel, in the catalogue's language:
   a navy chip in the header, a cream slip for the saved plans.
   ========================================================================== */
.basket-trigger{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;padding:0;border:1px solid #1e3048;border-radius:3px;
  background:transparent;color:#cfdaeb;cursor:pointer;font:inherit;
}
.basket-trigger:hover{border-color:#3d5372;color:#fff}
.basket-trigger svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.basket-trigger:focus-visible{outline:2px solid #8fb0ff;outline-offset:3px}
.basket-badge{
  position:absolute;top:-6px;inset-inline-end:-6px;min-width:19px;height:19px;padding:0 5px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#2158d6;color:#fff;border-radius:9px;
  font-size:.75rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;
}

body.basket-layer-open{overflow:hidden}
.basket-layer{position:fixed;inset:0;z-index:80;display:flex;justify-content:flex-end}
.basket-layer[hidden]{display:none!important}
.basket-backdrop{position:absolute;inset:0;background:#02060dcc}
.basket-panel{
  position:relative;width:min(420px,100%);height:100%;overflow:auto;
  background:#f4f0e6;color:#0b1524;
  border-inline-start:2px solid #0b1524;
  display:flex;flex-direction:column;
  box-shadow:-24px 0 60px #00000066;
  padding:18px 18px 22px;
}
.basket-panel:focus-visible{outline:none}
.basket-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-bottom:2px solid #0b1524;padding-bottom:12px}
.basket-head h2{margin:0;font-size:.8125rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.basket-close{
  width:32px;height:32px;border:1px solid #b9b1a0;border-radius:3px;background:transparent;
  color:#0b1524;font-size:1.1rem;line-height:1;cursor:pointer;
}
.basket-close:hover{background:#0b1524;color:#f4f0e6}

.basket-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.basket-item{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:4px 10px;align-items:center;
  padding:12px 0;border-bottom:1px solid #cfc7b6}
.basket-mark{display:grid;place-items:center;width:26px;height:26px;border-radius:4px;background:#0b1524;color:#f4f0e6;font-size:.75rem;font-weight:800;overflow:hidden}
.basket-mark img{width:16px;height:16px;object-fit:contain}
.basket-copy{display:flex;flex-direction:column;min-width:0}
.basket-copy strong{font-size:.9375rem;font-weight:800;letter-spacing:-.01em;overflow-wrap:anywhere}
.basket-copy small{font-size:.75rem;color:#4c5566}
.basket-price{font-size:.9375rem;font-weight:800;font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap}
.basket-actions{grid-column:2/-1;display:flex;gap:8px;justify-content:flex-end;margin-top:4px}
.basket-go,.basket-remove{
  min-height:28px;padding:0 10px;border:1.5px solid #0b1524;border-radius:2px;background:transparent;
  color:#0b1524;font:inherit;font-size:.75rem;font-weight:800;cursor:pointer;text-decoration:none;
  display:inline-flex;align-items:center;
}
.basket-go:hover{background:#0b1524;color:#f4f0e6}
.basket-remove{border-color:#b9b1a0;color:#6d7482}
.basket-remove:hover{background:#b23a2a;border-color:#b23a2a;color:#fff}

.basket-empty{margin:18px 0 0;font-size:.8125rem;line-height:1.5;color:#6d7482;
  border-top:1px dashed #cfc7b6;padding-top:14px}
.basket-empty[hidden]{display:none}

.basket-foot{margin-top:auto;padding-top:16px;border-top:1px solid #cfc7b6;display:block}
.basket-total{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.basket-total span{font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#4c5566}
.basket-total strong{font-size:1.375rem;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;direction:ltr}
.basket-note{margin:8px 0 12px;font-size:.75rem;line-height:1.5;color:#4c5566;max-width:34ch}
.basket-clear{
  width:100%;min-height:38px;border:1.5px solid #0b1524;border-radius:3px;background:transparent;
  color:#0b1524;font:inherit;font-size:.8125rem;font-weight:800;cursor:pointer;
}
.basket-clear:hover{background:#0b1524;color:#f4f0e6}

/* the product page's add-to-basket control sits under the checkout stamp */
.basket-add{
  display:block;width:calc(100% - 28px);margin:8px 14px 0;min-height:36px;
  border:1.5px solid #0b1524;border-radius:3px;background:transparent;color:#0b1524;
  font:inherit;font-size:.8125rem;font-weight:800;cursor:pointer;
}
.basket-add:hover:not(:disabled){background:#0b1524;color:#f4f0e6}
.basket-add:disabled{opacity:.55;cursor:not-allowed;border-color:#b9b1a0;color:#6d7482}

@media (max-width:600px){
  .basket-layer{align-items:flex-end}
  .basket-panel{width:100%;height:auto;max-height:88dvh;border-inline-start:0;border-top:2px solid #0b1524;
    border-radius:6px 6px 0 0;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  .basket-trigger{width:36px;height:36px}
}
