.oml-label { display: block; font-size: 14px; font-weight: 800; margin-bottom: var(--oml-space-2); }
.oml-input, .oml-select, .oml-textarea { background: var(--oml-color-white); border: 2px solid var(--oml-color-line); border-radius: var(--oml-radius-small); color: var(--oml-color-charcoal); min-height: 50px; padding: 12px 14px; width: 100%; }
.oml-input:focus, .oml-select:focus, .oml-textarea:focus { border-color: var(--oml-color-primary-dark); box-shadow: 0 0 0 3px rgba(106, 91, 148, 0.25); outline: none; }

/* The show/hide eye sits inside the password field, on its right. Any message under the field stays below it. */
.oml-password-field { display: block; position: relative; }
.oml-password-field .oml-input { padding-right: 52px; }
.oml-password-field input::-ms-reveal, .oml-password-field input::-ms-clear { display: none; }
.oml-password-toggle { align-items: center; background: transparent; border: 0; border-radius: var(--oml-radius-small); color: var(--oml-color-muted); cursor: pointer; display: flex; height: 50px; justify-content: center; padding: 0; position: absolute; right: 2px; top: 0; width: 46px; }
.oml-password-toggle:hover { color: var(--oml-color-primary-dark); }
.oml-password-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(106, 91, 148, 0.25); outline: none; }
.oml-password-toggle[aria-pressed="true"] { color: var(--oml-color-primary-dark); }
.oml-textarea { min-height: 128px; resize: vertical; }
/* Hint text inside a field (for example the 20 in "How far do you deliver?") is lighter than what a person types. */
.oml-input::placeholder, .oml-textarea::placeholder { color: #b3adc2; opacity: 1; }
.oml-input[aria-invalid="true"], .oml-select[aria-invalid="true"], .oml-textarea[aria-invalid="true"] { border-color: var(--oml-color-danger); }
.oml-help, .oml-error { font-size: 13px; margin: var(--oml-space-2) 0 0; }
.oml-help { color: var(--oml-color-muted); }
.oml-help-list { color: var(--oml-color-muted); display: grid; gap: 4px; margin: 0; padding-left: 20px; }
.oml-error { color: var(--oml-color-danger); font-weight: 700; }
.oml-input[type="date"], .oml-input[type="datetime-local"], .oml-input[type="time"], input[type="checkbox"], input[type="radio"] { accent-color: var(--oml-color-primary); }
.oml-input[type="date"]::-webkit-calendar-picker-indicator, .oml-input[type="datetime-local"]::-webkit-calendar-picker-indicator, .oml-input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(48%) sepia(59%) saturate(468%) hue-rotate(93deg) brightness(94%) contrast(92%); }
/* A native file input's own "Choose File" control has an intrinsic minimum
   render width in Chrome that width/max-width cannot shrink below, so it's
   wrapped in an overflow:hidden box to clip it rather than let it force the
   row (and dialog) wider than the card. */
.oml-upload-row { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.oml-upload-row__file { flex: 1 1 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.oml-upload-row__file .oml-input { width: 100%; }
.oml-upload-row .oml-button { flex: 0 0 auto; width: auto; }
.oml-fieldset
{
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
	display: grid;
	gap: 0.5rem;
}
.oml-input[aria-invalid="true"], .oml-select[aria-invalid="true"], .oml-textarea[aria-invalid="true"], .oml-field--invalid
{
	border-color: var(--oml-color-danger);
	background-color: color-mix(in srgb, var(--oml-color-danger) 8%, #ffffff);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--oml-color-danger) 18%, transparent);
}
[data-field].oml-field--invalid
{
	border: 1px solid var(--oml-color-danger);
	border-radius: 0.75rem;
	padding: 0.75rem;
	box-shadow: none;
}
.oml-field-error
{
	display: block;
	margin-top: 0.35rem;
	color: var(--oml-color-danger);
	font-size: 0.875rem;
	font-weight: 700;
}

.oml-check--school { align-items: center; }
.oml-check__icon { color: var(--oml-color-primary); flex: 0 0 auto; }

/* The site's own pick-list: a button that looks like a field, and the sheet it opens. */
.oml-select--native { border: 0 !important; clip: rect(0 0 0 0); height: 1px !important; margin: 0 !important; min-height: 0 !important; opacity: 0; overflow: hidden; padding: 0 !important; pointer-events: none; position: absolute !important; width: 1px !important; }
.oml-select-trigger { align-items: center; cursor: pointer; display: flex; font: inherit; gap: 10px; justify-content: space-between; text-align: left; }
.oml-select-trigger__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oml-select-trigger svg { color: var(--oml-color-muted); flex-shrink: 0; }
.oml-select-trigger--empty .oml-select-trigger__text { color: var(--oml-color-muted); }
.oml-select-trigger:disabled { cursor: not-allowed; opacity: 0.55; }
.oml-select-trigger[aria-invalid="true"] { background-color: color-mix(in srgb, var(--oml-color-danger) 8%, #ffffff); border-color: var(--oml-color-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oml-color-danger) 18%, transparent); }
@media (min-width: 561px) { html:not(.oml-is-mobile) .oml-sheet.oml-dialog { max-width: min(440px, calc(100% - 32px)); } }
.oml-sheet h2 { font-size: 20px; margin: 0 40px 14px 0; }
.oml-sheet__list { display: grid; gap: 6px; max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.oml-sheet__group { display: grid; gap: 6px; }
.oml-sheet__group-name { color: var(--oml-color-muted); font-size: 13px; font-weight: 700; margin: 8px 4px 0; }
.oml-sheet__option { align-items: center; background: var(--oml-color-white); border: 2px solid var(--oml-color-line); border-radius: var(--oml-radius-small); color: var(--oml-color-charcoal); cursor: pointer; display: flex; font: 600 16px var(--oml-font-body); gap: 12px; justify-content: space-between; min-height: 52px; padding: 10px 14px; text-align: left; width: 100%; }
.oml-sheet__option:hover { border-color: var(--oml-color-primary-light); }
.oml-sheet__option:focus-visible { border-color: var(--oml-color-primary-dark); box-shadow: 0 0 0 3px rgba(106, 91, 148, 0.25); outline: none; }
.oml-sheet__option[aria-selected="true"] { background: var(--oml-color-primary-tint); border-color: var(--oml-color-primary); color: var(--oml-color-primary-dark); }
.oml-sheet__option--empty { color: var(--oml-color-muted); }
.oml-sheet__option:disabled { cursor: not-allowed; opacity: 0.45; }
.oml-sheet__check { align-items: center; color: var(--oml-color-primary); display: inline-flex; flex-shrink: 0; height: 20px; justify-content: center; width: 20px; }

/* Shown on the payment screen: store credit only. */
.oml-pay-notice { background: var(--oml-color-surface-warm, #fbfaff); border: 1px solid var(--oml-color-line); border-radius: var(--oml-radius-medium); font-size: 14px; margin: 12px 0; padding: 12px 14px; }
.oml-pay-notice p { margin: 0 0 6px; }
.oml-storefront-note { align-items: flex-start; background: #f6f3fb; border: 1px solid rgba(85, 72, 121, 0.18); border-left: 5px solid var(--oml-color-primary); border-radius: var(--oml-radius-medium); box-shadow: 0 1px 2px rgba(43, 36, 56, 0.06); color: var(--oml-color-ink); display: flex; font-size: 14px; gap: 12px; margin: 0 0 16px; padding: 14px 44px 14px 14px; position: relative; }
.oml-storefront-note[hidden] { display: none; }
.oml-storefront-note__icon { align-items: center; background: var(--oml-color-white); border-radius: 50%; color: var(--oml-color-primary-dark); display: inline-flex; flex: 0 0 auto; height: 38px; justify-content: center; width: 38px; }
.oml-storefront-note__body { min-width: 0; }
.oml-storefront-note__title { font-size: 16px; margin: 2px 0 6px; }
.oml-storefront-note__list { display: grid; gap: 6px; line-height: 1.45; margin: 0; padding-left: 18px; }
.oml-storefront-note__close { align-items: center; background: transparent; border: 0; border-radius: 50%; color: var(--oml-color-muted); cursor: pointer; display: inline-flex; font-size: 24px; height: 34px; justify-content: center; line-height: 1; position: absolute; right: 6px; top: 6px; width: 34px; }
.oml-storefront-note__close:hover { background: rgba(43, 36, 56, 0.08); color: var(--oml-color-charcoal); }
.oml-storefront-note__close:focus-visible { outline: 3px solid var(--oml-color-primary); outline-offset: 1px; }
@media (max-width: 420px) { .oml-storefront-note__icon { display: none; } }
.oml-pay-notice p:last-child { color: var(--oml-color-muted); margin: 0; }

/* "Good to know" starts folded: one tidy line, opens on a tap. */
.oml-storefront-note--collapsed { align-items: center; padding-bottom: 6px; padding-top: 6px; }
.oml-storefront-note__toggle { align-items: center; background: transparent; border: 0; color: inherit; cursor: pointer; display: flex; font: inherit; gap: 12px; min-height: 40px; padding: 0; text-align: left; width: 100%; }
.oml-storefront-note__toggle .oml-storefront-note__title { flex: 1; margin: 0; }
.oml-storefront-note__chevron { color: var(--oml-color-muted); display: inline-flex; transition: transform 0.2s; }
.oml-storefront-note__toggle[aria-expanded="true"] .oml-storefront-note__chevron { transform: rotate(180deg); }
.oml-storefront-note__toggle:focus-visible { outline: 3px solid var(--oml-color-primary); outline-offset: 2px; border-radius: var(--oml-radius-small); }
.oml-storefront-note { flex-wrap: wrap; }
.oml-storefront-note__body { flex: 1 0 100%; padding-top: 6px; }
.oml-storefront-note__body[hidden] { display: none; }
.oml-storefront-note__title { font-size: 16px; font-weight: 700; }
@media (max-width: 420px) { .oml-storefront-note__icon { display: inline-flex; } }

/* A delete button that cannot be used right now: greyed out, and its tooltip says why. */
.oml-icon-button--unavailable, .oml-icon-button--unavailable:hover { background: #ece9f2; border-color: transparent; color: #a39cb5; cursor: not-allowed; opacity: 0.8; transform: none; }
.oml-icon-button.oml-icon-button--danger.oml-icon-button--unavailable, .oml-icon-button.oml-icon-button--danger.oml-icon-button--unavailable:hover { background: #e4e1ea; color: #9d97ad; }

.oml-pop { background: var(--oml-color-white); border: 2px solid var(--oml-color-line); border-radius: 18px; box-shadow: 0 16px 40px rgba(46, 38, 74, 0.18); display: grid; gap: 4px; overflow-y: auto; overscroll-behavior: contain; padding: 8px; position: fixed; z-index: 2000; }
.oml-pop .oml-sheet__option { border-color: transparent; border-radius: 12px; min-height: 40px; }
.oml-pop .oml-sheet__option:hover { background: var(--oml-color-primary-tint); border-color: transparent; }
.oml-pop .oml-sheet__option[aria-selected="true"] { border-color: var(--oml-color-primary); }
.oml-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* A saved private number (the ID number) shows as dots and its last four digits, in full-strength text rather than a faded example. */
.oml-input--saved::placeholder { color: var(--oml-color-charcoal); letter-spacing: 0.08em; opacity: 1; }

/* Admin Tests tab: a collapsible box per test, with a plain log that can be copied. */
.oml-test-box { border: 1px solid var(--oml-color-line); border-radius: var(--oml-radius-medium); margin-top: var(--oml-space-3); }
.oml-test-box > summary { cursor: pointer; font-family: var(--oml-font-display); font-size: 17px; font-weight: 700; list-style: none; padding: 14px 18px; }
.oml-test-box > summary::-webkit-details-marker { display: none; }
.oml-test-box > summary::after { content: "+"; float: right; font-size: 22px; line-height: 1; }
.oml-test-box[open] > summary::after { content: "\2212"; }
.oml-test-box__body { border-top: 1px solid var(--oml-color-line); padding: 14px 18px 18px; }
.oml-test-box__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.oml-test-box__actions .oml-button { width: auto; }
.oml-test-log { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; overflow: auto; resize: vertical; white-space: pre; }

/* The picture placing pop-up (kitchen logo): a square editing area, a frame that shows what is kept, a zoom slider. */
.oml-cropper .oml-dialog__body { max-width: 440px; }
.oml-cropper__stage { background-color: #fff; background-image: linear-gradient(45deg, #ece9f2 25%, transparent 25%, transparent 75%, #ece9f2 75%), linear-gradient(45deg, #ece9f2 25%, transparent 25%, transparent 75%, #ece9f2 75%); background-position: 0 0, 8px 8px; background-size: 16px 16px; border: 1px solid var(--oml-color-line); border-radius: var(--oml-radius-medium); cursor: grab; margin: 14px auto 12px; max-width: 380px; overflow: hidden; position: relative; touch-action: none; user-select: none; width: 100%; aspect-ratio: 1; }
.oml-cropper__stage:active { cursor: grabbing; }
.oml-cropper__stage:focus-visible { outline: 3px solid var(--oml-color-primary); outline-offset: 2px; }
.oml-cropper__stage canvas { display: block; }
.oml-cropper__frame { border: 2px solid var(--oml-color-primary-dark); border-radius: 18%; box-shadow: 0 0 0 999px rgba(255, 255, 255, 0.72); pointer-events: none; position: absolute; }
.oml-cropper__zoom { align-items: center; display: flex; gap: 10px; margin: 0 auto; max-width: 380px; }
.oml-cropper__zoom input[type="range"] { flex: 1; min-width: 0; }
.oml-cropper__zoom .oml-icon-button { flex: none; font-size: 22px; height: 44px; line-height: 1; width: 44px; }
/* Fit to square on the left, Save on the right. */
.oml-cropper__actions { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin: 18px auto 4px; max-width: 380px; }
.oml-cropper__actions .oml-button { flex: 0 1 auto; width: auto; }

/* Saved cards: the "Pay with" choices in the cart and the Saved cards section of the account page. */
.oml-cart-cards { border: 0; display: grid; gap: 8px; margin: 12px 0 0; min-width: 0; padding: 0; }
.oml-cart-cards__list { display: grid; gap: 8px; }
.oml-cart-cards__option { align-items: center; background: var(--oml-color-surface, #fff); border: 1px solid var(--oml-color-line); border-radius: var(--oml-radius-medium); cursor: pointer; display: flex; gap: 12px; min-height: 56px; padding: 10px 14px; }
.oml-cart-cards__option:has(input:checked) { border-color: var(--oml-color-primary); box-shadow: 0 0 0 1px var(--oml-color-primary); }
.oml-cart-cards__option:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
.oml-cart-cards__option input { flex: none; height: 20px; margin: 0; width: 20px; }
.oml-cart-cards__option span { display: grid; gap: 2px; }
.oml-cart-cards__option small { color: var(--oml-color-muted); font-size: 13px; }
.oml-cart-save { align-items: flex-start; margin: 12px 0 0; }
.oml-cart-save input { flex: none; height: 20px; margin: 2px 0 0; width: 20px; }
.oml-cart-save span { display: grid; gap: 2px; }
.oml-cart-save small { color: var(--oml-color-muted); font-size: 13px; line-height: 1.4; }
.oml-cards-list { display: grid; gap: 10px; list-style: none; margin: 12px 0; padding: 0; }
.oml-cards-list__item { align-items: center; border: 1px solid var(--oml-color-line); border-radius: var(--oml-radius-medium); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 12px 14px; }
.oml-cards-list__info { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.oml-cards-list__info span:not(.oml-status-pill) { color: var(--oml-color-muted); font-size: 14px; }
.oml-cards-list__actions { align-items: center; display: flex; gap: 16px; }
.oml-link-button--danger { color: #a4262c; }
.oml-cards-safe { background: var(--oml-color-surface-warm, #fbfaff); border: 1px solid var(--oml-color-line); border-radius: var(--oml-radius-medium); font-size: 14px; margin-top: 12px; padding: 12px 14px; }
.oml-cards-safe p { margin: 0 0 6px; }
.oml-cards-safe ul { margin: 0; padding-left: 20px; }
.oml-cards-safe li { color: var(--oml-color-muted); margin-bottom: 4px; }
@media (min-width: 900px) { .oml-cards-list { max-width: 640px; } .oml-cards-safe { max-width: 640px; } }
.oml-card--readonly { opacity: 0.92; }
.oml-card--readonly .oml-input, .oml-card--readonly .oml-select { background: var(--oml-color-surface-muted, #f6f4fa); cursor: default; }
.oml-fulfil-setting { color: var(--oml-color-purple, #6A5B94); font-weight: 600; }
