/* Wild Rosemary Reservations: guest-facing styles.
   Fonts come from your theme. The accent color is set in Reservations → Settings. */

.wr-app {
	--wr-accent: #3d5638;
	--wr-ink: currentColor;
	--wr-muted: color-mix(in srgb, currentColor 60%, transparent);
	--wr-line: color-mix(in srgb, currentColor 16%, transparent);
	--wr-soft: color-mix(in srgb, currentColor 5%, transparent);
	--wr-accent-soft: color-mix(in srgb, var(--wr-accent) 12%, transparent);
	--wr-warn: #a8553a;
	--wr-radius: 10px;
	max-width: 880px;
	margin: 0 auto;
	line-height: 1.55;
}
.wr-app *, .wr-app *::before, .wr-app *::after { box-sizing: border-box; }
.wr-app [hidden] { display: none !important; }
.wr-app h2, .wr-app h3 { margin: 0; line-height: 1.15; }

.wr-loading, .wr-empty { text-align: center; color: var(--wr-muted); padding: 32px 0; }
.wr-muted { color: var(--wr-muted); }
.wr-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--wr-muted); }
.wr-about { text-align: center; color: var(--wr-muted); max-width: 520px; margin: 0 auto 28px; }

.wr-testbar {
	background: #fff3c4; color: #5c4800; border-radius: 8px; padding: 10px 14px;
	font-size: 14px; margin-bottom: 24px; text-align: center;
}

/* Night picker */
.wr-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.wr-heading h2 { font-size: 1.75em; }
.wr-nights { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.wr-app .wr-night {
	all: unset; box-sizing: border-box; cursor: pointer; text-align: center;
	border: 1px solid var(--wr-line); border-radius: var(--wr-radius); padding: 12px 8px;
	background: var(--wr-soft); color: inherit; font: inherit; transition: border-color .15s, transform .15s;
}
.wr-app .wr-night:hover:not(:disabled) { border-color: var(--wr-accent); transform: translateY(-1px); }
.wr-app .wr-night:focus-visible { outline: 2px solid var(--wr-accent); outline-offset: 2px; }
.wr-app .wr-night:disabled { opacity: .45; cursor: not-allowed; }
.wr-app .wr-night[aria-pressed="true"] { background: var(--wr-accent); border-color: var(--wr-accent); color: #fff; }
.wr-night .wr-dow { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.wr-night .wr-day { display: block; font-size: 30px; line-height: 1.15; font-weight: 600; }
.wr-night .wr-mon { display: block; font-size: 13px; }
.wr-night .wr-left { display: block; font-size: 12px; margin-top: 6px; opacity: .85; }

/* Menu + form */
.wr-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; margin-top: 32px; scroll-margin-top: 90px; }
@media (max-width: 720px) { .wr-panel { grid-template-columns: 1fr; } }
.wr-card { border: 1px solid var(--wr-line); border-radius: var(--wr-radius); padding: 24px; background: var(--wr-soft); }
.wr-menu h3 { font-size: 1.6em; margin: 6px 0 12px; }
.wr-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: wr; }
.wr-menu li { counter-increment: wr; display: flex; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--wr-line); margin: 0; }
.wr-menu li::before { content: counter(wr, upper-roman); color: var(--wr-muted); min-width: 26px; }
.wr-price { margin-top: 12px; font-size: 14px; color: var(--wr-muted); }

.wr-app label.wr-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 5px; }
.wr-app .wr-input {
	display: block; width: 100%; max-width: none; margin: 0; padding: 10px 12px; font: inherit; font-size: 16px;
	color: inherit; background: rgba(255,255,255,.85); border: 1px solid var(--wr-line); border-radius: 8px; box-shadow: none;
}
.wr-app textarea.wr-input { min-height: 72px; resize: vertical; }
.wr-app .wr-input:focus { outline: 2px solid var(--wr-accent-soft); border-color: var(--wr-accent); }
.wr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .wr-row { grid-template-columns: 1fr; } }
.wr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.wr-summary { background: var(--wr-accent-soft); border-radius: 8px; padding: 12px 16px; margin-top: 18px; font-size: 14px; }
.wr-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-top: 2px; }
.wr-app .wr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 14px; font-weight: 400; }
.wr-app .wr-check input { margin-top: 4px; width: auto; flex: none; }

.wr-app .wr-btn {
	display: inline-block; width: 100%; margin-top: 18px; padding: 13px 20px; cursor: pointer; text-align: center;
	background: var(--wr-accent); color: #fff; border: 0; border-radius: 999px;
	font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.3; text-transform: none; letter-spacing: normal;
}
.wr-app .wr-btn:hover { filter: brightness(.9); color: #fff; }
.wr-app .wr-btn:disabled { opacity: .55; cursor: wait; }
.wr-app .wr-btn.wr-ghost { background: transparent; color: var(--wr-accent); border: 1px solid var(--wr-accent); }
.wr-error { color: var(--wr-warn); font-size: 14px; margin-top: 10px; min-height: 1em; }

/* Booking details */
.wr-narrow { max-width: 560px; margin: 0 auto; }
.wr-details h2 { font-size: 2em; margin: 6px 0 4px; }
.wr-notice { border-left: 3px solid var(--wr-accent); background: var(--wr-accent-soft); padding: 10px 14px; border-radius: 4px; font-size: 14px; margin-top: 18px; }
.wr-notice.wr-warn { border-color: var(--wr-warn); background: color-mix(in srgb, var(--wr-warn) 12%, transparent); }
.wr-facts { margin: 18px 0 0; padding: 0; border-top: 1px solid var(--wr-line); }
.wr-facts div { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--wr-line); font-size: 15px; }
.wr-facts dt { width: 90px; flex: none; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--wr-muted); padding-top: 2px; }
.wr-facts dd { margin: 0; }

/* Test checkout */
.wr-checkout { max-width: 420px; margin: 0 auto; text-align: left; }
.wr-checkout .wr-amt { font-size: 40px; font-weight: 700; margin: 12px 0 2px; }
.wr-fake { border: 1px dashed var(--wr-line); border-radius: 8px; padding: 12px; font-size: 14px; color: var(--wr-muted); margin: 16px 0 0; }

/* ---------- Tabs: Upcoming dinners | Find a date */
.wr-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 auto 24px; width: max-content; max-width: 100%; border: 1px solid var(--wr-line); border-radius: 999px; }
.wr-app .wr-tab { all: unset; cursor: pointer; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; color: inherit; }
.wr-app .wr-tab[aria-selected="true"] { background: var(--wr-accent); color: #fff; }
.wr-app .wr-tab:focus-visible { outline: 2px solid var(--wr-accent); outline-offset: 2px; }

/* ---------- Upcoming dinners poster */
.wr-poster-head { text-align: center; margin-bottom: 20px; }
.wr-poster-title { font-size: clamp(30px, 5vw, 44px); margin: 0; }
.wr-poster-sub { margin: 6px 0 0; color: var(--wr-muted); font-style: italic; letter-spacing: .04em; }
.wr-poster-foot { text-align: center; color: var(--wr-muted); font-style: italic; margin: 22px 0 0; letter-spacing: .04em; }
.wr-dinners { display: grid; gap: 14px; }
.wr-dinner {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden;
	border: 1px solid var(--wr-line); border-radius: var(--wr-radius); background: var(--wr-soft);
}
.wr-dinner.wr-noimg { grid-template-columns: 1fr; border-left: 4px solid var(--wr-accent); }
/* The picture is always shown whole, at its own shape (banner, menu, poster...). */
.wr-dinner-media { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--wr-accent-soft); line-height: 0; min-height: 100%; }
.wr-media-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(26px) brightness(.85); }
.wr-app .wr-dinner-media img { position: relative; display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; margin: 0; border-radius: 0; box-shadow: none; }
.wr-app a.wr-media-link { cursor: zoom-in; text-decoration: none; }
.wr-app a.wr-media-link:focus-visible { outline: 3px solid var(--wr-accent); outline-offset: -3px; }
.wr-media-cue {
	position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; line-height: 1.3;
	background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; transition: background .15s;
}
.wr-app a.wr-media-link:hover .wr-media-cue { background: rgba(0, 0, 0, .82); }
.wr-dinner-body { padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.wr-dinner-dates { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wr-accent); }
.wr-dinner-title { font-size: clamp(22px, 3.2vw, 30px); margin: 0; line-height: 1.15; }
.wr-dinner-tagline { margin: 0; color: var(--wr-muted); font-style: italic; }
.wr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wr-app .wr-chip {
	all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600;
	border: 1px solid var(--wr-accent); color: var(--wr-accent); background: transparent; text-decoration: none; line-height: 1.3;
}
.wr-app .wr-chip:hover:not(:disabled) { background: var(--wr-accent-soft); }
.wr-app .wr-chip[aria-pressed="true"] { background: var(--wr-accent); color: #fff; }
.wr-app .wr-chip:disabled { opacity: .45; cursor: not-allowed; border-color: var(--wr-line); color: inherit; }
.wr-app .wr-chip:focus-visible { outline: 2px solid var(--wr-accent); outline-offset: 2px; }
.wr-small { font-size: 13px; margin: 8px 0 0; }
@media (max-width: 600px) {
	.wr-dinner { grid-template-columns: 1fr; }
	.wr-app .wr-dinner-media img { max-height: 240px; }
	.wr-media-cue { right: 8px; bottom: 8px; font-size: 12px; padding: 5px 10px; }
	.wr-dinner-body { padding: 14px 16px 16px; }
}

/* ---------- Find a date: month calendar */
.wr-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wr-cal-title { font-size: 1.5em; margin: 0; }
.wr-app .wr-cal-nav { all: unset; cursor: pointer; width: 40px; height: 40px; text-align: center; line-height: 38px; font-size: 24px; border: 1px solid var(--wr-line); border-radius: 50%; }
.wr-app .wr-cal-nav:disabled { opacity: .3; cursor: default; }
.wr-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wr-cal-dow { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--wr-muted); padding: 4px 0; }
.wr-app .wr-cal-cell { all: unset; box-sizing: border-box; min-height: 74px; padding: 6px; border-radius: 8px; display: flex; flex-direction: column; gap: 2px; font: inherit; color: var(--wr-muted); }
.wr-cal-pad { visibility: hidden; }
.wr-cal-num { font-size: 14px; font-weight: 600; }
.wr-app .wr-cal-open { cursor: pointer; color: inherit; border: 1px solid var(--wr-accent); background: var(--wr-accent-soft); }
.wr-app .wr-cal-open:hover:not(:disabled) { filter: brightness(.96); }
.wr-app .wr-cal-open[aria-pressed="true"] { background: var(--wr-accent); color: #fff; }
.wr-app .wr-cal-open:disabled { opacity: .45; cursor: not-allowed; border-color: var(--wr-line); background: transparent; }
.wr-app .wr-cal-open:focus-visible { outline: 2px solid var(--wr-accent); outline-offset: 2px; }
.wr-cal-name { font-size: 12px; font-weight: 600; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wr-cal-left { font-size: 11px; opacity: .85; margin-top: auto; }
@media (max-width: 600px) {
	.wr-cal-grid { gap: 3px; }
	.wr-app .wr-cal-cell { min-height: 54px; padding: 4px; }
	.wr-cal-name { display: none; }
	.wr-cal-left { font-size: 10px; }
}

/* ---------- Dinner card next to the form */
.wr-menu-img { display: block; width: calc(100% + 48px); max-width: none; height: auto; margin: -24px -24px 16px; border-radius: var(--wr-radius) var(--wr-radius) 0 0; }
.wr-menu p { margin: 8px 0; }
.wr-prices { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--wr-line); }
.wr-menu .wr-prices li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 0; border-bottom: 1px solid var(--wr-line); margin: 0; font-size: 15px; font-weight: 600; }
.wr-menu .wr-prices li::before { content: none; display: none; }
.wr-price-note { font-size: 13px; color: var(--wr-muted); }
.wr-poster .wr-dinners { margin: 0; }
@media (max-width: 480px) { .wr-app .wr-tab { padding: 8px 12px; font-size: 14px; } }

/* ---------- View full menu */
.wr-app .wr-menu-link { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--wr-accent); text-decoration: underline; text-underline-offset: 3px; }
.wr-lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1000px); max-height: 96vh; overflow: visible; }
.wr-lightbox::backdrop { background: rgba(0, 0, 0, .78); }
.wr-lightbox img { display: block; max-width: 100%; max-height: calc(96vh - 48px); margin: 0 auto; border-radius: 6px; background: #fff; }
.wr-lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #222; font-size: 26px; line-height: 40px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.wr-lightbox-open { display: block; text-align: center; margin-top: 10px; color: #fff; font-size: 14px; }

/* ---------- Dietary checkboxes */
.wr-diet-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.wr-diet-set legend { padding: 0; }
.wr-diet-row { display: flex; align-items: center; gap: 10px; min-height: 40px; flex-wrap: wrap; }
.wr-app .wr-check.wr-diet-opt { margin: 0; font-size: 15px; display: inline-flex; align-items: center; min-width: 130px; }
.wr-app .wr-check.wr-diet-opt input { margin-top: 0; }
.wr-diet-count { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.wr-diet-count[hidden] { display: none; }
.wr-app .wr-diet-count select.wr-input { width: auto; display: inline-block; padding: 4px 8px; font-size: 15px; }
.wr-app .wr-diet-set legend.wr-label { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; margin: 14px 0 2px; padding: 0; font-family: inherit; color: inherit; float: none; width: auto; }

/* ---------- Waiting list */
.wr-app .wr-chip.wr-chip-wait { border-style: dashed; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.wr-chip-sub { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.wr-app .wr-cal-wait { border-style: dashed; background: transparent; }
.wr-wait-invite { text-align: center; font-size: 14px; color: var(--wr-muted); margin: 18px 0 0; }
.wr-wait-invite a { color: var(--wr-accent); font-weight: 600; }
.wr-wait-panel { margin-top: 28px; scroll-margin-top: 90px; }
.wr-wait-panel h3 { font-size: 1.5em; margin: 0 0 6px; }
.wr-wait-date-info { margin: 8px 0 0; color: var(--wr-muted); }
.wr-wait-date-info.wr-error { color: var(--wr-warn); }
.wr-book-instead { color: var(--wr-accent); font-weight: 600; }
.wr-offer-bar { margin: 0 0 12px; }
.wr-wait-panel > p.wr-muted { font-size: 15px; margin: 0 0 8px; }
.wr-wait-done p { font-size: 15px; }
.wr-arrival-note { font-size: 14px; color: var(--wr-muted); font-style: italic; margin: 4px 0 0; }

/* Live menus (drawn from the site's Menus): banner and full menu are small pages in frames. */
.wr-live-banner { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: #f4ead3; }
.wr-live-banner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.wr-app .wr-dinner-media.wr-live-media { display: block; min-height: 200px; }
.wr-live-banner.wr-live-fill { position: absolute; inset: 0; aspect-ratio: auto; background: transparent; }
.wr-app a.wr-menu-img.wr-live-media { display: block; text-decoration: none; cursor: zoom-in; overflow: hidden; }
.wr-lightbox-live { max-width: none; width: min(96vw, calc((96vh - 48px) * 1.5)); }
.wr-lightbox-live iframe { display: block; width: 100%; aspect-ratio: 3 / 2; border: 0; border-radius: 6px; background: #f4ead3; }
.wr-lightbox-open a { color: #fff; }
@media (max-width: 600px) {
	.wr-app .wr-dinner-media.wr-live-media { min-height: 0; width: 100%; aspect-ratio: 2 / 1; }
}
@media (max-width: 700px) and (orientation: portrait) {
	.wr-lightbox-live { width: 94vw; }
	.wr-lightbox-live iframe { aspect-ratio: auto; height: calc(92vh - 48px); }
}
.wr-app .wr-dinner-media.wr-live-website, .wr-live-website .wr-live-banner { background: #fff; }
.wr-card-prices { margin: 2px 0 8px; font-size: 15px; color: var(--wr-ink, inherit); }
.wr-card-prices strong { font-weight: 600; }
.wr-card-prices .wr-dot { opacity: .5; }

/* "Referred by": the referrer's name and phone */
.wr-app .wr-ref-by { border: 0; margin: 0; padding: 0; min-width: 0; }
.wr-app .wr-ref-by[hidden] { display: none; }
.wr-app .wr-ref-by legend.wr-label { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; margin: 14px 0 0; padding: 0; font-family: inherit; color: inherit; float: none; width: auto; }
.wr-app .wr-ref-by label.wr-label.wr-sub { font-weight: 400; margin-top: 8px; }
