/* Preorder bag shared by the shop and product page. */
dialog.drawer {
  display: flex;
  flex-direction: column;
  padding: 0;
  width: min(510px, 100%);
  background: #fff;
  box-shadow: -18px 0 65px rgba(0, 0, 0, .22);
  overflow: hidden;
}
dialog.drawer:not([open]) { display: none; }
dialog.drawer::backdrop { background: rgba(7, 7, 7, .67); }
.drawer .drawer-top {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 29px 30px 25px;
  border: 0;
  background: #0b0b0b;
  color: #fff;
}
.drawer .bag-kicker {
  margin: 0 0 11px;
  color: #dfb651;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.drawer .drawer-top h2 {
  margin: 0;
  font: 700 clamp(1.8rem, 5vw, 2.25rem)/1.1 "Playfair Display", Georgia, serif;
  letter-spacing: -.02em;
}
.drawer .bag-subhead { margin: 9px 0 0; color: #b9b4ab; font-size: .9rem; }
.drawer .close {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #48433c;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 400 1.55rem/1 Arial, sans-serif;
}
.drawer .close:hover { background: #27231d; }
.drawer-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 30px 26px; }
.drawer .cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid #e7e2d9;
}
.drawer .cart-item img {
  display: block;
  width: 96px;
  height: 112px;
  object-fit: contain;
  background: #f7f4ee;
  border: 1px solid #ece6dc;
}
.drawer .item-meta { margin: 0 0 7px; color: #8b6a31; font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.drawer .item-title { display: block; margin: 0 0 6px; font: 700 1.05rem/1.3 "Playfair Display", Georgia, serif; color: #171510; }
.drawer .item-variant { display: block; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e7e2d9; color: #171510; font-size: 1rem; font-weight: 800; letter-spacing: .01em; line-height: 1.4; }
.drawer .item-price { display: block; margin: 15px 0 0; font-weight: 800; color: #15130f; font-variant-numeric: tabular-nums; }
.drawer .item-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.drawer .quantity-control { display: inline-flex; align-items: center; gap: 0; height: 38px; border: 1px solid #c9c3b9; background: #fff; }
.drawer .quantity-control button { width: 36px; height: 36px; border: 0; background: transparent; color: #171510; font-size: 1.25rem; }
.drawer .quantity-control button:hover { background: #f2eee8; }
.drawer .quantity-control input { width: 40px; height: 36px; padding: 0; border: 0; background: transparent; font-weight: 700; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.drawer .quantity-control input::-webkit-inner-spin-button, .drawer .quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.drawer .remove { padding: 7px 0; border: 0; background: transparent; color: #5e5952; text-decoration: underline; text-underline-offset: 3px; font-size: .85rem; font-weight: 600; }
.drawer .remove:hover { color: #14120e; }
.drawer .empty { margin: 0; padding: 72px 22px; color: #5f5a52; text-align: center; line-height: 1.5; }
.drawer .empty::before { content: "◇"; display: block; margin-bottom: 16px; color: #bd9954; font: 400 2.4rem/1 Georgia, serif; }
.drawer .coupon { margin: 26px 0 0; padding: 20px; background: #f7f4ef; border: 1px solid #e8e1d6; }
.drawer .coupon label { margin-bottom: 10px; color: #26221c; font-size: .88rem; }
.drawer .coupon-row input { min-width: 0; padding: 11px 12px; border: 1px solid #c7c0b3; background: #fff; border-radius: 0; }
.drawer .coupon-row button { padding: 11px 16px; border: 0; border-radius: 0; background: #111; color: #fff; font-size: .88rem; }
.drawer .coupon p { min-height: 1.2em; margin: 9px 0 0; color: #275d3e; font-size: .85rem; }
.drawer .bag-footer { flex: 0 0 auto; padding: 21px 30px max(25px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e4ddd2; box-shadow: 0 -9px 24px rgba(18, 14, 8, .045); }
.drawer .bag-summary { margin: 0; }
.drawer .bag-summary p { margin: 0 0 8px; display: flex; justify-content: space-between; gap: 16px; color: #5d584f; font-size: .92rem; }
.drawer .bag-summary [hidden] { display: none; }
.drawer .bag-summary p span { color: #171510; font-variant-numeric: tabular-nums; white-space: nowrap; }
.drawer .bag-summary .grand { margin: 13px 0 0; padding-top: 14px; border-top: 1px solid #d7cec0; color: #171510; font-size: 1.1rem; font-weight: 800; }
.drawer .bag-summary .grand span { font-size: 1.25rem; }
.drawer #paymentNote { margin: 13px 0 0; color: #686158; font-size: .84rem; line-height: 1.45; }
.drawer .continue-shopping { display: block; width: 100%; margin-top: 18px; padding: 13px 18px; border: 1px solid #151515; background: #151515; color: #fff; text-align: center; font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
.drawer .continue-shopping:hover { background: #343029; }
.drawer :focus-visible { outline: 2px solid #ae7a1c; outline-offset: 3px; }
@media(max-width:580px) {
  .drawer .drawer-top { padding: 24px 22px 21px; }
  .drawer-scroll { padding: 4px 22px 22px; }
  .drawer .bag-footer { padding: 17px 22px max(20px, env(safe-area-inset-bottom)); }
  .drawer .cart-item { grid-template-columns: 78px minmax(0,1fr); gap: 13px; padding: 20px 0; }
  .drawer .cart-item img { width: 78px; height: 98px; }
}
