.bs-options-open { overflow: hidden; }
.bs-options-progress { color: #756757; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.bs-options-back { border: 0; padding: 10px 0; background: transparent; color: var(--bs-orange-dark); cursor: pointer; text-decoration: underline; margin-bottom: 12px; min-height: 44px; }
.bs-menu-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.bs-menu-choices legend { font-size: 1.4rem; font-weight: 750; }
.bs-menu-hint { color: #665f58; margin: 8px 0 20px; }
.bs-menu-list { display: grid; gap: 10px; }
.bs-menu-choice.bs-menu-with-image { grid-template-columns: 22px 48px minmax(0,1fr) auto; }
.bs-menu-choice img { width: 48px; height: 56px; object-fit: contain; border-radius: 5px; }
.bs-options-modal :focus-visible { outline: 3px solid #385c80; outline-offset: 3px; }
.bs-options-modal { position: fixed; margin: auto; padding: 0; width: min(600px, calc(100% - 32px)); max-height: min(90dvh, 920px); border: 0; border-radius: 18px; background: #fffaf3; color: #202a30; box-shadow: 0 24px 90px #0005; font: 400 1rem/1.5 var(--bs-body-font); overflow-y: auto; overscroll-behavior: contain; }
.bs-options-modal::backdrop { background: rgb(23 31 35 / 60%); backdrop-filter: blur(3px); }
.bs-options-modal *, .bs-options-modal *::before, .bs-options-modal *::after { box-sizing: border-box; }
.bs-options-modal [hidden] { display: none !important; }
.bs-options-modal button, .bs-options-modal input { font: inherit; }
.bs-options-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border: 1px solid #e4d6c5; border-radius: 50%; background: #fffaf3; color: #202a30; font-size: 1.8rem !important; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px #0001; }
.bs-options-loading { padding: 90px 32px; text-align: center; min-height: 230px; }
.bs-options-photo { height: 230px; background: #eee3d3; }
.bs-options-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-options-no-photo { background: repeating-linear-gradient(-45deg,#c8dcf2 0,#c8dcf2 26px,#fff8ee 26px,#fff8ee 52px); }
.bs-options-no-photo img { object-fit: contain; padding: 45px; }
.bs-options-content { padding: 26px 30px 22px; }
.bs-options-content h2 { margin: 0 0 10px; font: 400 2.3rem/1.15 var(--bs-heading-font); color: var(--bs-orange-dark); }
.bs-options-description { margin: 0 0 10px; color: #665f58; font-size: .9375rem; }
.bs-options-base { margin: 0 0 26px; font-weight: 750; font-size: 1.125rem; }
.bs-options-choices { padding: 0; margin: 0; border: 0; min-width: 0; }
.bs-options-choices legend { padding: 0; font-size: 1.125rem; font-weight: 750; }
.bs-options-hint { margin: 4px 0 16px; color: #776d61; font-size: .875rem; }
.bs-options-list { display: grid; gap: 10px; }
.bs-options-choice { min-height: 66px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid #e4d8c8; border-radius: 9px; cursor: pointer; background: #fffdf8; }
.bs-options-choice:has(input:checked) { border-color: var(--bs-orange); background: #fff0e4; }
.bs-options-choice input { appearance: auto; width: 21px; height: 21px; margin: 0; accent-color: var(--bs-orange-dark); }
.bs-options-choice span { font-size: .9375rem; }
.bs-options-choice strong { font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.bs-options-bottom { position: sticky; bottom: 0; display: flex; align-items: center; gap: 18px; padding: 20px 30px; background: #fffaf3; border-top: 1px solid #e4d8c8; }
.bs-options-quantity { display: flex; align-items: center; flex: 0 0 auto; border: 1px solid #dfd2c2; border-radius: 30px; overflow: hidden; }
.bs-options-quantity button { width: 42px; height: 46px; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; }
.bs-options-quantity input { width: 34px; padding: 0; height: 46px; appearance: textfield; -moz-appearance: textfield; text-align: center; border: 0; background: transparent; color: inherit; font-weight: 650; }
.bs-options-quantity input::-webkit-inner-spin-button, .bs-options-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bs-options-submit { flex: 1; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 19px; border: 0; border-radius: 9px; background: var(--bs-button-orange,#c54823); color: white; cursor: pointer; font-size: .9375rem !important; font-weight: 650 !important; }
.bs-options-submit strong { white-space: nowrap; }
.bs-options-submit:hover:not(:disabled) { background: var(--bs-orange-dark); }
.bs-options-modal button:disabled { cursor: default; opacity: .5; }
.bs-options-error { padding: 12px 14px; border-left: 3px solid #ab3f20; color: #8e321c; background: #fff0e9; margin: 18px 0 0; font-size: .9375rem; }
.bs-options-check-cart { display: inline-block; margin-top: 12px; color: var(--bs-orange-dark); text-decoration: underline; }
.bs-native-extras { padding: 20px; border: 1px solid #dfd2c2; margin: 15px 0 24px; border-radius: 10px; }
.bs-native-extras legend { font-weight: 700; padding: 0 8px; }
.bs-native-extras > p { font-size: .875rem; color: #665f58; margin: 0 0 12px; }
.bs-native-extras label { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; }
.bs-native-extras input { width: 20px; height: 20px; accent-color: var(--bs-orange-dark); }
.bs-native-extras strong { margin-left: auto; }

/* Header and actions stay outside the only scrolling area. */
.bs-options-modal { box-sizing: border-box; inset: 0; max-width: none; height: min(90vh,920px); height: min(90dvh,920px); max-height: none; overflow: hidden; }
.bs-options-modal[open] { display: flex; flex-direction: column; }
.bs-options-header { position: relative; flex: 0 0 auto; padding: 18px 76px 18px 24px; border-bottom: 1px solid #e4d8c8; }
.bs-options-header h2 { margin: 0; font: 400 1.9rem/1.15 var(--bs-heading-font); color: var(--bs-orange-dark); overflow-wrap: anywhere; }
.bs-options-header .bs-options-progress { margin: 0 0 5px; font-size: .75rem; }
.bs-options-header .bs-options-back { display: block; margin: -8px 0 2px; padding: 8px 0; font-size: .875rem; }
.bs-options-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.bs-options-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.bs-options-bottom { position: static; flex: 0 0 auto; }
.bs-options-quantity-caption { display: none; }
.bs-options-quantity button { color: #202a30; }
.bs-options-modal .bs-options-quantity input { font-size: 16px; }
.bs-options-choice span { min-width: 0; overflow-wrap: anywhere; }
.bs-options-modal[data-step="2"] .bs-options-photo,
.bs-options-modal[data-step="2"] .bs-options-description,
.bs-options-modal[data-step="2"] .bs-options-base { display: none; }
@media (max-width: 600px) {
  .bs-options-modal { inset: 0; margin: 0; width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100%; border-radius: 0; }
  .bs-options-header { padding: max(12px,env(safe-area-inset-top)) 68px 12px max(16px,env(safe-area-inset-left)); }
  .bs-options-header h2 { font-size: 1.65rem; }
  .bs-options-close { top: max(10px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); }
  .bs-options-photo { height: 150px; }
  .bs-options-content { padding: 16px; }
  .bs-options-base { margin-bottom: 18px; }
  .bs-menu-choices legend { font-size: 1.25rem; line-height: 1.3; }
  .bs-menu-hint { font-size: .875rem; margin: 8px 0 16px; }
  .bs-options-choice { min-height: 64px; padding: 12px 10px; gap: 8px; grid-template-columns: 22px minmax(0,1fr) auto; }
  .bs-menu-choice.bs-menu-with-image { grid-template-columns: 22px 30px minmax(0,1fr) auto; }
  .bs-menu-choice img { width: 30px; height: 42px; }
  .bs-options-choice span { font-size: .875rem; line-height: 1.4; }
  .bs-options-choice strong { font-size: .8125rem; }
  .bs-options-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 10px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
  .bs-options-quantity-caption { display: block; font-size: .9375rem; }
  .bs-options-quantity button { width: 44px; height: 44px; }
  .bs-options-quantity input { height: 44px; }
  .bs-options-submit { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 52px; padding: 12px 16px; gap: 8px; font-size: 1rem !important; }
}
@media (max-height: 480px) and (max-width: 600px) {
  .bs-options-header { padding-block: 8px; }
  .bs-options-header .bs-options-progress { display: none; }
  .bs-options-header .bs-options-back { min-height: 36px; padding-block: 4px; }
  .bs-options-bottom { gap: 6px; padding-block: 6px; }
}
