/* Store-only styles; quantities and prices stay readable at every screen size. */
.bulk-section {
  padding: 72px 0;
  scroll-margin-top: 0;
  background: #f3eee4;
  color: var(--text-dark);
}
.bulk-heading { max-width: 770px; margin-bottom: 30px; }
.bulk-heading .section-title { margin-bottom: 18px; }
.bulk-heading > p:last-child { color: var(--text-mid); font-size: 1rem; }
.bulk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  border: 1px solid #ddd1be;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(26, 23, 21, .08);
  overflow: hidden;
}
.bulk-builder, .bulk-summary { min-width: 0; padding: 36px; }
.bulk-editions { border: 0; padding: 0; margin: 0 0 30px; }
.bulk-editions legend, .bulk-step-label {
  display: block;
  margin-bottom: 14px;
  font: 600 .9rem/1.5 var(--font-ui);
  color: var(--text-dark);
}
.bulk-edition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid #d4cabc;
  border-radius: 8px;
  cursor: pointer;
}
.bulk-edition + .bulk-edition { margin-top: 10px; }
.bulk-edition.is-selected { border-color: var(--gold-dark); background: #f8f4ec; }
.bulk-edition input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bulk-edition strong { display: block; font: 600 1.16rem/1.4 var(--font-display); }
.bulk-edition small { font: 400 .84rem/1.6 var(--font-ui); color: var(--text-mid); }
.bulk-radio-mark { width: 20px; height: 20px; flex: 0 0 auto; border: 1px solid #aaa093; border-radius: 50%; }
.is-selected .bulk-radio-mark { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: inset 0 0 0 4px #fff; }
.bulk-edition:has(input:focus-visible) { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.bulk-counter { display: flex; width: 100%; max-width: 360px; min-width: 0; }
.bulk-counter button {
  flex: 0 0 54px;
  border: 1px solid #cfc3b6;
  background: #f8f5ef;
  color: var(--text-dark);
  font: 400 1.7rem var(--font-ui);
  cursor: pointer;
}
.bulk-counter button:first-child { border-radius: 8px 0 0 8px; }
.bulk-counter button:last-child { border-radius: 0 8px 8px 0; }
.bulk-counter input {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 1px solid #cfc3b6;
  border-inline: 0;
  background: #fff;
  text-align: center;
  font: 600 1.6rem var(--font-ui);
  color: var(--text-dark);
  appearance: textfield;
  -moz-appearance: textfield;
}
.bulk-counter input::-webkit-inner-spin-button, .bulk-counter input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.bulk-help { margin-top: 9px; color: var(--text-muted); font: 400 .82rem/1.6 var(--font-ui); }
.bulk-quick-total { display: none; }
.bulk-input-error, .next-form .bulk-input-error { margin: 12px 0 8px; color: #a3402d; font: 500 .82rem/1.6 var(--font-ui); }
.bulk-correction { padding: 7px 0; border: 0; background: none; color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; font: 600 .82rem/1.5 var(--font-ui); cursor: pointer; }
.bulk-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.bulk-presets button { min-height: 64px; padding: 10px 4px; border: 1px solid #d4cabc; border-radius: 7px; background: #fff; color: var(--text-dark); cursor: pointer; font-family: var(--font-ui); }
.bulk-presets strong { display: block; font-size: .72rem; }
.bulk-presets span { display: block; margin-top: 4px; font-size: .68rem; color: var(--text-muted); }
.bulk-presets [aria-pressed="true"] { background: #f3eadb; border-color: var(--gold-dark); }
.bulk-presets [aria-pressed="true"] span { color: var(--gold-dark); }
.bulk-counter button:hover, .bulk-presets button:hover { background: #f3eadb; }
.bulk-shipping-note { margin-top: 24px; max-width: 360px; color: var(--text-muted); font: 400 .79rem/1.7 var(--font-ui); }
.bulk-summary { background: #27231f; color: #fffaf2; }
.bulk-summary h3 { margin-bottom: 4px; font: 600 1.45rem/1.4 var(--font-display); }
.bulk-order-label { margin-bottom: 25px; font: 400 .84rem/1.7 var(--font-ui); color: #d7cfc5; }
.bulk-total-label { font: 500 .82rem/1.6 var(--font-ui); color: #d7cfc5; }
.bulk-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.bulk-total strong { font: 500 clamp(2.3rem, 4vw, 3.25rem)/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.bulk-total > span { color: #d7cfc5; font: 500 .72rem var(--font-ui); }
.bulk-saving { display: inline-block; padding: 7px 10px; margin-bottom: 22px; border-radius: 5px; background: #40372a; color: #ecd4a7; font: 500 .75rem/1.6 var(--font-ui); }
.bulk-breakdown { margin: 0 0 24px; font: 400 .84rem/1.7 var(--font-ui); }
.bulk-breakdown div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; }
.bulk-breakdown dd { flex-shrink: 0; margin: 0; font-variant-numeric: tabular-nums; }
.bulk-breakdown dt { color: #d7cfc5; }
.bulk-breakdown .bulk-discount-row { border-bottom: 1px solid #554c43; padding-bottom: 14px; margin-bottom: 5px; }
.bulk-discount-row dt, .bulk-discount-row dd { color: #ecd4a7; }
.bulk-summary .bulk-request { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 14px 12px; border: 0; background: #c7a56a; color: #211c15; font: 600 .75rem/1.6 var(--font-ui); letter-spacing: .03em; cursor: pointer; }
.bulk-summary .bulk-request:hover { background: #ddbb7f; }
.bulk-request:disabled { opacity: .45; cursor: not-allowed; }
.bulk-fine-print { margin-top: 14px; color: #c5b9ac; font: 400 .74rem/1.65 var(--font-ui); }
.bulk-quote { margin: 20px 0 30px; padding: 20px; border: 1px solid #766247; border-radius: 7px; }
.bulk-quote h4 { margin-bottom: 8px; color: #ecd4a7; font: 600 1.2rem/1.4 var(--font-display); }
.bulk-quote p, .bulk-summary-error { color: #d7cfc5; font: 400 .86rem/1.7 var(--font-ui); }
.bulk-summary-error { margin: 30px 0; }
.bulk-price-guide {
  margin-top: 22px;
  border: 1px solid #ddd1be;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 5px 20px rgba(26, 23, 21, .04);
}
.bulk-price-guide summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 20px 26px;
  border-radius: 12px;
  color: var(--text-dark);
  list-style: none;
  cursor: pointer;
}
.bulk-price-guide summary::-webkit-details-marker { display: none; }
.bulk-price-guide summary::marker { content: ''; }
.bulk-price-guide summary:hover { background: #f8f3ea; }
.bulk-price-guide[open] summary { border-radius: 12px 12px 0 0; border-bottom: 1px solid #e8dece; background: #f8f3ea; }
.bulk-guide-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid #e1d2b5; border-radius: 10px; background: #f1e7d5; color: var(--gold-dark); }
.bulk-guide-heading { display: grid; gap: 3px; min-width: 0; }
.bulk-guide-heading strong { font: 600 1.15rem/1.4 var(--font-display); }
.bulk-guide-heading > span { color: var(--text-muted); font: 400 .76rem/1.6 var(--font-ui); }
.bulk-guide-badge { margin-left: auto; flex-shrink: 0; padding: 7px 12px; border-radius: 30px; background: #eee2ca; color: #71562b; font: 600 .73rem/1.4 var(--font-ui); }
.bulk-guide-chevron { display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: var(--gold-dark); }
.bulk-guide-chevron svg { transition: transform .2s ease; }
.bulk-price-guide[open] .bulk-guide-chevron svg { transform: rotate(180deg); }
.bulk-guide-content { padding: 24px 26px 20px; }
.bulk-guide-table { border: 1px solid #e7ddcd; border-radius: 9px; background: #fff; }
.bulk-guide-table table {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  text-align: left;
  font: 500 .9rem/1.5 var(--font-ui);
  font-variant-numeric: tabular-nums;
}
.bulk-guide-table caption { padding: 13px 20px; text-align: left; color: var(--text-muted); font: 400 .76rem/1.6 var(--font-ui); }
.bulk-guide-quantity-col { width: 28%; }
.bulk-guide-discount-col { width: 20%; }
.bulk-guide-table th, .bulk-guide-table td { padding: 17px 20px; border-bottom: 1px solid #eee6db; vertical-align: middle; }
.bulk-guide-table thead th { padding-top: 13px; padding-bottom: 13px; background: #f3ede3; color: var(--text-mid); font-size: .76rem; font-weight: 600; }
.bulk-guide-table tbody th strong { display: block; font-weight: 600; }
.bulk-guide-table tbody th > span { display: block; margin-top: 3px; color: var(--text-muted); font: 400 .72rem/1.5 var(--font-ui); }
.bulk-guide-discount { display: inline-block; padding: 5px 10px; border-radius: 6px; background: #f2eadb; color: #71562b; font-size: .79rem; font-weight: 600; }
.bulk-guide-best th, .bulk-guide-best td { background: #faf5eb; }
.bulk-guide-best .bulk-guide-discount { background: #82693d; color: #fffaf2; }
.bulk-guide-table tbody tr:last-child > * { border-bottom: 0; }
.bulk-guide-table tbody tr:last-child th { border-radius: 0 0 0 9px; }
.bulk-guide-table tbody tr:last-child td:last-child { border-radius: 0 0 9px 0; }
.bulk-guide-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 20px; margin-top: 14px; border: 1px solid #e7ddcd; border-radius: 8px; background: #f6f0e6; }
.bulk-guide-footer p { color: var(--text-mid); font: 400 .8rem/1.7 var(--font-ui); }
.bulk-guide-footer strong { color: var(--gold-dark); font-weight: 600; }
.bulk-guide-footer > span { flex-shrink: 0; color: var(--text-muted); font: 500 .73rem/1.5 var(--font-ui); }
.bulk-guide-note { margin-top: 14px; color: var(--text-muted); font: 400 .75rem/1.7 var(--font-ui); }
.book-order-summary { padding: 17px 18px; margin-bottom: 22px; border: 1px solid #dbc8a5; border-left: 3px solid var(--gold-dark); border-radius: 5px; background: #f8f4ec; font: 500 .85rem/1.8 var(--font-ui); color: var(--text-dark); white-space: pre-line; }
.book-order-dialog [data-order-quantity-field] { margin-bottom: 20px; }
.book-order-dialog [data-order-quantity-field] input { margin-bottom: 8px; }
.bulk-section button:focus-visible, .bulk-section input:focus-visible, .bulk-price-guide summary:focus-visible, .bulk-correction:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.bulk-counter button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 850px) {
  .bulk-builder, .bulk-summary { padding: 25px; }
  .bulk-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bulk-section { padding: 48px 0; }
  .bulk-layout { grid-template-columns: 1fr; }
  .bulk-builder, .bulk-summary { padding: 25px 22px; }
  .bulk-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bulk-presets strong, .bulk-presets span { font-size: .64rem; }
  .bulk-editions { margin-bottom: 22px; }
  .bulk-quick-total { display: block; margin-top: 12px; color: var(--gold-dark); font: 600 .86rem/1.6 var(--font-ui); }
  .bulk-order-label { margin-bottom: 20px; }
  .bulk-total strong { font-size: 2.7rem; }
  .bulk-price-guide summary { min-height: 80px; padding: 16px; gap: 12px; }
  .bulk-guide-icon { flex-basis: 36px; height: 36px; border-radius: 8px; }
  .bulk-guide-heading strong { font-size: 1.03rem; }
  .bulk-guide-heading > span { font-size: .68rem; }
  .bulk-guide-badge { display: none; }
  .bulk-guide-chevron { margin-left: auto; flex-basis: 22px; }
  .bulk-guide-content { padding: 14px 12px 16px; }
  .bulk-guide-discount-col { width: 18%; }
  .bulk-guide-table caption { padding: 10px; font-size: .7rem; }
  .bulk-guide-table th, .bulk-guide-table td { padding: 14px 7px; font-size: .78rem; }
  .bulk-guide-table thead th { font-size: .65rem; padding: 12px 5px; }
  .bulk-guide-table tbody th > span { font-size: .6rem; }
  .bulk-guide-discount { padding: 4px 5px; font-size: .68rem; }
  .bulk-guide-footer { padding: 13px; }
  .bulk-guide-footer p { font-size: .74rem; }
  .bulk-guide-footer > span { display: none; }
  .bulk-guide-note { padding-inline: 2px; font-size: .69rem; }
}
@media (max-width: 360px) {
  .bulk-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk-total strong { font-size: 2.25rem; }
}
