/* Спільна база: скидання + кошик. Вигляд задає варіант через змінні. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
body.ob-locked { overflow: hidden; }

:root {
  --ob-bg: #14110e; --ob-ink: #efe7dc; --ob-muted: #a2968a; --ob-line: rgba(239,231,220,.18);
  --ob-accent: #8d6a3f; --ob-font: system-ui, sans-serif; --ob-radius: 0px;
}

.ob-cart { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 760px) { .ob-cart { align-items: center; } }
.ob-cart[hidden] { display: none; }
.ob-cart__veil { position: absolute; inset: 0; background: rgba(8,6,4,.72); backdrop-filter: blur(3px); }
.ob-cart__panel {
  position: relative; width: min(560px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--ob-bg); color: var(--ob-ink); border: 1px solid var(--ob-line);
  border-radius: var(--ob-radius); padding: 28px 24px 26px; font-family: var(--ob-font);
}
@media (max-width: 759px) { .ob-cart__panel { border-radius: var(--ob-radius) var(--ob-radius) 0 0; } }
.ob-cart__x { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--ob-muted); }
.ob-cart__head { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--ob-line); }
.ob-cart__head img { width: 96px; flex: none; }
.ob-cart__name { margin: 0 0 6px; font-size: 15px; line-height: 1.35; }
.ob-cart__price { margin: 0; font-size: 20px; letter-spacing: .02em; }
.ob-cart__bumps { padding: 16px 0; display: grid; gap: 10px; }
.ob-bump { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--ob-line); cursor: pointer; }
.ob-bump input { margin-top: 3px; accent-color: var(--ob-accent); width: 17px; height: 17px; flex: none; }
.ob-bump__t { flex: 1; font-size: 14px; line-height: 1.4; }
.ob-bump__t em { display: block; font-style: normal; color: var(--ob-muted); font-size: 12.5px; margin-top: 3px; }
.ob-bump__p { font-size: 14px; white-space: nowrap; color: var(--ob-muted); }
.ob-form { display: grid; gap: 12px; padding-top: 6px; }
.ob-field { display: grid; gap: 6px; }
.ob-field span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ob-muted); }
.ob-field input {
  font: inherit; font-size: 16px; padding: 13px 14px; background: transparent; color: var(--ob-ink);
  border: 1px solid var(--ob-line); border-radius: 0; width: 100%;
}
.ob-field input:focus { outline: 2px solid var(--ob-accent); outline-offset: -1px; }
.ob-field input.is-bad { border-color: #b4432f; }
.ob-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; font-size: 14px; color: var(--ob-muted); }
.ob-total b { font-size: 22px; color: var(--ob-ink); font-weight: 500; }
.ob-submit {
  margin-top: 4px; padding: 16px 20px; border: 0; background: var(--ob-accent); color: #fff;
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase; border-radius: var(--ob-radius);
}
.ob-submit:hover { filter: brightness(1.08); }
.ob-note { margin: 0; font-size: 12.5px; color: var(--ob-muted); line-height: 1.5; }
.ob-done { padding: 28px 0 8px; text-align: center; }
.ob-done p:first-child { font-size: 20px; margin: 0 0 8px; }
.ob-thumb { padding: 0; border: 1px solid transparent; background: none; opacity: .62; transition: opacity .25s, border-color .25s; }
.ob-thumb.is-on, .ob-thumb:hover { opacity: 1; border-color: var(--ob-accent); }
[hidden] { display: none !important; }
