/* Banglo289 Reservation - public form styles
 * Design tokens chosen deliberately for a premium Malay heritage
 * restaurant brand: warm ink/parchment base, muted brass accent (not
 * the generic AI terracotta), quiet forest green for confirm states.
 */
.b289-rsv, .b289-update-wrap[data-nested] {
	--b289-ink: #2B2420;
	--b289-brass: #A9812E;
	--b289-brass-dark: #8C6A24;
	--b289-parchment: #FAF8F4;
	--b289-forest: #3F5B4E;
	--b289-line: #E4DFD5;
	--b289-danger: #B3452F;
	--b289-muted: #8A8072;

	max-width: 640px;
	margin: 0 auto;
	padding: 32px 24px 64px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--b289-ink);
	background: var(--b289-parchment);
	box-sizing: border-box;
}
.b289-rsv *, .b289-update-wrap[data-nested] * {
	box-sizing: border-box;
}

/* Generic fallback: several elements toggle this class via JS without
   a matching element-specific rule ever having been defined for them
   (a real, recurring gap, not a one-off), so this exists as a safety
   net. Existing more specific rules elsewhere in this file (e.g.
   .b289-step.is-hidden) still win via normal CSS specificity, this
   only applies where nothing more specific already does. */
.is-hidden { display: none; }


.b289-rsv-header {
	text-align: center;
	margin-bottom: 28px;
}
.b289-rsv-title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 34px;
	letter-spacing: 0.2px;
	margin: 0 0 10px;
	color: var(--b289-ink);
}
.b289-rsv-motif {
	color: var(--b289-brass);
	width: 160px;
	height: 10px;
	margin: 0 auto 14px;
	opacity: 0.8;
}
.b289-rsv-motif svg { width: 100%; height: 100%; }
.b289-rsv-subtitle {
	color: var(--b289-muted);
	font-size: 15px;
	margin: 0;
}

.b289-rsv-tabs {
	display: flex;
	border: 1px solid var(--b289-line);
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 28px;
}
.b289-rsv-tab {
	flex: 1;
	padding: 13px 16px;
	background: #fff;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--b289-muted);
	transition: background 0.15s ease, color 0.15s ease;
}
.b289-rsv-tab + .b289-rsv-tab {
	border-left: 1px solid var(--b289-line);
}
.b289-rsv-tab.is-active {
	background: var(--b289-ink);
	color: var(--b289-parchment);
}

.b289-rsv-panel-tab { display: none; }
.b289-rsv-panel-tab.is-active { display: block; }

.b289-step {
	background: #fff;
	border: 1px solid var(--b289-line);
	border-radius: 3px;
	padding: 20px;
	margin-bottom: 14px;
	transition: opacity 0.2s ease;
}
.b289-step.is-hidden { display: none; }

.b289-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--b289-ink);
	margin-bottom: 10px;
	letter-spacing: 0.1px;
}
.b289-optional {
	font-weight: 400;
	color: var(--b289-muted);
}

.b289-input, .b289-input-number {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--b289-line);
	border-radius: 2px;
	font-family: inherit;
	font-size: 15px;
	color: var(--b289-ink);
	background: #fff;
	margin-bottom: 10px;
}
.b289-input:last-child { margin-bottom: 0; }
.b289-input:focus, .b289-input-number:focus {
	outline: none;
	border-color: var(--b289-brass);
	box-shadow: 0 0 0 3px rgba(169,129,46,0.15);
}
textarea.b289-input { resize: vertical; }

.b289-hint {
	font-size: 12.5px;
	color: var(--b289-muted);
	margin: 8px 0 0;
	line-height: 1.5;
}

.b289-checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}
.b289-checkbox-row input { margin-top: 3px; flex-shrink: 0; }
.b289-checkbox-row a { color: var(--b289-brass-dark); }

.b289-yesno-row {
	display: flex;
	gap: 10px;
}
.b289-yesno-btn {
	flex: 1;
	padding: 12px;
	border: 1px solid var(--b289-line);
	border-radius: 2px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.b289-yesno-btn:hover { border-color: var(--b289-brass); }
.b289-yesno-btn.is-selected {
	border-color: var(--b289-brass);
	background: var(--b289-brass);
	color: #fff;
}

/* Room options reuse .b289-yesno-btn for its border/padding/selected
   state (same working style, not a second one to maintain), this
   just adds the extra layout private rooms need on top: three lines
   of text per button (name, seats, minimum spend) instead of one. */
.b289-room-options {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.b289-room-options .b289-room-option {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.b289-room-option-name {
	font-size: 14px;
	font-weight: 600;
}
.b289-room-option-max-pax,
.b289-room-option-min-spend {
	font-size: 12px;
	font-weight: 400;
	opacity: 0.75;
}
.b289-yesno-btn.is-selected .b289-room-option-max-pax,
.b289-yesno-btn.is-selected .b289-room-option-min-spend {
	opacity: 0.9;
}
.b289-room-option-no {
	flex-basis: 100%;
	font-weight: 600;
}

.b289-deadline-text {
	font-size: 12.5px;
	color: var(--b289-muted);
	margin-top: 12px;
	line-height: 1.5;
	text-align: left;
}
.b289-deadline-text.is-hidden { display: none; }

.b289-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
}
.b289-slot-btn {
	padding: 12px 6px;
	border: 1px solid var(--b289-line);
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.b289-slot-btn:hover:not(:disabled) { border-color: var(--b289-brass); }
.b289-slot-btn.is-selected {
	border-color: var(--b289-brass);
	background: rgba(169,129,46,0.08);
}
.b289-slot-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}
.b289-slots-empty {
	color: var(--b289-muted);
	font-size: 14px;
	padding: 8px 0;
}

.b289-pax-row {
	display: flex;
	gap: 12px;
}
.b289-pax-row.is-hidden { display: none; }
.b289-pax-field {
	flex: 1;
	text-align: center;
}
.b289-pax-field span {
	display: block;
	font-size: 12px;
	color: var(--b289-muted);
	margin-bottom: 6px;
}
.b289-pax-field input { text-align: center; margin-bottom: 0; }

.b289-hold-timer-fixed {
	position: fixed;
	top: calc(16px + env(safe-area-inset-top, 0px));
	right: calc(16px + env(safe-area-inset-right, 0px));
	z-index: 9000;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--b289-forest);
	background: #fff;
	border: 1px solid rgba(63,91,78,0.25);
	box-shadow: 0 4px 14px rgba(0,0,0,0.12);
	padding: 8px 14px;
	border-radius: 20px;
}
.b289-hold-timer-fixed.is-hidden { display: none; }
/* Sits below the WordPress admin bar if a logged-in staff member is
   previewing the public form rather than viewing it as a guest.
   32px admin bar on desktop, 46px on mobile per WordPress core. */
body.admin-bar .b289-hold-timer-fixed { top: calc(32px + 16px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) {
	body.admin-bar .b289-hold-timer-fixed { top: calc(46px + 16px + env(safe-area-inset-top, 0px)); }
}
.b289-hold-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--b289-forest);
	animation: b289-pulse 1.4s infinite ease-in-out;
}
@keyframes b289-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}
.b289-hold-expired-msg {
	margin-top: 12px;
	font-size: 13px;
	color: var(--b289-danger);
}
.b289-hold-expired-msg.is-hidden { display: none; }

.b289-calendar {
	border: 1px solid var(--b289-line);
	border-radius: 3px;
	overflow: hidden;
}
.b289-calendar.is-hidden { display: none; }
.b289-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--b289-ink);
	color: var(--b289-parchment);
}
.b289-calendar-month-label {
	font-weight: 600;
	font-size: 14px;
}
.b289-calendar-nav {
	background: none;
	border: none;
	color: var(--b289-parchment);
	font-size: 20px;
	cursor: pointer;
	padding: 0 8px;
	line-height: 1;
}
.b289-calendar-nav:hover { opacity: 0.75; }
.b289-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: #fff;
	border-bottom: 1px solid var(--b289-line);
}
.b289-calendar-weekdays span {
	text-align: center;
	font-size: 11px;
	color: var(--b289-muted);
	padding: 8px 0 4px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.b289-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	padding: 6px;
	background: #fff;
}
.b289-cal-day {
	aspect-ratio: 1 / 1;
	border: none;
	background: var(--b289-parchment);
	border-radius: 2px;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
	color: var(--b289-ink);
	transition: background 0.15s ease, color 0.15s ease;
}
.b289-cal-day:hover:not(:disabled) {
	background: rgba(169,129,46,0.18);
}
.b289-cal-day.is-selected {
	background: var(--b289-brass);
	color: #fff;
	font-weight: 700;
}
.b289-cal-day.is-unavailable {
	background: transparent;
	color: var(--b289-line);
	cursor: not-allowed;
	text-decoration: line-through;
}
.b289-cal-day.is-blank {
	background: transparent;
	cursor: default;
	pointer-events: none;
}

.b289-btn {
	display: inline-block;
	padding: 13px 26px;
	border: none;
	border-radius: 2px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}
.b289-btn-primary {
	background: var(--b289-ink);
	color: var(--b289-parchment);
	width: 100%;
}
.b289-btn-primary:hover { background: #423a33; }
.b289-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.b289-btn-secondary {
	background: var(--b289-brass);
	color: #fff;
	width: 100%;
}
.b289-btn-secondary:hover { background: var(--b289-brass-dark); }
.b289-btn-danger {
	background: #fff;
	color: var(--b289-danger);
	border: 1px solid var(--b289-danger);
	flex: 1;
}
.b289-button-row {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}
.b289-button-row .b289-btn-primary { flex: 2; }

.b289-form-msg {
	font-size: 13.5px;
	margin: 12px 0;
	padding: 10px 12px;
	border-radius: 2px;
	display: none;
}
.b289-form-msg.is-error {
	display: block;
	background: rgba(179,69,47,0.08);
	color: var(--b289-danger);
	border: 1px solid rgba(179,69,47,0.25);
}
.b289-form-msg.is-info {
	display: block;
	background: rgba(63,91,78,0.08);
	color: var(--b289-forest);
	border: 1px solid rgba(63,91,78,0.25);
}

.b289-notice-warn {
	background: rgba(179,69,47,0.08);
	border: 1px solid rgba(179,69,47,0.25);
	color: var(--b289-danger);
	padding: 14px 16px;
	border-radius: 2px;
	font-size: 14px;
}
.b289-notice-warn.is-hidden { display: none; }

.b289-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(43,36,32,0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 9999;
}
.b289-modal-overlay.is-hidden { display: none; }
.b289-modal {
	position: relative;
	text-align: center;
	background: #fff;
	border-radius: 4px;
	max-width: 420px;
	width: 100%;
	padding: 40px 28px 32px;
	box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}
.b289-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: var(--b289-muted);
	cursor: pointer;
	padding: 4px 8px;
}
.b289-modal-close:hover { color: var(--b289-ink); }
.b289-success-icon {
	width: 52px; height: 52px;
	background: var(--b289-forest);
	color: #fff;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 24px;
	margin: 0 auto 16px;
}
.b289-modal h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 22px;
	margin: 0 0 12px;
}
.b289-success-number {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: var(--b289-brass-dark);
	margin: 4px 0 16px;
}
#b289-success-preorder-block,
#b289-success-preorder-fallback {
	margin-top: 16px;
	text-align: left;
	font-size: 14px;
}
#b289-success-preorder-block.is-hidden,
#b289-success-preorder-fallback.is-hidden,
#b289-whatsapp-link.is-hidden {
	display: none;
}
.b289-modal-button-row {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}
.b289-modal-button-row .b289-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	padding: 12px 20px;
}
.b289-modal-button-row.is-single .b289-btn {
	flex: 1 1 100%;
}
.b289-calendar-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.b289-detail-card {
	background: #fff;
	border: 1px solid var(--b289-line);
	border-radius: 3px;
	padding: 18px 20px;
	margin: 20px 0 14px;
	font-size: 14px;
}
.b289-detail-card table { width: 100%; border-collapse: collapse; }
.b289-detail-card td { padding: 6px 0; border-bottom: 1px solid var(--b289-line); }
.b289-detail-card td:first-child { color: var(--b289-muted); width: 40%; }
.b289-detail-card tr:last-child td { border-bottom: none; }

.b289-lookup-result.is-hidden { display: none; }

@media (max-width: 480px) {
	.b289-rsv, .b289-update-wrap[data-nested] { padding: 24px 16px 48px; }
	.b289-rsv-title { font-size: 26px; }
	.b289-pax-row { gap: 8px; }
	.b289-room-options { flex-direction: column; }
	.b289-room-options .b289-room-option { min-width: 0; }
}

/* Loading indicator, shown for the duration of any AJAX request on
   the booking form. Same pattern as the admin side: a plain CSS
   spinner by default, replaced by an admin-configured animated GIF
   if one's been set. */
.b289-loading-overlay {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 100001;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--b289-line);
	border-radius: 4px;
	padding: 8px 14px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	font-size: 13px;
}
.b289-loading-overlay.is-hidden { display: none; }
.b289-loading-overlay .b289-loading-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #E4DFD5;
	border-top-color: #A9812E;
	border-radius: 50%;
	animation: b289-spin 0.8s linear infinite;
}
.b289-loading-overlay .b289-loading-gif {
	width: 20px;
	height: 20px;
}
.b289-loading-overlay .b289-loading-gif.is-hidden,
.b289-loading-overlay .b289-loading-spinner.is-hidden { display: none; }
@keyframes b289-spin {
	to { transform: rotate(360deg); }
}
