#drawer {
  --cart-wine: #690d2b;
  --cart-rule: #cdb8ac;
  width: min(33rem, 100%);
  padding: clamp(1rem, 5vw, 1.6rem);
  overflow-y: auto;
  background: #fcf7f0;
  color: #28171b;
  font-family: Georgia, serif;
}
#drawer .drawer-head {
  flex: none;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--cart-rule);
}
#cart-title { margin: 0; color: var(--cart-wine); font: 600 clamp(2.6rem, 8vw, 3.5rem)/1 Georgia, serif; }
#cartClose { min-width: 44px; min-height: 44px; color: var(--cart-wine); }
#drawer .cart-items { flex: 1 0 auto; overflow: visible; margin: 1.4rem 0 1.65rem; }
#drawer .cart-line {
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  align-items: center;
  gap: clamp(.7rem, 4vw, 1.35rem);
  padding: 0;
  border: 0;
}
#drawer .cart-line img {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px ridge #b58b3e;
  border-radius: 0;
}
.cart-product-name { display: block; color: var(--cart-wine); font: 600 clamp(1.12rem, 4.8vw, 1.9rem)/1.13 Georgia, serif; }
.cart-format { margin: .4rem 0; font: italic clamp(.94rem, 3.6vw, 1.26rem)/1.25 Georgia, serif; }
.cart-price { margin: .45rem 0 .6rem; font-size: clamp(1.18rem, 4.5vw, 1.7rem); font-weight: 700; }
.cart-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .8rem; font-size: .95rem; }
.cart-remove { background: none; border: 0; min-height: 44px; padding: .4rem 0; color: var(--cart-wine); text-decoration: underline; cursor: pointer; }
#cartSummary { flex: none; }
#cartSummary .gift-note { margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: .85rem; background: #f6e1de; color: var(--cart-wine); }
#cartSummary .gift-note-toggle { align-items: center; gap: .7rem; min-height: 44px; font-size: clamp(1rem, 4vw, 1.37rem); }
#cartSummary .gift-note-toggle input { margin: 0; width: 1.2rem; height: 1.2rem; accent-color: var(--cart-wine); }
.cart-totals { margin: 0 0 1rem; padding-top: .65rem; border-top: 1px solid var(--cart-rule); font-size: 1.2rem; }
.cart-totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem .35rem; }
.cart-totals dd { margin: 0; }
.cart-totals .cart-total { margin-top: .4rem; padding-top: .65rem; border-top: 1px solid var(--cart-rule); color: var(--cart-wine); font-size: 1.55rem; font-weight: 700; }
#drawerCheckout { display: block; text-align: center; padding: .75rem 1rem; border-radius: 1rem; background: var(--cart-wine); color: #fff9f4; font: 600 1.55rem/1.25 Georgia, serif; }
#drawerCheckout:hover { background: #510720; }

#drawer { padding: clamp(1rem, 3.2vw, 1.15rem); }
#drawer .drawer-head { padding-bottom: clamp(.75rem, 3vw, 1.05rem); }
#cartClose { font-size: 2.15rem; font-weight: 300; }
#drawer .cart-items { flex: none; margin: clamp(1.15rem, 5vw, 1.8rem) 0 clamp(1.5rem, 7vw, 2.5rem); }
#drawer .cart-line { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); }
#drawer .cart-line img { aspect-ratio: 456 / 470; }
.cart-product-name { font-size: clamp(1.2rem, 4.6vw, 1.95rem); }
.cart-format { margin-top: .6rem; }
.cart-price { margin-bottom: .9rem; }
.cart-quantity {
  display: inline-grid;
  grid-template-columns: 44px 2ch 44px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--cart-rule);
  border-radius: .45rem;
  background: transparent;
  font-size: 1.1rem;
}
.cart-quantity button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--cart-wine);
  cursor: pointer;
}
.cart-quantity button:disabled { opacity: .4; cursor: default; }

.cart-remove { font-size: 1rem; }
#cartSummary .gift-note {
  background: #f6e1de url('/assets/cart-gift-box.webp') right bottom -14px no-repeat;
  background-size: min(32%, 10rem) auto;
  margin-bottom: clamp(1rem, 4.5vw, 1.5rem);
}
#cartSummary .gift-note:has([name="is_gift"]:checked) {
  background-image: none;
}
#cartSummary .gift-note-toggle { min-height: clamp(44px, 12vw, 4.65rem); padding-right: 28%; }
#cartSummary .gift-note:has([name="is_gift"]:checked) .gift-note-toggle { padding-right: 0; }
.cart-totals { margin-bottom: 1.5rem; }
.cart-totals > div { padding: .45rem .45rem; }
.cart-totals .cart-total { font-size: clamp(1.45rem, 6vw, 2.05rem); }
#drawerCheckout { padding: .9rem 1rem; font-size: clamp(1.4rem, 6vw, 2rem); }
#drawer .cart-line + .cart-line { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cart-rule); }
