.masthead__actions {
  grid-area: bag;
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(0.55rem, 2.2vw, 1.65rem);
}
.cart-dialog__checkout { width: 100%; }
.account-dialog { width: min(calc(100% - 1.5rem), 37rem); }
.checkout-dialog { width: min(calc(100% - 1.5rem), 44rem); }
.flow-dialog__inner { padding: clamp(1rem, 4vw, 1.8rem); }
.account-dialog, .checkout-dialog { overflow-y: auto; overscroll-behavior: contain; }
.flow-dialog__heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 4px double var(--rule);
}
.flow-dialog__heading h2 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.account-tabs { display: flex; flex-wrap: wrap; gap: 0.15rem 1.25rem; margin-bottom: 0.65rem; }
.account-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  overflow-wrap: anywhere;
}
.account-actions button { flex: none; }
.account-admin { margin-top: 0.25rem; }
.account-admin .text-button { font-size: 0.9rem; }
.store-form { display: grid; gap: 0.95rem; }
.store-form label { display: grid; min-width: 0; align-content: start; gap: 0.3rem; font-size: 0.9rem; }
.store-form input, .store-form select, .store-form textarea {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--soot);
  color: var(--ivory);
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 1rem;
}
.store-form input::placeholder { color: #af9784; }
.store-form select:disabled { color: var(--muted); }
.store-form :is(button, select):disabled { opacity: 0.62; }
.flow-note { color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.flow-dialog__inner > .flow-note { margin-bottom: 0.85rem; }
.flow-status { margin-top: 0.7rem; color: #f0c3a9; font-size: 0.9rem; }
.flow-status:empty { display: none; }
.flow-status[data-error] { padding: 0.45rem 0.55rem; border-left: 2px solid #dc8c72; }
.store-form fieldset {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0.6rem 0.8rem 0.85rem;
  border: 1px solid var(--rule);
}
.store-form legend { padding: 0 0.35rem; color: var(--ivory); font-weight: 600; }
.city-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.45rem 0.75rem; }
.city-search .button { min-height: 2.85rem; padding-inline: 0.7rem; white-space: nowrap; font-size: 1rem; }
.pickup-detail { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.pickup-detail:empty { display: none; }
.delivery-fieldset { gap: 0.8rem; }
.delivery-field { position: relative; display: grid; gap: 0.28rem; }
.delivery-field > label { font-size: 0.9rem; }
.combo-control { position: relative; }
.combo-control input { padding-right: 2.2rem; }
.combo-progress {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid #806653;
  border-top-color: var(--ivory);
  border-radius: 50%;
  animation: combo-spin 0.7s linear infinite;
  transform: translateY(-50%);
}
@keyframes combo-spin { to { transform: translateY(-50%) rotate(360deg); } }
.combo-list {
  position: absolute;
  z-index: 8;
  top: calc(100% - 0.35rem);
  right: 0;
  left: 0;
  max-height: 15rem;
  overflow: auto;
  margin: 0;
  padding: 0.2rem;
  border: 1px solid var(--rule);
  background: #17110e;
  box-shadow: 0 0.8rem 1.8rem #050302d9;
  list-style: none;
}
.combo-option {
  display: grid;
  gap: 0.06rem;
  min-height: 2.75rem;
  padding: 0.48rem 0.6rem;
  border-bottom: 1px solid #44352a;
  cursor: pointer;
}
.combo-option:last-child { border-bottom: 0; }
.combo-option:is(:hover, .combo-option--active) { background: #3d1c1d; }
.combo-option__title { font-size: 0.94rem; line-height: 1.25; }
.combo-option__meta { color: var(--muted); font-size: 0.78rem; line-height: 1.3; }
.field-note { min-height: 1.1rem; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.field-note:empty { min-height: 0; }
.map-toggle { justify-self: start; padding-top: 0.1rem; font-size: 0.9rem; }
.pickup-map-wrap {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #0c0a09;
}
.pickup-map { width: 100%; height: 100%; }
.pickup-marker {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  padding: 0;
  border: 2px solid #f2d4ad;
  border-radius: 50% 50% 50% 0;
  background: var(--wine);
  box-shadow: 0 0.25rem 0.75rem #080605cc;
  cursor: pointer;
  transform: translate(-50%, -100%) rotate(-45deg);
}
.pickup-marker span { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--ivory); transform: rotate(45deg); }
.pickup-marker:is(:hover, :focus-visible, .pickup-marker--active) {
  border-color: #fff0d6;
  background: #8b2628;
  box-shadow: 0 0 0 5px #d7a77e55, 0 0.35rem 1rem #080605;
}
.map-popup {
  position: absolute;
  z-index: 2;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  display: grid;
  gap: 0.38rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--copper);
  background: #17110ef2;
  box-shadow: 0 0.5rem 1.4rem #050302cc;
}
.map-popup__address { font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; }
.map-popup__hours { color: var(--muted); font-size: 0.82rem; }
.map-popup .button { min-height: 2.55rem; font-size: 1rem; }
.map-note { color: #e2b4a6; }
.checkout-review { display: grid; gap: 0.55rem; padding-top: 0.3rem; }
.checkout-review h3 { font-size: 1.55rem; line-height: 1.1; }
.checkout-lines {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.checkout-lines li { display: flex; justify-content: space-between; gap: 0.9rem; }
.checkout-lines strong { flex: none; color: var(--ivory); font-weight: 400; font-variant-numeric: tabular-nums; }
.checkout-summary .subtotal { padding-top: 0.5rem; margin-bottom: 0.3rem; border-top: 1px solid var(--rule); }
.checkout-summary .checkout-total { color: #f0d7b9; font-size: 1.08rem; }
.flow-note[data-error] { color: #f0c3a9; padding: 0.4rem 0.55rem; border-left: 2px solid #dc8c72; }
.orders-list { display: grid; gap: 0.85rem; }
.order-entry { padding: 0.8rem; border: 1px solid var(--rule); background: var(--soot); }
.order-entry__heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.6rem; }
.order-entry__heading h3 { font-size: 1.45rem; }
.order-stage { color: #edd0b0; font-size: 0.9rem; }
.order-entry > p:not(.subtotal) { margin-top: 0.3rem; }
.order-entry ul { padding-left: 1.1rem; margin: 0.55rem 0; }
.order-entry .subtotal { margin: 0.65rem 0 0; border-top: 1px solid #6e5443; padding-top: 0.45rem; }
.order-entry .order-entry__total { color: #f0d7b9; font-size: 1.05rem; }
.order-entry__status { margin-top: 0.7rem; grid-template-columns: 1fr 1fr; }
.order-entry__status button { grid-column: 1 / -1; }
@media (max-width: 680px) {
  .masthead__inner {
    grid-template: "brand brand" auto "nav bag" auto / minmax(0, 1fr) auto;
    column-gap: 0.4rem;
    padding-inline: 0.7rem;
  }
  .masthead__inner .wordmark { justify-self: center; }
  .masthead__nav { min-width: 0; border-top: 0; gap: clamp(0.4rem, 2vw, 0.85rem); }
  .masthead__actions { gap: clamp(0.4rem, 2.5vw, 0.88rem); }
  .masthead__nav a, .masthead__actions .bag-toggle { font-size: 0.9rem; }
  .hero__copy p { letter-spacing: 0.018em; }
}
@media (max-width: 350px) {
  .masthead__nav { gap: 0.42rem; }
  .masthead__nav a, .masthead__actions .bag-toggle { font-size: 0.81rem; }
  .city-search, .order-entry__status { grid-template-columns: minmax(0, 1fr); }
}

.cart-line--unavailable img { filter: grayscale(1); opacity: 0.55; }
.cart-line--unavailable .cart-line__price { color: #e2b4a6; }
.cart-line__state { margin-top: 0.35rem; color: #e2b4a6; font-size: 0.82rem; }
.cart-dialog__footer [data-cart-note] { margin-bottom: 0.55rem; color: #e2b4a6; }

@media (min-width: 681px) {
  .map-toggle { display: none !important; }
}
@media (max-width: 680px) {
  .map-toggle { display: inline-flex; }
  .pickup-map-wrap { height: 16rem; }
  .map-popup { right: 0.45rem; bottom: 0.45rem; left: 0.45rem; }
}
.pickup-detail[data-error], .map-note[data-error] { color: #f0c3a9; }

.store-form textarea { min-width: 0; resize: vertical; }
.customer-profile { margin: 1rem 0; }
.customer-profile form { margin-top: 0.8rem; }
.customer-profile summary, .product-reviews summary { cursor: pointer; width: fit-content; }
.product-reviews {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--copper);
}
.product-reviews .store-form { margin-top: 0.8rem; }
.review-list { display: grid; gap: 0.8rem; margin-top: 0.8rem; }
.review-card {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--copper);
  overflow-wrap: anywhere;
}
.review-card p { margin: 0.25rem 0; }
.review-card .review-text { white-space: pre-wrap; }
.review-card img { display: block; width: auto; max-width: min(100%, 18rem); max-height: 16rem; margin: 0.6rem 0; object-fit: contain; }
.review-card button { margin: 0.5rem 0.8rem 0 0; }
