/* Storefront cart drawer - shared by templates */
.sf-cart {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 22, 30, 0.45);
}
.sf-cart.is-open { display: flex; }
.sf-cart__panel {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  color: #21201f;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}
.sf-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sf-cart__title { margin: 0; font-size: 1.2rem; font-weight: 800; }
.sf-cart__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f2f2f2;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.sf-cart__empty {
  margin: 24px 0;
  text-align: center;
  color: #757575;
  font-weight: 600;
}
.sf-cart__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-cart__line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-height: 10rem;
  padding: 12px 0;
  overflow: hidden;
  border-top: 1px solid #ececec;
  transition: opacity .25s ease, max-height .28s ease, padding .28s ease, border-width .28s ease;
}
.sf-cart__line.is-leaving {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  pointer-events: none;
}
.sf-cart__line:first-child { border-top: 0; }
.sf-cart__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #f2f2f2;
  flex-shrink: 0;
}
.sf-cart__meta { flex: 1; min-width: 0; }
.sf-cart__name { font-weight: 700; }
.sf-cart__size { color: #757575; font-size: 0.85rem; margin-top: 2px; }
.sf-cart__mods { color: #757575; font-size: 0.85rem; margin-top: 2px; }
.sf-cart__sum {
  flex: 0 0 5em;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 32px;
}
.sf-cart__qty {
  display: flex;
  flex: 0 0 96px;
  width: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.sf-cart__qty button {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: #f2f2f2;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.sf-cart__qty span {
  flex: 1;
  min-width: 2ch;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sf-cart__foot { margin-top: 16px; }
.sf-cart__note { margin: 0 0 16px; }
.sf-cart__note-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.sf-cart__note-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  max-height: 128px;
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: #f2f2f2;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: inherit;
  resize: none;
  overflow: auto;
}
.sf-cart__note-input::placeholder { color: #9a9a9a; }
.sf-cart__note-input:focus {
  outline: 2px solid #d8d8d8;
  outline-offset: 0;
}
.sf-cart__total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.sf-cart__checkout {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  background: #ececec;
  color: #757575;
  cursor: default;
}

.sf-cart-undo {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: min(22rem, calc(100vw - 32px));
  max-width: 28rem;
  padding: 12px 16px;
  border-radius: 14px;
  background: #21201f;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transform: translateX(-50%);
}
.sf-cart-undo[hidden] { display: none; }
.sf-cart-undo.is-above-bar { bottom: calc(88px + env(safe-area-inset-bottom)); }
.sf-cart-undo button {
  margin-left: auto;
  border: 0;
  background: none;
  color: #86efac;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .sf-cart__line { transition: none; }
}

.sf-cart-bar[hidden] { display: none !important; }
.sf-cart-size {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.sf-cart-size.is-on { font-weight: 700; }

.bl-item,
.wl-item { position: relative; }
.bl-item__add,
.wl-item__add {
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.bl-item__add.is-in-cart,
.wl-item__add.is-in-cart {
  font-size: 0.85rem;
  font-weight: 800;
}
.ye-dish__add {
  border: 0;
  cursor: pointer;
  font: inherit;
  width: 100%;
}
.ye-dish__add.is-in-cart {
  font-weight: 800;
}
.bl-cartbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, #fff 32%);
  pointer-events: none;
}
.bl-cartbar__btn {
  pointer-events: auto;
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border: 0;
  border-radius: 12px;
  background: #2b8659;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 18px;
  cursor: pointer;
}
