.basket-button{display:inline-flex;align-items:center;gap:6px;margin:0;white-space:nowrap}
.basket-count{font-size:.9rem;font-weight:700}
.basket-dialog{width:min(560px,calc(100vw - 28px));max-height:85dvh;overflow:auto;border:1px solid #d9dce1;border-radius:18px;padding:22px;background:#fff;color:#17243a;box-shadow:0 24px 70px #0005}
.basket-dialog::backdrop{background:#08111dbb}
.basket-head,.basket-row,.basket-controls{display:flex;align-items:center;gap:12px}
.basket-head{justify-content:space-between}
.basket-head h2{margin:0}
.basket-head button,.basket-controls button{border:1px solid #9da8b5;border-radius:9px;background:transparent;color:inherit;min-width:44px;min-height:44px}
.basket-row{padding:15px 0;border-bottom:1px solid #8885;justify-content:space-between;flex-wrap:wrap}
.basket-controls{gap:8px;flex-wrap:wrap}
.basket-controls .basket-remove{padding:5px 10px}
.basket-item-details{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.basket-item-price,.basket-price-note{font-size:.95rem;color:#536173}
.basket-summary{display:flex;justify-content:space-between;gap:12px;padding-top:18px;font-size:1.1rem}
.basket-price-note{margin:8px 0}
.basket-note{font-size:.95rem;line-height:1.5}
.basket-actions{display:flex;flex-wrap:wrap;gap:10px}
.basket-actions .basket-checkout,.basket-done{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:10px 16px;min-height:44px;font-weight:700;text-align:center;text-decoration:none}
.basket-actions .basket-checkout{background:#a84017;color:#fff}
.basket-done{border:1px solid #9da8b5;background:transparent;color:inherit}
html[data-theme=dark] .basket-dialog{background:#111b29;color:#f4f4f4;border-color:#39495d}
html[data-theme=dark] .basket-controls button,html[data-theme=dark] .basket-head button{border-color:#68778a}
html[data-theme=dark] .basket-item-price,html[data-theme=dark] .basket-price-note{color:#b7c4d4}
html[data-theme=dark] .basket-actions .basket-checkout{background:#f48d54;color:#201208}
@media(max-width:480px){
  .basket-button{padding:8px}
  .basket-label{display:none}
  .basket-count{font-size:.85rem}
  .basket-row{align-items:flex-start;flex-direction:column}
  .basket-actions{flex-direction:column}
  .basket-actions > *{width:100%}
}

.basket-methods{display:grid;gap:4px;margin:16px 0 0;padding:8px 12px;border:1px solid #8886;border-radius:10px}.basket-methods label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}.basket-methods input{accent-color:#b44c20}.basket-actions{margin-top:14px}

.basket-actions .basket-checkout[hidden]{display:none}
