/* Offers use each venue's existing palette and square controls. */
.offer-list { list-style: none; padding-block: 8px; margin-block: 0 8px; color: var(--fg); }
.offer-list li { padding: 8px 12px; border-inline-start: 4px solid var(--accent); background: var(--surface); overflow-wrap: anywhere; }
.offer-list li + li { margin-top: 4px; }
.promo-field { margin-block: 16px; }
.promo-field > label { display: block; margin-bottom: 4px; }
.promo-controls { display: flex; gap: 8px; }
.promo-controls input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 2px solid var(--edge); border-radius: 0; color: var(--fg); background: var(--bg); font: inherit; }
.promo-controls button { flex: none; min-height: 44px; width: auto; }
.promo-controls input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#promo-message { min-height: 24px; margin: 4px 0 0; font-size: 0.9375rem; color: var(--muted); }
#promo-message.promo-bad, #cart-minimum { color: var(--fg); }
.discount-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 4px; }
.discount-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
.discount-row span:last-child { flex: none; }
#panel-offers { container-type: inline-size; }
.offer-form { margin-top: 24px; border-top: 2px solid var(--line); padding-top: 16px; }
.offer-form > fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.offer-form h3, .offer-form h4 { margin: 8px 0 16px; }
.offer-basics, .offer-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.offer-wide, .offer-block h4, .offer-rows, .offer-days, .offer-block > .offer-add { grid-column: 1 / -1; }
.offer-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--fg); }
.offer-field > .ck-input { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; }
.offer-form .row-toggle, .offer-form .settings-type { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.offer-form input[type="checkbox"] { width: 24px; height: 24px; min-height: 24px; padding: 0; margin: 0; flex: none; accent-color: var(--fg); }
.offer-days { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px auto; gap: 8px; margin-bottom: 8px; }
.offer-row > .ck-input { min-width: 0; min-height: 44px; width: 100%; box-sizing: border-box; }
.offer-form details.offer-block { display: block; border-top: 2px solid var(--rule); padding-top: 8px; }
.offer-form details > summary { min-height: 44px; display: list-item; padding-block: 12px; cursor: pointer; }
.offer-form details > .offer-field, .offer-form details > span, .offer-form details > .offer-days { margin-bottom: 16px; }
.offer-form summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.offer-form [hidden] { display: none !important; }
.offer-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; border-bottom: 2px solid var(--rule); }
.offer-item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.offer-item > span:last-child { display: flex; gap: 8px; flex: none; }
.offer-item.off { color: var(--muted); }
@container (max-width: 519px) {
  .offer-basics, .offer-block { grid-template-columns: minmax(0, 1fr); }
  .offer-item { align-items: stretch; flex-direction: column; gap: 8px; }
  .offer-row { grid-template-columns: minmax(0, 1fr) 80px; }
  .offer-row > button { grid-column: 1 / -1; justify-self: end; }
}
