/* SB-SIDECART — šoninio krepšelio stiliai (2026-12). Veikia kai <body class="sb-sidecart">. */
body.sb-sidecart #cart .dropdown-menu { display: none !important; }   /* senas iššokantis langas paslėptas */
html.sbd-lock { overflow: hidden; }
body.sbd-lock { padding-right: var(--sbd-sbw, 0px); }

.sbd-scrim { position: fixed; inset: 0; background: rgba(20, 22, 16, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; z-index: 10040; }
.sbd-scrim.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.sbd {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 10050;
  display: flex; flex-direction: column; background: #f0f0ea; color: #20221b;
  transform: translateX(100%); visibility: hidden; transition: transform .38s cubic-bezier(.16, 1, .3, 1), visibility 0s .38s;
  box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .6); font-family: Poppins, system-ui, sans-serif; font-size: 14px; line-height: 1.45;
  -webkit-user-select: none; user-select: none; overscroll-behavior: contain;
}
.sbd.on { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.16, 1, .3, 1); }
.sbd a { text-decoration: none; color: inherit; }
.sbd-head { position: relative; min-height: 76px; display: flex; align-items: center; padding: 16px 16px 14px 24px; background: #1e231a; color: #fff; }
.sbd .sbd-head h2 { color: #fff; margin: 0; font: 600 24px Oswald, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.sbd .sbd-head h2 span { color: #b9b8ad; font-weight: 500; }
.sbd-close {
  position: absolute; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: none; border: 0; padding: 0; color: #b9b8ad; font: 500 11px Oswald, sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: color .2s;
}
.sbd-close .sbd-x { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .34); transition: background .25s, border-color .25s, transform .25s; }
.sbd-close svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.sbd .sbd-close, .sbd .sbd-close:hover, .sbd .sbd-close:focus { background: none; box-shadow: none; outline: none; }
.sbd-close:focus-visible .sbd-x { outline: 2px solid #fff; outline-offset: 3px; }
.sbd-close:hover, .sbd-close:focus-visible { color: #fff; }
.sbd-close:hover .sbd-x, .sbd-close:focus-visible .sbd-x { background: #74825c; border-color: #74825c; transform: rotate(90deg); }
.sbd-close.compact { flex-direction: row; gap: 10px; }
.sbd-close.compact .sbd-x { width: 38px; height: 38px; }
.sbd-ship { padding: 16px 24px; background: #e6e7df; }
.sbd-bar { height: 6px; border-radius: 3px; background: #cfd0c6; margin-top: 10px; overflow: hidden; }
.sbd-bar i { display: block; height: 100%; background: #74825c; border-radius: 3px; transform-origin: 0 50%; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.sbd-items { flex: 1; overflow-y: auto; padding: 4px 24px; }
.sbd-empty { text-align: center; padding: 48px 0; color: #6b6c62; }
.sbd-empty a { display: inline-block; margin-top: 12px; font: 500 15px Oswald, sans-serif; letter-spacing: .06em; text-decoration: underline !important; color: #20221b; }
.sbd-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid #dcdcd4; }
.sbd-item:last-child { border-bottom: 0; }
.sbd-th { display: grid; place-items: center; width: 76px; height: 76px; background: #fff; border-radius: 10px; overflow: hidden; }
.sbd-th img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sbd-nm { font: 600 17px/1.25 Oswald, sans-serif; display: block; }
.sbd-nm:hover { text-decoration: underline !important; }
.sbd-code, .sbd-opt { font-size: 12px; color: #6b6c62; margin-top: 3px; }
.sbd-code b { font-weight: 600; color: #20221b; }
.sbd-slow { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #fdf3e6; border: 1px solid #f2d3a8; color: #8f5a12; font: 600 11px Oswald, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.sbd-slow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sbd-qty { display: inline-flex; align-items: center; margin-top: 10px; background: #fff; border-radius: 999px; padding: 2px; }
.sbd-qty button { width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; font-size: 18px; cursor: pointer; color: #20221b; }
.sbd-qty button:hover { background: #ecece6; }
.sbd-qty output { min-width: 26px; text-align: center; font-weight: 600; }
.sbd-rt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sbd-rt b { font: 600 20px Oswald, sans-serif; white-space: nowrap; }
.sbd-rt b.sbd-new { color: #b8362a; }
.sbd-rt s { color: #8a8b80; font-size: 13px; white-space: nowrap; }
.sbd-off { background: #b8362a; color: #fff; border-radius: 999px; padding: 1px 8px; font: 600 11px Oswald, sans-serif; letter-spacing: .04em; }
.sbd-rm { margin-top: auto; padding: 6px 0 0; border: 0; background: none; font-size: 13px; color: #6b6c62; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sbd-rm:hover { color: #20221b; }
.sbd-foot { padding: 18px 24px 0; background: #fff; }
.sbd-cta { padding: 0 24px; background: #fff; }
.sbd-after { padding: 0 24px 22px; background: #fff; }
.sbd-after:empty { padding-bottom: 22px; }
.sbd-pay-sum { display: none; }
.sbd-row { display: flex; justify-content: space-between; padding: 3px 0; color: #6b6c62; }
.sbd-row.sbd-total { color: #20221b; font: 600 22px Oswald, sans-serif; margin: 10px 0 14px; }
.sbd-pay { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; background: #74825c; color: #fff !important; font: 500 18px Oswald, sans-serif; letter-spacing: .06em; transition: background .2s; }
.sbd-pay:hover { background: #5e6a4a; }
.sbd-view { display: block; text-align: center; margin-top: 12px; text-decoration: underline !important; text-underline-offset: 2px; }
.sbd-guest { text-align: center; font-size: 13px; line-height: 1.6; color: #6b6c62; margin: 12px 0 0; }
.sbd-guest a { font-weight: 600; color: #20221b; text-decoration: underline !important; }
@media (prefers-reduced-motion: reduce) { .sbd, .sbd-scrim, .sbd-bar i { transition: none !important; } }

/* nuolaidos kodas stalčiuje (2026-12) */
.sbd-cpn { border: 1.5px solid #e1e2d9; border-radius: 12px; margin: 0 0 14px; background: #fff; }
.sbd .sbd-cpn-tg { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; cursor: pointer; text-align: left; font: 500 14px Poppins, sans-serif; color: #20221b; }
.sbd-cpn-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #74825c; color: #fff; font: 700 15px/1 Oswald, sans-serif; }
.sbd-cpn.on .sbd-cpn-ic { background: var(--sb-red, #d62b3f); }
.sbd-cpn-t { flex: 1; min-width: 0; }
.sbd-cpn-tg svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #55564d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.sbd-cpn.open .sbd-cpn-tg svg { transform: rotate(180deg); }
.sbd-cpn-tg:hover .sbd-cpn-t { text-decoration: underline; text-underline-offset: 3px; }
.sbd-cpn-f { display: flex; gap: 8px; padding: 0 12px 12px; }
.sbd-cpn-f[hidden] { display: none; }
.sbd-cpn-f input { flex: 1; min-width: 0; height: 42px; border: 1.5px solid #dcdcd4; border-radius: 10px; padding: 0 12px; font: 15px Poppins, sans-serif; }
.sbd-cpn-f button { flex: none; height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: #20221b; color: #fff; font: 500 15px Oswald, sans-serif; letter-spacing: .05em; cursor: pointer; }
.sbd-cpn-err { margin: -4px 12px 10px; color: var(--sb-red, #d62b3f); font-size: 13px; }
.sbd-cpn.on { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.sbd .sbd-cpn-rm { border: 0; background: none; padding: 0; font-size: 13px; color: #6b6c62; text-decoration: underline; cursor: pointer; }
/* telefone stalčius = krepšelis: be „Peržiūrėti visą krepšelį“, kad nebūtų krepšelis → krepšelis → apmokėjimas */
@media (max-width: 767px) { .sbd .sbd-view { display: none; } }
/* telefone visas stalčius slenka kaip vienas puslapis: prekių sąrašas svarbiausias, todėl kodas ir sumos jo nebeuždengia.
   Prilipę lieka tik viršus (su „Uždaryti“) ir plonas apmokėjimo mygtukas su suma. */
@media (max-width: 767px) {
  .sbd { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .sbd-head { position: sticky; top: 0; z-index: 4; flex: none; }
  .sbd-items { flex: none; overflow: visible; }
  .sbd-foot { padding-top: 16px; }
  .sbd-cta { position: sticky; bottom: 0; z-index: 3; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .45); }
  .sbd-pay { justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 18px; font-size: 17px; }
  .sbd-pay-sum { display: block; font-weight: 600; letter-spacing: .02em; }
  .sbd-after { padding-top: 2px; }
}
