.oml-dialog { background: var(--oml-color-white); border: 0; border-radius: var(--oml-radius-medium); box-sizing: border-box; color: var(--oml-color-charcoal); inset: auto; left: 50%; margin: 0; max-height: calc(100% - 32px); max-width: min(480px, calc(100% - 32px)); overflow-y: auto; padding: 0; position: fixed; scrollbar-width: none; top: 50%; transform: translate(-50%, -50%); width: 100%; }
/* Scrolling inside a long dialog (e.g. the promotion form) still works by touch/wheel - this
   just hides the track itself, since a visible scrollbar eats into the right-hand padding only,
   making that side look narrower than the left. */
.oml-dialog::-webkit-scrollbar { display: none; }
.oml-dialog::backdrop { background: rgba(31, 18, 38, 0.68); }
.oml-dialog__body { padding: 24px; position: relative; }
/* Without an explicit column size, a grid's single implicit column auto-sizes to the widest
   content any child would need if nothing inside it ever wrapped - a flex row with a <select>
   in it (like each day in the promotion form) counts as "wide", so the grid quietly grows
   past the dialog's own width instead of letting that child wrap. minmax(0, 1fr) caps the
   column at the space actually available, so children are forced to wrap/shrink inside it
   instead of pushing the whole form past the dialog's right edge. */
.oml-dialog__body form, form.oml-dialog__body { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
.oml-dialog__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.oml-dialog__close { background: transparent; border: 0; color: var(--oml-color-muted); cursor: pointer; font-size: 24px; align-items: center; display: inline-flex; justify-content: center; line-height: 1; min-height: 44px; min-width: 44px; padding: 4px 8px; position: absolute; right: 6px; top: 6px; }
.oml-dialog__close:hover { color: var(--oml-color-charcoal); }

/* Phone: dialogs slide up as bottom sheets. Larger screens keep the centred modal. */
@keyframes oml-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 560px) {
	.oml-dialog { animation: oml-sheet-up 0.25s ease-out; border-radius: 28px 28px 0 0; bottom: 0; left: 0; max-height: 92%; max-width: 100%; top: auto; transform: none; width: 100%; }
	.oml-dialog__body { padding: 28px 20px calc(24px + var(--oml-safe-bottom)); }
	.oml-dialog__body::before { background: #d8d3e6; border-radius: 9px; content: ""; height: 5px; left: 50%; position: absolute; top: 10px; transform: translateX(-50%); width: 44px; }
	.oml-dialog__close { top: 10px; }
	.oml-dialog__actions > .oml-button { flex: 1 1 auto; }
}
.oml-is-mobile .oml-dialog { animation: oml-sheet-up 0.25s ease-out; border-radius: 28px 28px 0 0; bottom: 0; left: 0; max-height: 92%; max-width: 100%; top: auto; transform: none; width: 100%; }
.oml-is-mobile .oml-dialog__body { padding: 28px 20px calc(24px + var(--oml-safe-bottom)); }
.oml-is-mobile .oml-dialog__body::before { background: #d8d3e6; border-radius: 9px; content: ""; height: 5px; left: 50%; position: absolute; top: 10px; transform: translateX(-50%); width: 44px; }
.oml-is-mobile .oml-dialog__close { top: 10px; }
.oml-is-mobile .oml-dialog__actions > .oml-button { flex: 1 1 auto; }
@media (prefers-reduced-motion: reduce) { .oml-dialog, .oml-is-mobile .oml-dialog { animation: none; } }

/* The site's own "Are you sure?" and "type an answer" box. */
/* The narrower centred box is for computers; on a phone these use the same full-width bottom sheet as every other dialog. */
@media (min-width: 561px) { html:not(.oml-is-mobile) .oml-ask.oml-dialog { max-width: min(440px, calc(100% - 32px)); } }
.oml-ask h2 { font-size: 20px; margin: 0 40px 8px 0; }
.oml-ask__message { color: var(--oml-color-muted); margin: 0 0 4px; }
.oml-ask__field { margin-top: 12px; }
.oml-ask .oml-dialog__actions { margin-top: 20px; }
.oml-ask .oml-dialog__actions .oml-button { flex: 1 1 0; }

/* Long pop-ups (a promotion, an item, the cart) show a slim scroll bar down the side so it is clear they scroll. */
.oml-dialog { scrollbar-color: #8a7bb8 #ece9f5; scrollbar-width: thin; }
.oml-dialog::-webkit-scrollbar { display: block; width: 10px; }
.oml-dialog::-webkit-scrollbar-track { background: #ece9f5; border-radius: 10px; margin: 12px 0; }
.oml-dialog::-webkit-scrollbar-thumb { background: #8a7bb8; border: 2px solid #ece9f5; border-radius: 10px; }
.oml-dialog::-webkit-scrollbar-thumb:hover { background: #6a5b94; }

/* The fixed top bar of the set-up pop-ups: back arrow, heading, close cross. The content scrolls underneath it. */
.oml-dialog--bar { padding: 0; }
.oml-dialog__bar { align-items: center; background: #fff; border-bottom: 1px solid var(--oml-color-line); display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; min-height: 60px; padding: 0 8px; position: sticky; top: 0; z-index: 6; }
.oml-dialog__bar-title { color: var(--oml-color-charcoal); font-family: var(--oml-font-display); font-size: 17px; font-weight: 700; margin: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.oml-dialog__bar-button { align-items: center; background: transparent; border: 0; border-radius: 50%; color: var(--oml-color-charcoal); cursor: pointer; display: inline-flex; font-size: 28px; height: 44px; justify-content: center; line-height: 1; width: 44px; }
.oml-dialog__bar-button:hover { background: var(--oml-color-primary-tint); }
.oml-dialog--bar > .oml-dialog__body { padding-top: 18px; }
.oml-dialog--bar .oml-dialog__body > .oml-dialog__close, .oml-dialog--bar .oml-dialog__body::before { display: none; }
.oml-dialog--bar .oml-dialog__heading-hidden { display: none; }
.oml-is-mobile .oml-dialog--bar > .oml-dialog__body { padding-top: 16px; }
