/* The Aisle Bookings — listing CTA + modal + couple dashboard. Mobile-first. */

:root {
	--theaisle-bookings-red: #ED1C24;
	--theaisle-bookings-red-hover: #c41721;
	--theaisle-bookings-pending-bg: #fef3c7;
	--theaisle-bookings-pending-fg: #92400e;
	--theaisle-bookings-confirmed-bg: #dcfce7;
	--theaisle-bookings-confirmed-fg: #166534;
	--theaisle-bookings-declined-bg: #fee2e2;
	--theaisle-bookings-declined-fg: #991b1b;
	--theaisle-bookings-cancelled-bg: #f3f4f6;
	--theaisle-bookings-cancelled-fg: #4b5563;
	--theaisle-bookings-expired-bg: #e2e8f0;
	--theaisle-bookings-expired-fg: #475569;
	--theaisle-bookings-border: #e5e7eb;
	--theaisle-bookings-muted: #6b7280;
	--theaisle-bookings-text: #111827;
	/* Softer card border + red-tinted hover, matched to the bookmarks
	   dashboard card language so both surfaces read as one system. */
	--theaisle-bookings-card-border: #eef0f3;
	--theaisle-bookings-card-hover-border: rgba(237, 28, 36, 0.18);
	--theaisle-bookings-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	--theaisle-bookings-card-shadow-hover: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.theaisle-bookings-cta {
	margin: 24px 0;
	padding: 20px 24px;
	border-radius: 12px;
	background: linear-gradient(135deg, #fff7ed, #fef3c7);
	border: 1px solid #fde68a;
}

.theaisle-bookings-cta__inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

@media (min-width: 640px) {
	.theaisle-bookings-cta__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.theaisle-bookings-cta__title {
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.theaisle-bookings-cta__subtitle {
	margin: 0;
	color: #4b5563;
	font-size: 0.95rem;
}

.theaisle-bookings-cta__open {
	white-space: nowrap;
}

/* ── Booking modal (request form) ─────────────────────────────────────── */

.theaisle-bookings-modal {
	border: none;
	border-radius: 14px;
	padding: 0;
	width: min(560px, 92vw);
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.theaisle-bookings-modal::backdrop {
	background: rgba(15, 23, 42, 0.55);
}

.theaisle-bookings-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--theaisle-bookings-border);
}

.theaisle-bookings-modal__header h2 {
	margin: 0;
	font-size: 1.1rem;
	color: var(--theaisle-bookings-text);
}

/* The italic "Booking" in the title. Same family as the heading; if the
   loaded font has no true italic face, explicitly allow the browser to
   synthesize the slant so the emphasis never silently disappears. */
.theaisle-bookings-modal__header h2 em {
	font-family: inherit;
	font-style: italic;
	font-synthesis: style;
}

.theaisle-bookings-modal__close {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
	color: var(--theaisle-bookings-muted);
}

.theaisle-bookings-modal__close:hover,
.theaisle-bookings-modal__close:focus-visible {
	color: var(--theaisle-bookings-text);
}

.theaisle-bookings-modal__body {
	display: grid;
	gap: 14px;
	padding: 20px;
}

.theaisle-bookings-field {
	display: grid;
	gap: 6px;
	font-size: 0.9rem;
}

.theaisle-bookings-field__label {
	font-weight: 600;
	color: #374151;
}

.theaisle-bookings-field__required {
	color: var(--theaisle-bookings-red);
	margin-left: 2px;
}

/* The hidden attribute must always win — several field wrappers carry
   display rules (grid/flex) that would otherwise override the browser's
   [hidden] default when JS hides fields per vendor category. */
.theaisle-bookings-modal [hidden] {
	display: none !important;
}

/* Inline checkbox row ("My date is flexible"). Undo the block-input
   styling the modal applies to inputs generally. */
.theaisle-bookings-field--checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: -6px;
}

.theaisle-bookings-field--checkbox .theaisle-bookings-field__label {
	font-weight: 400;
}

.theaisle-bookings-modal__body .theaisle-bookings-field--checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	padding: 0;
	margin: 0;
	accent-color: var(--theaisle-bookings-red);
	flex: none;
}

.theaisle-bookings-field-row {
	display: grid;
	gap: 14px;
}

@media (min-width: 520px) {
	.theaisle-bookings-field-row {
		grid-template-columns: 1fr 1fr;
	}
}

.theaisle-bookings-modal__body input,
.theaisle-bookings-modal__body textarea {
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #fff;
	color: var(--theaisle-bookings-text);
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.theaisle-bookings-modal__body input:focus,
.theaisle-bookings-modal__body textarea:focus {
	border-color: var(--theaisle-bookings-red);
	box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15);
	outline: none;
}

/* Distinct grey for placeholders so unfilled fields read as empty rather
   than as already-typed values. Some browsers default to 0.54 opacity on
   the parent color which can muddy this — explicit color + opacity:1
   keeps it consistent. */
.theaisle-bookings-modal__body input::placeholder,
.theaisle-bookings-modal__body textarea::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.theaisle-bookings-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 20px;
	border-top: 1px solid var(--theaisle-bookings-border);
	background: #fafafa;
}

.theaisle-bookings-modal__login {
	margin: 0;
	padding: 24px;
	color: var(--theaisle-bookings-muted);
}

.theaisle-bookings-modal__status {
	min-height: 1.2rem;
	margin: 0;
	font-size: 0.9rem;
	color: var(--theaisle-bookings-muted);
}

.theaisle-bookings-modal__status.is-error {
	color: #b91c1c;
}

.theaisle-bookings-modal__status.is-success {
	color: #15803d;
}

/* Branded submit + secondary cancel (used in request modal). */

.theaisle-bookings-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--theaisle-bookings-red);
	color: #ffffff !important;
	border: none;
	border-radius: 10px;
	padding: 12px 22px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
	box-shadow: 0 1px 2px rgba(237, 28, 36, 0.25);
}

.theaisle-bookings-submit:hover,
.theaisle-bookings-submit:focus-visible {
	background-color: var(--theaisle-bookings-red-hover);
	color: #ffffff !important;
	box-shadow: 0 4px 10px rgba(237, 28, 36, 0.35);
	outline: none;
}

.theaisle-bookings-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	box-shadow: none;
}

.theaisle-bookings-cancel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #fff;
	color: #374151;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 11px 18px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.theaisle-bookings-cancel:hover,
.theaisle-bookings-cancel:focus-visible {
	background-color: #f9fafb;
	border-color: #9ca3af;
	outline: none;
}

/* Destructive footer actions (Cancel request / Cancel booking / Decline)
   get the same danger treatment as the cards, so a booking-ending action
   never looks like the neutral "Close"/"Back" buttons beside it. Targeted
   by their data-attributes; the neutral closers are left untouched. */
.theaisle-bookings-modal__footer .theaisle-bookings-cancel[data-theaisle-cancel],
.theaisle-bookings-modal__footer .theaisle-bookings-cancel[data-theaisle-decline],
.theaisle-bookings-modal__footer .theaisle-bookings-cancel[data-theaisle-vendor-cancel] {
	background-color: #fff;
	color: #b91c1c;
	border-color: #fecaca;
}

.theaisle-bookings-modal__footer .theaisle-bookings-cancel[data-theaisle-cancel]:hover,
.theaisle-bookings-modal__footer .theaisle-bookings-cancel[data-theaisle-cancel]:focus-visible,
.theaisle-bookings-modal__footer .theaisle-bookings-cancel[data-theaisle-decline]:hover,
.theaisle-bookings-modal__footer .theaisle-bookings-cancel[data-theaisle-decline]:focus-visible,
.theaisle-bookings-modal__footer .theaisle-bookings-cancel[data-theaisle-vendor-cancel]:hover,
.theaisle-bookings-modal__footer .theaisle-bookings-cancel[data-theaisle-vendor-cancel]:focus-visible {
	background-color: #fef2f2;
	border-color: #fca5a5;
	color: #991b1b;
}

/* Inline reason form (decline / cancel-booking) in the detail-modal footer. */

.theaisle-bookings-reason {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.theaisle-bookings-reason__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #374151;
}

.theaisle-bookings-reason__input {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.95rem;
	resize: vertical;
}

.theaisle-bookings-reason__status {
	min-height: 1.1rem;
	margin: 0;
	font-size: 0.85rem;
	color: var(--theaisle-bookings-muted);
}

.theaisle-bookings-reason__status.is-error {
	color: #b91c1c;
}

.theaisle-bookings-reason__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Bookmark-row CTA "Book Now" — sized to match the row's sibling action
   buttons (see .theaisle-bookmark-primary-btn in support-system.css) so
   the trio aligns visually. Black so it sits between the white "Add
   Notes" and brand-red icon-only "Remove Bookmark". */

.theaisle-bookings-bookmark-btn {
	background: #ED1C24 !important;
	color: #fff !important;
	font-size: 0.9rem !important;
	font-weight: 600;
	border: 1px solid #ED1C24 !important;
	border-radius: 10px !important;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1rem;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1;
}

.theaisle-bookings-bookmark-btn:hover,
.theaisle-bookings-bookmark-btn:focus-visible {
	background: #c01621 !important;
	border-color: #c01621 !important;
	color: #fff !important;
	outline: none;
}

/* Modal-only CTA host (rendered in wp_footer — no visible chrome of its own). */
.theaisle-bookings-cta--modal-only {
	display: contents;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

/* Quick-action icon rendered inside MyListing's quick-actions carousel. */
.theaisle-bookings-quick-action {
	cursor: pointer;
}

/* ── Pill tab bar on /my-account/bookings/ ────────────────────────────── */

.theaisle-bookings-page {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.theaisle-bookings-pills {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	margin: 0 0 8px;
	padding: 4px 2px;
	border-bottom: 1px solid var(--theaisle-bookings-border);
	scrollbar-width: thin;
}

.theaisle-bookings-pills::-webkit-scrollbar {
	height: 4px;
}

.theaisle-bookings-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 10px 16px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
	white-space: nowrap;
}

.theaisle-bookings-pill:hover,
.theaisle-bookings-pill:focus-visible {
	background: #e5e7eb;
	color: #111827;
	text-decoration: none;
}

.theaisle-bookings-pill.is-active {
	background: #111827;
	color: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.theaisle-bookings-pill.is-active:hover,
.theaisle-bookings-pill.is-active:focus-visible {
	background: #111827;
	color: #fff;
}

.theaisle-bookings-pill i {
	font-size: 1.05rem;
	line-height: 1;
}

.theaisle-bookings-page__content {
	min-height: 200px;
}

.theaisle-bookings-settings-row.is-free-plan .theaisle-bookings-toggle input {
	cursor: not-allowed;
}

.theaisle-bookings-settings-row__hint {
	display: block;
	margin-top: 4px;
	color: #9a3412;
	font-size: 0.85rem;
}

.theaisle-bookings-settings-row__upgrade {
	color: #9a3412;
	font-weight: 600;
	text-decoration: underline;
}

.theaisle-bookings-settings-row__upgrade:hover,
.theaisle-bookings-settings-row__upgrade:focus {
	color: #7c2d12;
	text-decoration: underline;
}

/* ── Couple "My Bookings" tab ─────────────────────────────────────────── */

.theaisle-bookings-tab {
	display: grid;
	gap: 18px;
}

.theaisle-bookings-tab__header {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.theaisle-bookings-tab__header h2 {
	margin: 0;
	font-size: 1.4rem;
	color: var(--theaisle-bookings-text);
}

/* Last word of the heading is wrapped in <em> for a stylised accent. */
.theaisle-bookings-tab__header h2 em {
	font-style: italic;
	font-weight: inherit;
}

.theaisle-bookings-tab__filters {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.theaisle-bookings-filter {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 120ms ease, color 120ms ease;
}

.theaisle-bookings-filter:hover,
.theaisle-bookings-filter:focus-visible {
	background: #e5e7eb;
	color: #111827;
	text-decoration: none;
}

.theaisle-bookings-filter.is-active {
	background: var(--theaisle-bookings-text);
	color: #fff;
}

.theaisle-bookings-filter.is-active:hover,
.theaisle-bookings-filter.is-active:focus-visible {
	background: var(--theaisle-bookings-text);
	color: #fff;
}

.theaisle-bookings-filter__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
	min-width: 18px;
	height: 18px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.08);
	color: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
}

.theaisle-bookings-filter.is-active .theaisle-bookings-filter__count {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* Status badges (shared with detail modal). */

.theaisle-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: var(--theaisle-bookings-cancelled-bg);
	color: var(--theaisle-bookings-cancelled-fg);
}

.theaisle-status--pending {
	background: var(--theaisle-bookings-pending-bg);
	color: var(--theaisle-bookings-pending-fg);
}

.theaisle-status--confirmed {
	background: var(--theaisle-bookings-confirmed-bg);
	color: var(--theaisle-bookings-confirmed-fg);
}

.theaisle-status--declined {
	background: var(--theaisle-bookings-declined-bg);
	color: var(--theaisle-bookings-declined-fg);
}

.theaisle-status--cancelled {
	background: var(--theaisle-bookings-cancelled-bg);
	color: var(--theaisle-bookings-cancelled-fg);
}

.theaisle-status--expired {
	background: var(--theaisle-bookings-expired-bg);
	color: var(--theaisle-bookings-expired-fg);
}

/* Pending request whose date is already booked/blocked on the calendar.
   Given a distinct outlined-orange treatment (and a warning glyph) so it
   reads as an alert rather than blending into the amber "Pending" pill it
   sits beside. */
.theaisle-status--conflict {
	gap: 4px;
	background: #fff7ed;
	color: #c2410c;
	border: 1px solid #fdba74;
}

.theaisle-status--conflict .mi {
	font-size: 0.9rem;
	line-height: 1;
}

/* Empty state. */

.theaisle-bookings-empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 48px 24px;
	border: 1px dashed var(--theaisle-bookings-border);
	border-radius: 14px;
	color: var(--theaisle-bookings-muted);
	text-align: center;
}

.theaisle-bookings-empty .mi {
	font-size: 2.4rem;
	color: #cbd5e1;
}

.theaisle-bookings-empty h3 {
	margin: 0;
	color: var(--theaisle-bookings-text);
}

.theaisle-bookings-empty p {
	margin: 0;
	max-width: 32rem;
}

/* ── Detail modal ─────────────────────────────────────────────────────── */

.theaisle-bookings-detail__body {
	padding: 20px;
}

.theaisle-bookings-detail__loading,
.theaisle-bookings-detail__error {
	margin: 0;
	color: var(--theaisle-bookings-muted);
}

.theaisle-bookings-detail__error {
	color: #b91c1c;
}

.theaisle-bookings-detail__list {
	display: grid;
	gap: 12px;
	margin: 0;
}

.theaisle-bookings-detail__row {
	display: grid;
	gap: 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f3f4f6;
}

.theaisle-bookings-detail__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.theaisle-bookings-detail__row dt {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--theaisle-bookings-muted);
}

.theaisle-bookings-detail__row dd {
	margin: 0;
	font-size: 0.95rem;
	color: var(--theaisle-bookings-text);
}

.theaisle-bookings-detail__quote {
	margin: 0;
	padding: 12px 14px;
	background: #f9fafb;
	border-left: 3px solid var(--theaisle-bookings-red);
	border-radius: 0 8px 8px 0;
	color: #374151;
	white-space: pre-wrap;
}

.theaisle-bookings-detail__muted {
	color: var(--theaisle-bookings-muted);
	font-style: normal;
}

/* ── Search bar (vendor requests) ─────────────────────────────────────── */

.theaisle-bookings-tab__search {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-width: 240px;
	background: #fff;
	border: 1px solid var(--theaisle-bookings-border);
	border-radius: 999px;
	padding: 4px 12px 4px 36px;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.theaisle-bookings-tab__search:focus-within {
	border-color: var(--theaisle-bookings-red);
	box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12);
}

.theaisle-bookings-tab__search-label {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--theaisle-bookings-muted);
	display: inline-flex;
}

.theaisle-bookings-tab__search input[type="search"] {
	border: 0;
	outline: none;
	background: transparent;
	padding: 6px 0;
	font-size: 0.9rem;
	min-width: 200px;
	width: 100%;
	color: var(--theaisle-bookings-text);
}

.theaisle-bookings-tab__search-clear {
	margin-left: 4px;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: var(--theaisle-bookings-muted);
	text-decoration: none;
	font-size: 1.2rem;
	line-height: 1;
}

.theaisle-bookings-tab__search-clear:hover,
.theaisle-bookings-tab__search-clear:focus-visible {
	background: #f3f4f6;
	color: var(--theaisle-bookings-text);
	outline: none;
	text-decoration: none;
}

.theaisle-bookings-tab__resultline {
	margin: 0;
	color: var(--theaisle-bookings-muted);
	font-size: 0.9rem;
}

.theaisle-bookings-tab__resultline strong {
	color: var(--theaisle-bookings-text);
	font-weight: 600;
}

@media (max-width: 540px) {
	.theaisle-bookings-tab__search {
		width: 100%;
		min-width: 0;
	}
}

/* ── Pagination ───────────────────────────────────────────────────────── */

.theaisle-bookings-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.theaisle-bookings-pagination__btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid var(--theaisle-bookings-border);
	border-radius: 10px;
	background: #fff;
	color: #374151;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.theaisle-bookings-pagination__btn:hover,
.theaisle-bookings-pagination__btn:focus-visible {
	background: #f9fafb;
	border-color: #9ca3af;
	color: var(--theaisle-bookings-text);
	text-decoration: none;
	outline: none;
}

.theaisle-bookings-pagination__btn.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.theaisle-bookings-pagination__status {
	color: var(--theaisle-bookings-muted);
	font-size: 0.9rem;
}

/* ── Edit-modal warning banner ────────────────────────────────────────── */

.theaisle-bookings-edit__warning {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	background: #fff8ed;
	border: 1px solid #fed7aa;
	border-left: 4px solid #f59e0b;
	border-radius: 8px;
	color: #78350f;
}

.theaisle-bookings-edit__warning .mi {
	font-size: 1.4rem;
	color: #f59e0b;
	flex: 0 0 auto;
}

.theaisle-bookings-edit__warning strong {
	display: block;
	margin-bottom: 4px;
	color: #78350f;
}

.theaisle-bookings-edit__warning p {
	margin: 0;
	font-size: 0.85rem;
	color: #92400e;
	line-height: 1.5;
}

/* ── Flatpickr — booking date picker ────────────────────────────────── */

.theaisle-bookings-field--datepicker {
	position: relative;
}

/* Style the visible (alt) input identically to other modal inputs even
   though Flatpickr renders it outside .theaisle-bookings-modal__body.
   The native (hidden) input gets display:none via flatpickr's own CSS. */
.theaisle-bookings-field--datepicker .flatpickr-input,
.theaisle-bookings-field--datepicker input.form-control.input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #fff;
	color: var(--theaisle-bookings-text);
	transition: border-color 120ms ease, box-shadow 120ms ease;
	cursor: pointer;
}

.theaisle-bookings-field--datepicker input.form-control.input:focus,
.theaisle-bookings-field--datepicker input.form-control.input.active {
	border-color: var(--theaisle-bookings-red);
	box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15);
	outline: none;
}

/* The dropdown calendar.
   `static: true` mounts the calendar inside the field wrapper, so anchor
   it relative to that wrapper, not the body. */
.theaisle-bookings-field--datepicker .flatpickr-calendar {
	margin-top: 6px;
	border: 1px solid var(--theaisle-bookings-border);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	font-family: inherit;
	width: 100%;
	max-width: 320px;
	padding: 8px;
}

.theaisle-bookings-field--datepicker .flatpickr-calendar.arrowTop::before,
.theaisle-bookings-field--datepicker .flatpickr-calendar.arrowTop::after {
	border-bottom-color: var(--theaisle-bookings-border);
}

.theaisle-bookings-field--datepicker .flatpickr-months {
	padding: 4px 0 8px;
}

.theaisle-bookings-field--datepicker .flatpickr-months .flatpickr-month {
	color: var(--theaisle-bookings-text);
	font-weight: 600;
}

.theaisle-bookings-field--datepicker .flatpickr-current-month {
	font-size: 1rem;
	padding: 4px 0;
}

.theaisle-bookings-field--datepicker .flatpickr-current-month .cur-month {
	font-weight: 600;
}

.theaisle-bookings-field--datepicker .flatpickr-current-month input.cur-year {
	font-weight: 600;
	color: var(--theaisle-bookings-text);
}

.theaisle-bookings-field--datepicker .flatpickr-monthDropdown-months {
	font-weight: 600;
	color: var(--theaisle-bookings-text);
}

.theaisle-bookings-field--datepicker .flatpickr-prev-month,
.theaisle-bookings-field--datepicker .flatpickr-next-month {
	color: var(--theaisle-bookings-muted);
	padding: 8px;
}

.theaisle-bookings-field--datepicker .flatpickr-prev-month:hover,
.theaisle-bookings-field--datepicker .flatpickr-next-month:hover {
	color: var(--theaisle-bookings-red);
}

.theaisle-bookings-field--datepicker .flatpickr-prev-month svg,
.theaisle-bookings-field--datepicker .flatpickr-next-month svg {
	fill: currentColor;
}

.theaisle-bookings-field--datepicker .flatpickr-weekdays {
	background: transparent;
	height: 32px;
}

.theaisle-bookings-field--datepicker .flatpickr-weekday {
	color: var(--theaisle-bookings-muted);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.theaisle-bookings-field--datepicker .dayContainer {
	padding: 4px 0 0;
	min-width: 0;
	width: 100%;
}

.theaisle-bookings-field--datepicker .flatpickr-day {
	border-radius: 8px;
	color: var(--theaisle-bookings-text);
	font-weight: 500;
	max-width: none;
	height: 36px;
	line-height: 36px;
	margin: 1px 0;
	border: 1px solid transparent;
	transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.theaisle-bookings-field--datepicker .flatpickr-day:hover {
	background: rgba(237, 28, 36, 0.08);
	border-color: rgba(237, 28, 36, 0.18);
	color: var(--theaisle-bookings-text);
}

.theaisle-bookings-field--datepicker .flatpickr-day.today {
	border-color: var(--theaisle-bookings-red);
	color: var(--theaisle-bookings-red);
	font-weight: 700;
}

.theaisle-bookings-field--datepicker .flatpickr-day.today:hover {
	background: rgba(237, 28, 36, 0.08);
	color: var(--theaisle-bookings-red);
}

.theaisle-bookings-field--datepicker .flatpickr-day.selected,
.theaisle-bookings-field--datepicker .flatpickr-day.selected:hover {
	background: var(--theaisle-bookings-red);
	border-color: var(--theaisle-bookings-red);
	color: #fff;
}

.theaisle-bookings-field--datepicker .flatpickr-day.flatpickr-disabled,
.theaisle-bookings-field--datepicker .flatpickr-day.flatpickr-disabled:hover {
	color: #cbd5e1;
	background: transparent;
	border-color: transparent;
	cursor: not-allowed;
	position: relative;
}

/* Diagonal strikethrough for blocked dates that fall AFTER `min` (i.e.,
   they're disabled because the vendor blocked them, not because they're
   in the past). Past dates get the muted color above without the line. */
.theaisle-bookings-field--datepicker .flatpickr-day.flatpickr-disabled:not(.notAllowed)::after {
	content: '';
	position: absolute;
	inset: 50% 8px auto 8px;
	border-top: 1.5px solid #fca5a5;
	transform: rotate(-12deg);
	pointer-events: none;
}

.theaisle-bookings-field--datepicker .flatpickr-day.prevMonthDay,
.theaisle-bookings-field--datepicker .flatpickr-day.nextMonthDay {
	color: #d1d5db;
}

/* Responsive: cap calendar width so it doesn't overflow the modal on
   small screens, and bump tap targets for touch. */
@media ( max-width: 480px ) {
	.theaisle-bookings-field--datepicker .flatpickr-calendar {
		max-width: 100%;
	}

	.theaisle-bookings-field--datepicker .flatpickr-day {
		height: 40px;
		line-height: 40px;
		font-size: 0.95rem;
	}

	.theaisle-bookings-field--datepicker .flatpickr-current-month {
		font-size: 1.05rem;
	}
}

/* ══ Redesigned booking dashboards (theaisle-vreq-*) ════════════════════════
   The shared design system for BOTH the vendor "Booking Requests" tab and
   the couple "My Bookings" tab: stat strip, toolbar, pending queue,
   compact list, grouped detail modal. (The prefix dates from the vendor
   page shipping first.) Older shared pieces — status badges, filter
   chips, search pill, pagination, empty state, modal shell — are reused
   as-is, not restyled. */

:root {
	--theaisle-vreq-amber: #f59e0b;
	--theaisle-vreq-amber-bg: #fffbeb;
	--theaisle-vreq-amber-line: #fde68a;
	--theaisle-vreq-amber-fg: #b45309;
}

/* The shared tab root is a grid with an 18px gap between every child;
   this page manages its own vertical rhythm (tight heading-to-list,
   roomier between sections), and grid-item margins don't collapse with
   the gap — they'd stack. Go block and space sections explicitly. */

.theaisle-bookings-tab.theaisle-vreq {
	display: block;
}

/* Shared components lean on that grid gap for their spacing; re-supply
   it here (vendor-scoped — the couple tab keeps its grid). */

.theaisle-vreq .theaisle-bookings-tab__filters {
	margin: 0 0 18px;
}

.theaisle-vreq .theaisle-bookings-tab__resultline {
	margin: 0 0 14px;
}

.theaisle-vreq .theaisle-bookings-pagination {
	margin: 20px 0 0;
}

/* ── Header ── */

.theaisle-vreq__head {
	margin: 0 0 18px;
}

.theaisle-vreq__head h2 {
	margin: 0 0 2px;
	font-size: 1.4rem;
	font-weight: 400;
	letter-spacing: -1px;
	color: var(--theaisle-bookings-text);
}

/* Last word of the heading is wrapped in <em> for a stylised accent. */
.theaisle-vreq__head h2 em {
	font-style: italic;
	font-weight: inherit;
}

.theaisle-vreq__sub {
	margin: 0;
	color: var(--theaisle-bookings-muted);
	font-size: 0.92rem;
}

/* ── Summary stat strip ── */

.theaisle-vreq__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 0 0 20px;
}

.theaisle-vreq-stat {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--theaisle-bookings-card-border);
	border-radius: 12px;
	box-shadow: var(--theaisle-bookings-card-shadow);
	padding: 13px 16px 11px;
}

.theaisle-vreq-stat__label {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--theaisle-bookings-muted);
	margin-bottom: 4px;
}

.theaisle-vreq-stat__value {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--theaisle-bookings-text);
	font-variant-numeric: tabular-nums;
}

.theaisle-vreq-stat__hint {
	font-size: 0.76rem;
	color: #9ca3af;
	margin-top: 2px;
}

.theaisle-vreq-stat--pending .theaisle-vreq-stat__value {
	color: var(--theaisle-bookings-pending-fg);
}

.theaisle-vreq-stat--confirmed .theaisle-vreq-stat__value {
	color: var(--theaisle-bookings-confirmed-fg);
}

/* Text values ("In 12 days", "Today") sit smaller than bare numbers so
   the tile row keeps one visual weight. */
.theaisle-vreq-stat__value--text {
	font-size: 1.15rem;
	line-height: 1.35;
}

/* ── Toolbar (search + sort in one row) ── */

.theaisle-vreq__toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 12px;
}

.theaisle-vreq__toolbar .theaisle-bookings-tab__search {
	flex: 1 1 240px;
	min-width: 200px;
}

.theaisle-vreq__sort {
	border: 1px solid var(--theaisle-bookings-border);
	border-radius: 999px;
	background: #fff;
	padding: 8px 14px;
	font: inherit;
	font-size: 0.85rem;
	color: var(--theaisle-bookings-muted);
	cursor: pointer;
}

.theaisle-vreq__sort:focus-visible {
	outline: 2px solid var(--theaisle-bookings-red);
	outline-offset: 2px;
}

/* ── Section headings ── */

.theaisle-vreq-sechead {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 24px 0 12px;
}

.theaisle-vreq-sechead h3 {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--theaisle-bookings-text);
}

.theaisle-vreq-sechead__count {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--theaisle-bookings-pending-fg);
	background: var(--theaisle-bookings-pending-bg);
	border-radius: 999px;
	padding: 1px 9px;
	font-variant-numeric: tabular-nums;
}

.theaisle-vreq-sechead__hint {
	font-size: 0.82rem;
	color: #9ca3af;
}

/* ── Queue cards (pending requests) ── */

.theaisle-vreq-queue {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.theaisle-vreq-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--theaisle-bookings-card-border);
	border-left: 3px solid var(--theaisle-vreq-amber);
	border-radius: 12px;
	box-shadow: var(--theaisle-bookings-card-shadow);
	padding: 16px 18px;
	cursor: pointer;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.theaisle-vreq-card:hover,
.theaisle-vreq-card:focus-within {
	box-shadow: var(--theaisle-bookings-card-shadow-hover);
	border-color: var(--theaisle-bookings-card-hover-border);
	border-left-color: var(--theaisle-vreq-amber);
}

.theaisle-vreq-card__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f3f4f6;
	color: var(--theaisle-bookings-muted);
	font-size: 0.85rem;
	font-weight: 700;
	display: grid;
	place-items: center;
}

/* Couple-side media slot: the vendor's listing logo (or a storefront
   placeholder) instead of initials. */
.theaisle-vreq-card__logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	background: #f3f4f6;
	flex-shrink: 0;
}

.theaisle-vreq-card__logo--placeholder {
	display: grid;
	place-items: center;
	color: var(--theaisle-bookings-muted);
}

.theaisle-vreq-card__logo--placeholder .mi {
	font-size: 20px;
}

.theaisle-vreq-card__body {
	min-width: 0;
}

.theaisle-vreq-card__name {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--theaisle-bookings-text);
}

.theaisle-vreq-card__listing {
	margin: 1px 0 8px;
	font-size: 0.83rem;
	color: var(--theaisle-bookings-muted);
}

/* Links in the sub-line (couple "View listing" + category, vendor listing
   title + category) render in brand red so they read as clickable, but stay
   at 0.9rem/500 so they never compete with the card title above them. */
.theaisle-vreq-card__listing a {
	color: var(--theaisle-bookings-red) !important;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
}

.theaisle-vreq-card__listing a:hover,
.theaisle-vreq-card__listing a:focus-visible {
	color: var(--theaisle-bookings-red-hover) !important;
	text-decoration: underline;
}

.theaisle-vreq-card__when {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 6px;
	font-size: 0.88rem;
}

.theaisle-vreq-card__date {
	font-weight: 600;
	color: var(--theaisle-bookings-text);
}

.theaisle-vreq-card__ago {
	color: #9ca3af;
	font-size: 0.8rem;
}

/* Small "date is flexible" pill, sat beside the date in __when. */
.theaisle-vreq-card__flex {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 999px;
	background: #f3f4f6;
	color: var(--theaisle-bookings-muted);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
}

/* Light dot between the "View listing"/title and category links. */
.theaisle-vreq-card__sep {
	color: #d1d5db;
	font-weight: 400;
}

/* Labeled fact grid — replaces the old run-on "·"-separated meta line so
   each value is paired with what it means (Event / Guests / Items / …). */
.theaisle-vreq-card__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
	gap: 8px 18px;
	margin: 0 0 10px;
	padding: 0;
}

.theaisle-vreq-card__fact {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.theaisle-vreq-card__fact dt {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9ca3af;
}

.theaisle-vreq-card__fact dd {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--theaisle-bookings-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.theaisle-vreq-card__msg {
	margin: 0;
	font-size: 0.85rem;
	color: var(--theaisle-bookings-muted);
	font-style: italic;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.theaisle-vreq-card__conflict {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	padding: 7px 12px;
	background: var(--theaisle-vreq-amber-bg);
	border: 1px solid var(--theaisle-vreq-amber-line);
	border-radius: 8px;
	color: var(--theaisle-vreq-amber-fg);
	font-size: 0.8rem;
	font-weight: 500;
}

.theaisle-vreq-card__conflict .mi {
	font-size: 15px;
	flex-shrink: 0;
}

.theaisle-vreq-card__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 8px;
	min-width: 128px;
}

/* ── Buttons (vendor requests) ── */

.theaisle-vreq-btn {
	border-radius: 10px;
	padding: 8px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	font-family: inherit;
	border: 1px solid transparent;
	text-align: center;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.theaisle-vreq-btn--primary {
	background: var(--theaisle-bookings-red);
	color: #fff;
}

.theaisle-vreq-btn--primary:hover,
.theaisle-vreq-btn--primary:focus-visible {
	background: var(--theaisle-bookings-red-hover);
	color: #fff;
}

.theaisle-vreq-btn--quiet {
	background: #fff;
	border-color: var(--theaisle-bookings-border);
	color: var(--theaisle-bookings-text);
}

.theaisle-vreq-btn--quiet:hover,
.theaisle-vreq-btn--quiet:focus-visible {
	border-color: #9ca3af;
	color: var(--theaisle-bookings-text);
}

.theaisle-vreq-btn--danger {
	background: #fff;
	border-color: #fecaca;
	color: var(--theaisle-bookings-declined-fg);
}

.theaisle-vreq-btn--danger:hover,
.theaisle-vreq-btn--danger:focus-visible {
	background: #fef2f2;
	border-color: #fca5a5;
	color: var(--theaisle-bookings-declined-fg);
}

.theaisle-vreq-btn--link {
	background: none;
	border: none;
	color: var(--theaisle-bookings-muted);
	font-size: 0.9rem;
	font-weight: 600;
	padding: 4px 8px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.theaisle-vreq-btn--link:hover,
.theaisle-vreq-btn--link:focus-visible {
	color: var(--theaisle-bookings-text);
}

.theaisle-vreq-btn--sm {
	padding: 5px 12px;
}

.theaisle-vreq-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* ── "All caught up" strip ── */

.theaisle-vreq-caughtup {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--theaisle-bookings-card-border);
	border-radius: 12px;
	padding: 13px 18px;
	color: var(--theaisle-bookings-muted);
	font-size: 0.88rem;
}

.theaisle-vreq-caughtup .mi {
	font-size: 18px;
	color: var(--theaisle-bookings-confirmed-fg);
	flex-shrink: 0;
}

/* ── Compact list ── */

.theaisle-vreq-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--theaisle-bookings-card-border);
	border-radius: 12px;
	box-shadow: var(--theaisle-bookings-card-shadow);
	overflow: hidden;
}

.theaisle-vreq-row {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 16px;
	padding: 12px 18px;
	border-top: 1px solid var(--theaisle-bookings-card-border);
	cursor: pointer;
	transition: background 0.12s ease;
}

.theaisle-vreq-row:first-child {
	border-top: none;
}

.theaisle-vreq-row:hover,
.theaisle-vreq-row:focus-visible {
	background: #fafbfc;
}

.theaisle-vreq-row:focus-visible {
	outline: 2px solid var(--theaisle-bookings-red);
	outline-offset: -2px;
}

.theaisle-vreq-tile {
	text-align: center;
	line-height: 1.15;
	padding: 5px 0 6px;
	border: 1px solid var(--theaisle-bookings-card-border);
	border-radius: 9px;
	background: #f7f8fa;
	font-variant-numeric: tabular-nums;
}

.theaisle-vreq-tile__month {
	display: block;
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--theaisle-bookings-red);
}

.theaisle-vreq-tile__day {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--theaisle-bookings-text);
}

.theaisle-vreq-tile__year {
	display: block;
	font-size: 0.62rem;
	color: #9ca3af;
}

.theaisle-vreq-row__main {
	min-width: 0;
	display: block;
}

.theaisle-vreq-row__name {
	display: block;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--theaisle-bookings-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.theaisle-vreq-row__sub {
	display: block;
	font-size: 0.8rem;
	color: var(--theaisle-bookings-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.theaisle-vreq-row__ago {
	font-size: 0.78rem;
	color: #9ca3af;
	white-space: nowrap;
}

.theaisle-vreq-row__end {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.theaisle-vreq-row__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ── ?highlight= deep-link target ── */

.theaisle-vreq-card.is-highlighted,
.theaisle-vreq-row.is-highlighted {
	outline: 2px solid var(--theaisle-bookings-red);
	outline-offset: 2px;
}

/* ── Detail modal — grouped sections (vendor only; body markup is built by
      vendor-requests.js inside the shared modal shell) ── */

.theaisle-vreq-detail__topline {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--theaisle-bookings-card-border);
}

.theaisle-vreq-detail__topline .theaisle-vreq-card__avatar,
.theaisle-vreq-detail__topline .theaisle-vreq-card__logo {
	width: 40px;
	height: 40px;
}

.theaisle-vreq-detail__topline-names {
	min-width: 0;
	flex: 1;
}

.theaisle-vreq-detail__topline-names h3 {
	margin: 0;
	font-size: 1rem;
	color: var(--theaisle-bookings-text);
}

.theaisle-vreq-detail__topline-names p {
	margin: 0;
	font-size: 0.8rem;
	color: var(--theaisle-bookings-muted);
}

.theaisle-vreq-detail__section {
	padding: 13px 0;
	border-bottom: 1px solid var(--theaisle-bookings-card-border);
}

.theaisle-vreq-detail__section:last-child {
	border-bottom: none;
}

.theaisle-vreq-detail__section h4 {
	margin: 0 0 8px;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #9ca3af;
}

.theaisle-vreq-detail__section .theaisle-bookings-detail__list {
	margin: 0;
}

/* Non-actionable statuses (declined/cancelled/expired) leave the footer
   empty — collapse it instead of showing a bordered dead strip. */

.theaisle-vreq .theaisle-bookings-modal__footer:empty {
	display: none;
}

.theaisle-vreq-detail__conflict {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	padding: 9px 12px;
	background: var(--theaisle-vreq-amber-bg);
	border: 1px solid var(--theaisle-vreq-amber-line);
	border-radius: 8px;
	color: var(--theaisle-vreq-amber-fg);
	font-size: 0.82rem;
}

/* ── Mobile ── */

@media (max-width: 680px) {
	.theaisle-vreq__stats {
		grid-template-columns: 1fr 1fr;
	}

	.theaisle-vreq-card {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.theaisle-vreq-card__actions {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
		min-width: 0;
	}

	.theaisle-vreq-card__actions .theaisle-vreq-btn {
		flex: 1;
	}

	/* The "View details" link drops to its own full-width line under the
	   two primary actions so its label never wraps mid-word. */
	.theaisle-vreq-card__actions .theaisle-vreq-btn--link {
		flex: 1 1 100%;
	}

	.theaisle-vreq-row {
		grid-template-columns: 46px minmax(0, 1fr) auto;
		row-gap: 4px;
	}

	.theaisle-vreq-row__ago {
		display: none;
	}

	.theaisle-vreq-row__end {
		flex-direction: column;
		align-items: flex-end;
		gap: 6px;
	}

	/* Sort control spans the row once the search bar has wrapped to its own
	   line, so it presents a full-width tap target instead of a stranded pill. */
	.theaisle-vreq__sort {
		flex: 1 1 100%;
	}

	/* iOS Safari zooms the page in when a focused form control is under 16px.
	   Bump every booking form control (modal fields, search, sort) to 16px on
	   small screens so tapping a field never triggers that jarring zoom. */
	.theaisle-bookings-modal__body input,
	.theaisle-bookings-modal__body textarea,
	.theaisle-bookings-tab__search input[type="search"],
	.theaisle-vreq__sort {
		font-size: 16px;
	}

	.theaisle-bookings-tab__search input[type="search"] {
		min-width: 0;
	}
}

/* Stack the request/edit form footer into full-width buttons on the
   narrowest screens — bigger, easier tap targets than two side-by-side
   buttons squeezed onto one line. Scoped to the form modals so the
   detail modal's dynamic footer (with its inline reason forms) is left
   to lay itself out. */
@media (max-width: 480px) {
	.theaisle-bookings-form .theaisle-bookings-modal__footer {
		flex-direction: column;
	}

	.theaisle-bookings-form .theaisle-bookings-modal__footer > button {
		width: 100%;
	}
}
