/* RqDate (WED-224): own date, month and time fields, see public/shared/datefield.js. Same look as the checkout
   calendar (WED-115): the field is a button with the date in words; the calendar is a popover under it on wide screens
   and a sheet from the bottom on phones. Tokens only (accent via --accent*), full borders only. */
.rq-dp { position: relative; width: 100%; }
.rq-dp:not(.rq-dp--sm) { container-type: inline-size; }
.rq-dp__v--short { display: none; }
@container (max-width: 250px) { .rq-dp__v:not(.rq-dp__v--short) { display: none; } .rq-dp__v--short { display: block; } }
.rq-dp .rq-dp__native, .rq-dp__native { position: absolute !important; inset: auto auto 0 0; width: 1px !important; height: 1px !important; min-height: 0 !important; opacity: 0; pointer-events: none; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.rq-dp__btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 14px 0 16px; border-radius: var(--radius-2, 6px); border: 1px solid var(--rule-strong, #cfc6b6); background: var(--ivory, #fffdf8); color: var(--ink, #1c1a16); font: inherit; font-size: var(--step-0, 16px); text-align: left; cursor: pointer; transition: border-color var(--dur-1, 160ms) ease, box-shadow var(--dur-1, 160ms) ease; -webkit-tap-highlight-color: transparent; }
.rq-dp__btn:hover { border-color: var(--ink-3, #8a8273); }
.rq-dp__btn:focus-visible, .rq-dp__btn[aria-expanded="true"] { outline: none; border-color: var(--accent, #561623); box-shadow: var(--ring, 0 0 0 3px rgba(86, 22, 35, .2)); }
.rq-dp__btn[aria-invalid="true"] { border-color: var(--danger, #8a3b2e); }
.rq-dp__btn:disabled { opacity: .55; cursor: not-allowed; }
.rq-dp__v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-dp__btn.is-empty .rq-dp__v { color: var(--ink-3, #8a8273); }
.rq-dp__i { flex: none; color: var(--accent-text, #561623); }
.rq-dp__pop[hidden] { display: none; }
.rq-dp__scrim { position: fixed; inset: 0; z-index: 70; }
.rq-dp__panel { position: absolute; z-index: 71; top: calc(100% + 8px); left: 0; width: 344px; max-width: calc(100vw - 32px); padding: 16px 16px 10px; background: var(--ivory, #fffdf8); border: 1px solid var(--rule, #e4ddd0); border-radius: var(--radius-3, 14px); box-shadow: var(--shadow-3, 0 18px 48px rgba(28, 26, 22, .18)); text-align: center; color: var(--ink, #1c1a16); opacity: 0; transform: translateY(-6px); transition: opacity var(--dur-2, 240ms) var(--ease-out, ease), transform var(--dur-2, 240ms) var(--ease-out, ease); }
.rq-dp__pop.is-on .rq-dp__panel { opacity: 1; transform: none; }
.rq-dp__grab, .rq-dp__eyebrow { display: none; }
.rq-dp__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 8px; }
.rq-dp__title { margin: 0; font-family: var(--font-display, Georgia, serif); font-weight: 400; font-size: var(--step-2, 22px); line-height: 1.2; }
.rq-dp__y { font-style: italic; font-weight: 300; color: var(--accent-text, #561623); }
.rq-dp__nav { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2, #4a453c); cursor: pointer; }
.rq-dp__nav:hover:not(:disabled) { background: var(--paper-2, #efe8da); color: var(--ink, #1c1a16); }
.rq-dp__nav:focus-visible { outline: none; box-shadow: var(--ring, 0 0 0 3px rgba(86, 22, 35, .2)); }
.rq-dp__nav:disabled { opacity: .3; cursor: default; }
.rq-dp__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rq-dp__grid th { padding: 6px 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--ink-3, #8a8273); }
.rq-dp__grid td { padding: 2px 0; text-align: center; }
.rq-dp__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rq-dp__d, .rq-dp__m { position: relative; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; font-family: var(--font-display, Georgia, serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink, #1c1a16); cursor: pointer; }
.rq-dp__d { width: 42px; height: 42px; border-radius: 50%; font-size: 17px; }
.rq-dp__months { display: grid; gap: 6px; padding: 4px 0; }
.rq-dp__mrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rq-dp__m { width: 100%; height: 48px; border-radius: var(--radius-pill, 999px); font-size: 17px; }
.rq-dp__d:hover:not(:disabled), .rq-dp__m:hover:not(:disabled) { background: var(--accent-soft, #f3e6e8); }
.rq-dp__d:focus-visible, .rq-dp__m:focus-visible { outline: none; border-color: var(--accent, #561623); box-shadow: var(--ring, 0 0 0 3px rgba(86, 22, 35, .2)); }
.rq-dp__d.is-today { font-weight: 600; color: var(--accent-text, #561623); }
.rq-dp__d.is-today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.rq-dp__d.is-sel, .rq-dp__d.is-sel:hover, .rq-dp__m.is-sel, .rq-dp__m.is-sel:hover { background: var(--accent, #561623); border-color: var(--accent, #561623); color: var(--accent-ink, #fbf8f2); }
.rq-dp__d:disabled, .rq-dp__m:disabled { color: var(--ink-3, #8a8273); opacity: .4; cursor: default; }
.rq-dp__foot { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.rq-dp__link { border: 0; background: transparent; font: inherit; font-size: var(--step--1, 14px); color: var(--ink-3, #8a8273); padding: 8px 12px; border-radius: var(--radius-pill, 999px); cursor: pointer; }
.rq-dp__link:hover { color: var(--ink, #1c1a16); }
.rq-dp__link:focus-visible { outline: none; box-shadow: var(--ring, 0 0 0 3px rgba(86, 22, 35, .2)); }
.rq-sel--time .rq-sel__btn { font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  html.rq-dp-open { overflow: hidden; }
  .rq-dp__scrim { background: var(--overlay, rgba(28, 26, 22, .42)); opacity: 0; transition: opacity var(--dur-2, 240ms) ease; }
  .rq-dp__pop.is-on .rq-dp__scrim { opacity: 1; }
  .rq-dp__panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: var(--radius-3, 14px) var(--radius-3, 14px) 0 0; transform: translateY(24px); }
  .rq-dp__grab { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: var(--radius-pill, 999px); background: var(--rule-strong, #cfc6b6); }
  .rq-dp__eyebrow { display: block; margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, #8a8273); }
  .rq-dp__title { font-size: var(--step-3, 26px); }
  .rq-dp__d { width: min(48px, 12.5vw); height: min(48px, 12.5vw); font-size: 19px; }
  .rq-dp__link { font-size: var(--step-0, 16px); padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) { .rq-dp__panel, .rq-dp__scrim, .rq-dp__btn { transition: none; } }
.rq-dp--sm { display: inline-block; width: auto; vertical-align: middle; }
.rq-dp--sm .rq-dp__btn { min-height: 36px; padding: 0 10px 0 12px; font-size: 14px; }
