/* Shopping surfaces share the storefront's Poppins type and warm brand tokens. */
.bb-checkout,
.bb-bag-drawer {
  --shop-accent: #914a27;
  --shop-edge: #e6d3bd;
  --shop-sheet: #fffdf9;
  --shop-tint: #fcf2e5;
  --shop-pad: clamp(16px, 3vw, 30px);
  color: var(--ink, #492719);
  font-family: var(--font, Poppins, sans-serif);
}
dialog.bb-bag-drawer,
#bag-dialog.bb-bag-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  width: min(100%, 30rem);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  border: 0;
  border-inline-start: 1px solid var(--shop-edge);
  border-radius: 0;
  background: var(--shop-sheet);
  text-align: start;
  overflow: auto;
  overscroll-behavior: contain;
}
.bb-bag-drawer[open] {
  animation: bb-show-bag .18s ease-out;
}
.bb-bag-drawer::backdrop { background: rgb(45 28 21 / .52); }
@keyframes bb-show-bag {
  from { transform: translateX(18px); opacity: .75; }
}
.bb-bag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(20px, env(safe-area-inset-top)) var(--shop-pad) 20px;
  border-bottom: 1px solid var(--shop-edge);
  background: linear-gradient(115deg,#f9e8d4,#fff9f1 72%);
}
.bb-bag-head h2 { font-size: clamp(23px, 5vw, 32px); line-height: 1.15; }
.bb-bag-head .doodle { width: 46px; height: 44px; flex: 0 0 auto; }
.bb-bag-head .close { width: 44px; height: 44px; margin-inline-start: auto; }
.bb-bag-body { padding: 0 var(--shop-pad); }
.bb-bag-foot {
  padding: 16px var(--shop-pad) max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--shop-edge);
  background: var(--shop-sheet);
}
.bb-bag-drawer .bag-lines { margin: 0; }
.bb-bag-drawer .bag-item { font-size: 14px; padding-block: 16px; }
.bb-bag-drawer .bag-item h3 { font-size: 16px; }
.bb-bag-drawer .qty-buttons button,
.bb-bag-drawer .remove-line { min-width: 42px; min-height: 42px; }
#bag-dialog.bb-bag-drawer input[type=checkbox] { min-height: 0; }
.bb-bag-drawer :is(.bb-line-item,.bag-item) img,
.bb-checkout .bb-line-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--shop-edge);
  border-radius: 13px;
  background: var(--shop-tint);
}
.bb-line-item {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: 8px 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--shop-edge);
  overflow-wrap: anywhere;
}
.bb-line-item p { color: var(--muted); font-size: 14px; }
.bb-line-item h3 { font-size: 16px; }
.bb-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: min(400px,65dvh);
  padding: 28px;
  text-align: center;
}
.bb-empty img { width: 138px; max-width: 50%; height: auto; }
.bb-empty h2,.bb-empty h3 { font-size: clamp(23px,4vw,30px); }
.bb-checkout {
  position: relative;
  isolation: isolate;
  width: min(100%,1280px);
  margin: 0 auto;
  padding: clamp(25px,4vw,58px) clamp(14px,4vw,50px) clamp(44px,6vw,80px);
}
.bb-checkout h1 {
  color: var(--brown);
  font-size: clamp(32px,5vw,66px);
  line-height: 1.06;
  text-wrap: balance;
}
.bb-checkout h2 { font-size: clamp(22px,2.5vw,32px); line-height: 1.18; }
.bb-checkout h3 { font-size: clamp(17px,1.5vw,21px); }
.bb-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: start;
  gap: clamp(16px,2.3vw,32px);
  margin-top: clamp(18px,3vw,32px);
}
.bb-checkout-grid > * { min-width: 0; }
.bb-checkout-card,
.bb-summary {
  min-width: 0;
  padding: var(--shop-pad);
  background: var(--shop-sheet);
  border: 1px solid var(--shop-edge);
  border-radius: clamp(16px,2vw,24px);
  box-shadow: 0 5px 18px -13px #6c382a4d;
  overflow-wrap: anywhere;
}
.bb-checkout-card + .bb-checkout-card { margin-top: 16px; }
.bb-summary { background: #fcf3e5; }
.bb-summary summary {
  min-height: 44px;
  padding-block: 7px;
  color: var(--brown);
  font-weight: 650;
}
.bb-steps {
  display: flex;
  align-items: baseline;
  gap: 6px 16px;
  flex-wrap: wrap;
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}
.bb-steps [aria-current=step] { color: var(--brown); font-weight: 700; }
.bb-checkout .booking-form { gap: 18px; }
.bb-checkout .booking-form .booking-group { margin: 0; }
.bb-checkout .booking-form .booking-group legend {
  padding-inline: 0;
  font-size: clamp(18px,2vw,25px);
  letter-spacing: -.035em;
  line-height: 1.25;
}
.bb-fields { display: grid; gap: 14px; }
.bb-field,.bb-checkout .field { display: grid; gap: 6px; min-width: 0; color: var(--brown); font-size: 14px; font-weight: 600; }
.bb-checkout :is(.bb-field,.field) :is(input,select,textarea) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cdb6a0;
  border-radius: 10px;
  color: var(--ink);
  background-color: #fffdf9;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}
.bb-checkout textarea { resize: vertical; }
.bb-checkout :is(input,select,textarea)[aria-invalid=true] { border-color: #963525; }
.bb-checkout :is(.field,.bb-field) small,.bb-checkout .booking-hint { color: var(--muted); font-size: 14px; font-weight: 400; }
.bb-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  margin-block: 8px;
  border: 1px solid var(--shop-edge);
  border-radius: 13px;
  background: var(--shop-sheet);
  cursor: pointer;
}
.bb-choice :is(input[type=radio],input[type=checkbox]) { flex: none; width: 18px; height: 18px; margin: 3px 0; accent-color: var(--shop-accent); }
.bb-choice:has(input:checked) { border-color: var(--shop-accent); background: #fff3e5; }
.bb-choice:has(input:disabled),.bb-choice[aria-disabled=true] { background: #f6f1eb; border-style: dashed; color: var(--muted); cursor: default; }
.bb-choice strong { display: block; color: var(--brown); }
.bb-choice small { display: block; color: var(--muted); font-size: 14px; }
.bb-money-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-block: 7px;
}
.bb-money-row strong { margin-inline-start: auto; color: var(--brown); }
.bb-note {
  padding: 12px 16px;
  border-inline-start: 3px solid #cc8855;
  border-radius: 0 10px 10px 0;
  background: #f8ecdb;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.bb-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.bb-primary,.bb-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 21px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: var(--brown);
  color: #fffdf9;
  font-weight: 600;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
}
.bb-secondary { border-color: #d4b394; background: transparent; color: var(--brown); }
.bb-primary:hover:not(:disabled) { background: #793b20; }
.bb-secondary:hover:not(:disabled) { background: var(--shop-tint); }
.bb-primary:disabled { color: #675447; background: #e9dfd1; }
.bb-checkout .contact-caption a,.bb-note a,.bb-bag-drawer .policy-check a { text-underline-offset: 3px; text-decoration: underline; }
@media (min-width: 840px) {
  .bb-checkout-grid { grid-template-columns: minmax(0,1.45fr) minmax(280px,.9fr); }
  .bb-summary { position: sticky; top: 18px; }
  .bb-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .bb-checkout .booking-form .field-pair { grid-template-columns: minmax(0,1fr); }
  .bb-checkout .bb-actions { align-items: stretch; }
  .bb-checkout .bb-actions > .bb-primary { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-bag-drawer[open] { animation: none; }
}

/* Layering and layout for the new shopping surfaces. */
html.mobile-modal-open { overflow:hidden; }
html.mobile-modal-open body { position:fixed;width:100%;top:var(--modal-page-top);left:var(--modal-page-left); }
.bb-checkout [hidden],.bb-bag-drawer [hidden],#store-policies-dialog [hidden] {display:none!important}
.bb-checkout-heading {display:flex;align-items:center;gap:20px;max-width:900px;margin:0 0 24px}
.bb-checkout-heading>.doodle {width:85px;height:85px;flex:none}
.bb-checkout-heading p {font-size:16px;line-height:1.65;margin:14px 0 0;max-width:62ch}
.bb-checkout-nav {background:#f1e7dd}
.bb-checkout .bb-checkout-card h2 {display:flex;align-items:center;gap:12px;margin:0 0 22px;font-size:25px}
.bb-checkout-card h2 .doodle {width:40px;height:38px;flex:none}
.bb-checkout [data-step]>.bb-checkout-card {margin-bottom:18px}
.bb-checkout [data-step]>.bb-checkout-card:first-child .bb-field:first-child {grid-column:1/-1}
.bb-checkout .bb-field {margin:0 0 12px}
.bb-checkout .bb-checkbox {display:flex;gap:10px;align-items:flex-start;font-size:15px;margin:20px 0}
.bb-checkbox input {margin-top:5px;accent-color:var(--brown);width:18px;height:18px;flex:none}
.bb-optional summary {cursor:pointer;font-weight:600;min-height:44px;line-height:1.5}
.bb-unavailable {opacity:.75;cursor:default;border-style:dashed}
.bb-unavailable .icon {margin-top:4px}
.bb-summary [data-summary-lines] {list-style:none;padding:0;margin:12px 0}
.bb-summary {position:static}
.bb-summary .bb-money-row {font-size:18px}
.bb-line-info {min-width:0}
.bb-line-item .line-controls {grid-column:1/-1;align-items:center}
.bb-line-item .line-controls .remove-line {font-size:13px}
.bb-checkout .bb-steps {margin:0 0 22px;justify-content:space-between;border-bottom:1px solid var(--shop-edge)}
.bb-steps li {padding:10px 0;border-bottom:3px solid transparent}
.bb-steps [aria-current=step] {border-color:var(--shop-accent)}
.bb-summary-jump {display:inline-block;margin:0 0 12px;text-decoration:underline}
.bb-checkout [data-status] {margin-top:16px;color:#8a3020}
.bb-checkout :is([data-handover-review],[data-payment-review],[data-receipt]) p {margin:6px 0;overflow-wrap:anywhere}
.bb-checkout [data-payment-review] {margin:16px 0;padding:16px;background:var(--shop-tint);border-radius:14px;font-size:15px}
.bb-complete {max-width:780px;margin:auto}
.bb-complete>.doodle {width:90px;height:80px}
.bb-complete [data-receipt] {padding:18px 0;margin:16px 0;border-block:1px solid var(--shop-edge)}
.bb-complete>p {line-height:1.7;margin:16px 0}
.bb-bag-head .close {position:static;flex:none}
#bag-dialog #bag-lines {max-height:none;overflow:visible}
#bag-dialog .bb-bag-foot .bb-actions {margin-top:16px;display:grid}
#bag-dialog .bb-bag-foot {position:sticky;bottom:0}
#bag-dialog .bb-bag-body {padding-bottom:14px}
#bag-dialog .bb-bag-head {position:sticky;top:0;z-index:1}
#store-policies-dialog {border-radius:20px}
#store-policies-dialog .policy-dialog-header {flex-shrink:0}
#checkout-summary {scroll-margin-top:90px}
@media(min-width:840px){.bb-summary-jump {display:none}.bb-summary {margin-top:52px}}
@media(max-width:520px){
  .bb-checkout-heading {gap:10px;align-items:flex-start}
  .bb-checkout-heading>.doodle {width:44px;height:48px}
  .bb-checkout h1 {font-size:31px}
  .bb-checkout .bb-checkout-card h2 {font-size:22px}
  .bb-checkout .bb-actions>.bb-primary {order:1}
  #bag-dialog .bb-bag-foot {position:static}
  .bb-summary .bb-line-item {font-size:14px}
}

.bb-receipt-lines {list-style:none;margin:0;padding:0}
.bb-receipt-lines .bb-line-item {padding:16px 0}
.bb-checkout .bb-complete .bb-actions>.bb-primary {flex-basis:auto}
.bb-checkout .bb-summary p a {display:inline-flex;min-height:44px;align-items:center;text-decoration:underline}
#bag-dialog .bb-bag-foot {padding-top:22px;}
#bag-dialog .bb-money-row {margin:0 0 18px;}
#bag-price-note.bb-note {display:grid;gap:6px;margin:0 0 22px;padding:16px 18px;border:1px solid #eadbc7;border-radius:14px;background:linear-gradient(115deg,#fcf0df,#fffaf2);line-height:1.6;}
#bag-price-note strong {color:var(--brown);font-size:14px;font-weight:600;}
#bag-price-note span {color:var(--muted);font-size:13px;}
#bag-dialog .store-policy-accept {padding-block:4px;gap:12px;line-height:1.65;}
#bag-dialog .store-policy-accept a {font-weight:600;}
#bag-dialog .bb-bag-foot .bb-actions {margin-top:22px;gap:12px;}
#bag-dialog .bb-bag-body {padding-bottom:20px;}
#bag-dialog [data-clear] {margin-top:10px;min-height:44px;}
