/*
 * OHH Reservations — Frontend Booking Form Styles (Dark Mode · Brand Theme)
 *
 * Brand palette
 *   #C41E3A — Hero Red     (primary CTA, active states)
 *   #1B2B5B — Midnight Blue (calendar nav, summary bar, headers)
 *   #4A90E2 — Sky Blue     (secondary, theme labels, info)
 *   #000000 — Steel Black  (page background)
 *   #FFFFFF — Pure White   (primary text)
 *   #E5E5E5 — Silver Grey  (borders, muted elements)
 *
 * All selectors scoped under .ohh-reservation-wrapper.
 *
 * @package OHH_Reservations
 * @since   1.1.0
 */

/* ── CSS custom properties ────────────────────────────────────────────────── */
.ohh-reservation-wrapper {
	--ohh-primary:      #ffffff;
	--ohh-accent:       #C41E3A;
	--ohh-accent-dark:  #a01830;
	--ohh-accent-glow:  rgba(196, 30, 58, .14);
	--ohh-secondary:    #4A90E2;
	--ohh-hero-dark:    #1B2B5B;
	--ohh-danger:       #e05770;
	--ohh-success:      #4caf82;
	--ohh-muted:        #888888;
	--ohh-border:       #2a2a2a;
	--ohh-border-focus: #C41E3A;
	--ohh-bg:           #111111;
	--ohh-bg-alt:       #1a1a1a;
	--ohh-radius:       8px;
	--ohh-radius-sm:    4px;
	--ohh-shadow:       0 2px 12px rgba(0, 0, 0, .5);
	--ohh-shadow-hover: 0 6px 24px rgba(0, 0, 0, .75);
	--ohh-font:         inherit;
	--ohh-transition:   .18s ease;
	--ohh-step-dot:     32px;

	font-family: var(--ohh-font);
	max-width: 780px;
	margin: 0 auto;
	padding: 0 16px 48px;
	color: var(--ohh-primary);
	background: #000;
}

/*
 * Keep theme button effects inside the booking UI under our control.
 * Blocksy adds a blurred ::before shadow and a red focus outline globally;
 * iOS Safari can leave only one composited edge of either effect visible.
 */
.ohh-reservation-wrapper button {
	-webkit-tap-highlight-color: transparent;
}

.ohh-reservation-wrapper button::before {
	content: none !important;
	display: none !important;
}

.ohh-reservation-wrapper button:focus {
	outline: none;
}

.ohh-reservation-wrapper button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--ohh-accent-glow);
}

/* ── Info text ────────────────────────────────────────────────────────────── */
.ohh-reservation-info {
	background: var(--ohh-bg);
	border-left: 4px solid var(--ohh-accent);
	border-radius: var(--ohh-radius-sm);
	padding: 14px 18px;
	margin-bottom: 28px;
	font-size: .95rem;
	line-height: 1.6;
	color: #ccc;
}

/* ── Progress stepper ─────────────────────────────────────────────────────── */
.ohh-steps-nav {
	margin-bottom: 28px;
}

.ohh-steps-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ohh-step-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	gap: 6px;
}

/* Connector line */
.ohh-step-item:not(:first-child)::before {
	content: "";
	position: absolute;
	top: calc(var(--ohh-step-dot) / 2);
	left: calc(-50% + var(--ohh-step-dot) / 2);
	right: calc(50% + var(--ohh-step-dot) / 2);
	height: 2px;
	background: var(--ohh-border);
}

.ohh-step-item--done::before {
	background: var(--ohh-accent);
}

.ohh-step-number {
	width: var(--ohh-step-dot);
	height: var(--ohh-step-dot);
	border-radius: 50%;
	background: var(--ohh-bg-alt);
	border: 2px solid var(--ohh-border);
	color: var(--ohh-muted);
	font-size: .82rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	transition: background var(--ohh-transition), color var(--ohh-transition), border-color var(--ohh-transition);
}

.ohh-step-label {
	font-size: .75rem;
	color: var(--ohh-muted);
	text-align: center;
	letter-spacing: .03em;
	transition: color var(--ohh-transition);
}

/* Active */
.ohh-step-item--active .ohh-step-number {
	background: var(--ohh-accent);
	border-color: var(--ohh-accent);
	color: #fff;
	box-shadow: 0 0 0 4px var(--ohh-accent-glow);
}

.ohh-step-item--active .ohh-step-label {
	color: var(--ohh-primary);
	font-weight: 600;
}

/* Done */
.ohh-step-item--done .ohh-step-number {
	background: var(--ohh-accent-dark);
	border-color: var(--ohh-accent-dark);
	color: #fff;
}

.ohh-step-item--done .ohh-step-label {
	color: var(--ohh-accent);
}

/* ── Summary bar ──────────────────────────────────────────────────────────── */
.ohh-summary-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	background: var(--ohh-hero-dark);
	color: #fff;
	border-radius: var(--ohh-radius);
	margin-bottom: 28px;
	font-size: .88rem;
	flex-wrap: wrap;
	border: 1px solid rgba(74, 144, 226, .2);
}

.ohh-summary-bar[hidden] {
	display: none;
}

.ohh-summary-item {
	font-weight: 600;
}

.ohh-summary-sep {
	color: var(--ohh-accent);
	font-weight: 700;
}

/* ── Notice / error banner ────────────────────────────────────────────────── */
.ohh-notice {
	padding: 12px 18px;
	border-radius: var(--ohh-radius-sm);
	margin-bottom: 20px;
	font-size: .92rem;
}

.ohh-notice--error {
	background: rgba(196, 30, 58, .12);
	border: 1px solid var(--ohh-accent);
	color: #e8919e;
}

.ohh-notice--success {
	background: rgba(76, 175, 130, .1);
	border: 1px solid var(--ohh-success);
	color: var(--ohh-success);
}

/* ── Step containers ──────────────────────────────────────────────────────── */
.ohh-step {
	animation: ohhFadeIn .22s ease;
}

.ohh-step[hidden],
.ohh-notice[hidden] {
	display: none !important;
}

@keyframes ohhFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ohh-step-heading {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 24px;
	color: var(--ohh-primary);
	letter-spacing: .01em;
}

/* ── Calendar ─────────────────────────────────────────────────────────────── */
.ohh-calendar {
	background: var(--ohh-bg);
	border: 1px solid var(--ohh-border);
	border-radius: var(--ohh-radius);
	box-shadow: var(--ohh-shadow);
	overflow: hidden;
}

.ohh-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: var(--ohh-hero-dark);
	color: #fff;
}

.ohh-cal-title {
	font-weight: 700;
	font-size: 1rem;
	text-align: center;
	flex: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ohh-cal-prev,
.ohh-cal-next {
	background: none;
	border: none;
	color: rgba(255, 255, 255, .7);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 8px;
	transition: color var(--ohh-transition);
}

.ohh-cal-prev:hover,
.ohh-cal-next:hover {
	color: #fff;
}

.ohh-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: var(--ohh-bg-alt);
	border-bottom: 1px solid var(--ohh-border);
	padding: 8px 0;
}

.ohh-calendar-weekdays span {
	text-align: center;
	font-size: .72rem;
	font-weight: 700;
	color: var(--ohh-muted);
	text-transform: uppercase;
	letter-spacing: .07em;
}

.ohh-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	padding: 10px;
	gap: 4px;
}

.ohh-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--ohh-radius-sm);
	font-size: 1.05rem;
	cursor: pointer;
	transition: background var(--ohh-transition), color var(--ohh-transition);
	border: none;
	background: none;
	color: var(--ohh-primary);
	font-family: var(--ohh-font);
}

.ohh-cal-day:hover:not(:disabled) {
	background: var(--ohh-accent-glow);
	color: #fff;
}

.ohh-cal-day--today {
	font-weight: 700;
	color: var(--ohh-accent);
}

.ohh-cal-day--selected {
	background: var(--ohh-accent) !important;
	color: #fff !important;
	font-weight: 700;
}

.ohh-cal-day--blocked,
.ohh-cal-day:disabled,
.ohh-cal-day--past {
	color: #333;
	cursor: not-allowed;
	pointer-events: none;
}

.ohh-cal-day--empty {
	pointer-events: none;
}

/* ── Guest selector ───────────────────────────────────────────────────────── */
.ohh-guests-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.ohh-guest-btn {
	width: 54px;
	height: 54px;
	border: 2px solid var(--ohh-border);
	border-radius: var(--ohh-radius);
	background: var(--ohh-bg);
	color: var(--ohh-primary);
	font-size: 1.05rem;
	font-weight: 700;
	font-family: var(--ohh-font);
	cursor: pointer;
	transition: border-color var(--ohh-transition), background var(--ohh-transition), box-shadow var(--ohh-transition), transform var(--ohh-transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ohh-guest-btn:hover {
	border-color: var(--ohh-accent);
	background: var(--ohh-accent-glow);
	transform: translateY(-2px);
}

.ohh-guest-btn--selected {
	border-color: var(--ohh-accent);
	background: var(--ohh-accent);
	color: #fff;
	box-shadow: 0 4px 14px rgba(196, 30, 58, .4);
	transform: translateY(-1px);
}

/* ── Tables grid ──────────────────────────────────────────────────────────── */
.ohh-tables-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.ohh-table-card {
	background: var(--ohh-bg);
	border: 2px solid var(--ohh-border);
	border-radius: var(--ohh-radius);
	padding: 18px 14px;
	text-align: center;
	cursor: pointer;
	transition: border-color var(--ohh-transition), box-shadow var(--ohh-transition), transform var(--ohh-transition), background var(--ohh-transition);
}

.ohh-table-card:hover {
	border-color: var(--ohh-accent);
	box-shadow: 0 0 0 1px var(--ohh-accent), var(--ohh-shadow-hover);
	transform: translateY(-3px);
}

.ohh-table-card--selected {
	border-color: var(--ohh-accent);
	background: var(--ohh-accent-glow);
	box-shadow: 0 0 0 1px var(--ohh-accent);
}

.ohh-table-card__theme {
	font-size: .75rem;
	font-weight: 700;
	color: var(--ohh-secondary);
	text-transform: uppercase;
	letter-spacing: .07em;
	margin-bottom: 4px;
}

.ohh-table-card__name {
	font-weight: 700;
	font-size: 1rem;
	color: var(--ohh-primary);
	margin-bottom: 4px;
}

.ohh-table-card__capacity {
	font-size: .8rem;
	color: var(--ohh-muted);
}

.ohh-table-card__slots {
	font-size: .78rem;
	color: var(--ohh-success);
	margin-top: 6px;
	font-weight: 500;
}

/* Unavailable table card */
.ohh-table-card--unavailable {
	background: #0d0d0d;
	border-color: #1e1e1e;
	cursor: not-allowed;
	opacity: .55;
}

.ohh-table-card--unavailable:hover {
	border-color: #1e1e1e;
	box-shadow: none;
	transform: none;
}

.ohh-table-card__unavailable-badge {
	margin-top: 8px;
	display: inline-block;
	font-size: .72rem;
	font-weight: 600;
	color: var(--ohh-accent);
	background: rgba(196, 30, 58, .1);
	border: 1px solid rgba(196, 30, 58, .25);
	border-radius: var(--ohh-radius-sm);
	padding: 2px 8px;
}

/* Restaurant map modal */
.ohh-map-open-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 44px;
	margin: 0 0 20px;
	padding: 13px 18px;
	border: 1px solid var(--ohh-accent);
	border-radius: var(--ohh-radius-sm);
	background: var(--ohh-accent);
	color: #fff;
	font-family: var(--ohh-font);
	font-size: .95rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color var(--ohh-transition), background var(--ohh-transition), color var(--ohh-transition);
}

.ohh-map-open-btn:hover,
.ohh-map-open-btn:focus-visible {
	border-color: var(--ohh-accent);
	background: var(--ohh-accent-dark);
	color: #fff;
	outline: none;
}

.ohh-map-open-btn span {
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
}

body.ohh-map-modal-open {
	overflow: hidden;
}

.ohh-map-modal[hidden] {
	display: none !important;
}

.ohh-map-modal {
	position: fixed;
	z-index: 1000000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, .84);
	backdrop-filter: blur(5px);
}

.ohh-map-modal__panel {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: min(960px, 100%);
	height: min(86vh, 820px);
	max-height: min(86vh, 820px);
	overflow: hidden;
	border: 1px solid var(--ohh-border);
	border-radius: 14px;
	background: var(--ohh-bg-alt);
	box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}

.ohh-map-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--ohh-border);
}

.ohh-map-modal__header h2 {
	margin: 0;
	color: var(--ohh-primary);
	font-size: 1.2rem;
	line-height: 1.3;
}

.ohh-map-modal__header p {
	margin: 5px 0 0;
	color: var(--ohh-muted);
	font-size: .84rem;
	line-height: 1.45;
}

.ohh-map-modal__close {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--ohh-border);
	border-radius: 50%;
	background: var(--ohh-bg);
	color: var(--ohh-primary);
	font-family: Arial, sans-serif;
	font-size: 1.8rem;
	line-height: 38px;
	cursor: pointer;
}

.ohh-map-modal__close:hover,
.ohh-map-modal__close:focus-visible {
	border-color: var(--ohh-accent);
	color: var(--ohh-accent);
	outline: none;
}

.ohh-map-modal__viewport {
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 0;
	overflow: auto;
	padding: 18px;
	background: #080808;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.ohh-map-modal__viewport.is-zoomed {
	align-items: flex-start;
	justify-content: flex-start;
}

.ohh-map-modal__zoom {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.ohh-map-modal__zoom:focus-visible {
	outline: 2px solid var(--ohh-accent);
	outline-offset: 3px;
}

.ohh-map-modal__zoom img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: var(--ohh-radius-sm);
	object-fit: contain;
}

.ohh-map-modal__zoom.is-zoomed {
	display: block;
	width: max-content;
	height: auto;
	min-width: 100%;
	cursor: grab;
	flex: 0 0 auto;
	align-self: flex-start;
	user-select: none;
}

.ohh-map-modal__zoom.is-zoomed:active {
	cursor: grabbing;
}

.ohh-map-modal__zoom.is-zoomed img {
	width: auto;
	max-width: none;
	max-height: none;
	margin: 0;
}

/* ── Slots grid ───────────────────────────────────────────────────────────── */
.ohh-slots-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.ohh-slot-btn {
	padding: 11px 20px;
	border: 2px solid var(--ohh-border);
	border-radius: var(--ohh-radius-sm);
	background: var(--ohh-bg);
	color: var(--ohh-primary);
	font-size: .92rem;
	font-family: var(--ohh-font);
	cursor: pointer;
	transition: border-color var(--ohh-transition), background var(--ohh-transition), color var(--ohh-transition);
	font-weight: 600;
}

.ohh-slot-btn:hover {
	border-color: var(--ohh-accent);
	background: var(--ohh-accent-glow);
}

.ohh-slot-btn--selected {
	border-color: var(--ohh-accent);
	background: var(--ohh-accent);
	color: #fff;
	box-shadow: 0 4px 14px rgba(196, 30, 58, .35);
}

/* Unavailable slot (greyed, disabled, still visible) */
.ohh-slot-btn--unavailable {
	border-color: #1e1e1e;
	background: #0d0d0d;
	color: #333;
	cursor: not-allowed;
	opacity: .6;
}

.ohh-slot-btn--unavailable:hover {
	border-color: #1e1e1e;
	background: #0d0d0d;
}

/* Locked slot — someone else is actively completing a reservation right now */
.ohh-slot-btn--locked {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 9px 16px;
	border-color: #7a3800;
	background: #1a0d00;
	color: #ff8c00;
	cursor: not-allowed;
	pointer-events: none;
	position: relative;
	overflow: hidden;
}

/* Subtle animated shimmer to convey "in progress" state */
.ohh-slot-btn--locked::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 140, 0, .07) 50%,
		transparent 100%
	);
	animation: ohhLockShimmer 2s ease infinite;
}

@keyframes ohhLockShimmer {
	0%   { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.ohh-slot-btn--locked:hover {
	border-color: #7a3800;
	background: #1a0d00;
}

.ohh-slot-btn__time {
	font-size: .92rem;
	font-weight: 700;
	color: inherit;
	line-height: 1;
}

.ohh-slot-btn__locked-label {
	font-size: .65rem;
	font-weight: 600;
	color: #b36000;
	text-transform: uppercase;
	letter-spacing: .06em;
	line-height: 1;
	white-space: nowrap;
}

/* All-slots-taken notice */
.ohh-slots-all-taken {
	font-size: .9rem;
	color: var(--ohh-danger);
	margin: 12px 0 0;
}

/* ── Countdown timer ──────────────────────────────────────────────────────── */
.ohh-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 16px 20px;
	background: var(--ohh-bg-alt);
	border: 1px solid var(--ohh-border);
	border-radius: var(--ohh-radius);
	margin-bottom: 20px;
	text-align: center;
}

.ohh-countdown[hidden] {
	display: none;
}

.ohh-countdown-label {
	font-size: .88rem;
	color: var(--ohh-muted);
	margin: 0;
}

.ohh-countdown-timer {
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--ohh-accent);
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
}

.ohh-countdown-timer--urgent {
	color: var(--ohh-danger);
	animation: ohhPulse 1s ease infinite;
}

@keyframes ohhPulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .5; }
}

/* Compact inline countdown (step 5) */
.ohh-countdown--compact {
	flex-direction: row;
	justify-content: center;
	padding: 8px 16px;
	margin-bottom: 16px;
}

.ohh-countdown-label-inline {
	font-size: .85rem;
	color: var(--ohh-muted);
	margin-right: 8px;
}

.ohh-countdown-timer-inline {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ohh-accent);
	font-variant-numeric: tabular-nums;
}

.ohh-countdown-timer-inline--urgent {
	color: var(--ohh-danger);
}

.ohh-payment-countdown {
	margin: 0 0 20px;
}

.ohh-payment-expiry-note {
	font-size: .8rem;
	color: var(--ohh-muted);
}

.ohh-payment-panel--expired .ohh-payment-methods {
	opacity: .5;
	pointer-events: none;
}

/* ── Details form ─────────────────────────────────────────────────────────── */
.ohh-form-row {
	margin-bottom: 16px;
}

.ohh-form-row--half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ohh-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ohh-form-field label {
	font-size: .85rem;
	font-weight: 600;
	color: #cccccc;
	letter-spacing: .02em;
}

.ohh-required {
	color: var(--ohh-accent);
	margin-left: 2px;
}

.ohh-form-field input,
.ohh-form-field select,
.ohh-form-field textarea {
	padding: 11px 14px;
	border: 1px solid var(--ohh-border);
	border-radius: var(--ohh-radius-sm);
	font-size: .95rem;
	font-family: var(--ohh-font);
	color: var(--ohh-primary);
	background: var(--ohh-bg);
	transition: border-color var(--ohh-transition), box-shadow var(--ohh-transition);
	width: 100%;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.ohh-form-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.ohh-form-field input[type="date"]::-webkit-calendar-picker-indicator,
.ohh-form-field input[type="time"]::-webkit-calendar-picker-indicator,
.ohh-form-field input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.ohh-form-field input[type="month"]::-webkit-calendar-picker-indicator,
.ohh-form-field input[type="week"]::-webkit-calendar-picker-indicator {
	filter: invert(1) brightness(1.8);
	opacity: .95;
	cursor: pointer;
}

.ohh-form-field select option {
	background: #1a1a1a;
	color: #fff;
}

/* Searchable country picker */
.ohh-country-picker {
	position: relative;
	width: 100%;
}

.ohh-country-picker__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--ohh-border);
	border-radius: var(--ohh-radius-sm);
	background: var(--ohh-bg);
	color: var(--ohh-primary);
	font: inherit;
	font-size: .95rem;
	font-weight: 400;
	text-align: left;
	cursor: pointer;
}

.ohh-country-picker__trigger:hover,
.ohh-country-picker__trigger:focus-visible,
.ohh-country-picker__trigger[aria-expanded="true"] {
	border-color: var(--ohh-border-focus);
	box-shadow: 0 0 0 3px var(--ohh-accent-glow);
	outline: none;
}

.ohh-country-picker__trigger.ohh-field--error {
	border-color: var(--ohh-danger);
	box-shadow: 0 0 0 3px rgba(224, 87, 112, .15);
}

.ohh-country-picker__arrow {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin: -4px 3px 0 0;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}

.ohh-country-picker__trigger[aria-expanded="true"] .ohh-country-picker__arrow {
	margin-top: 4px;
	transform: rotate(225deg);
}

.ohh-country-picker__panel[hidden] {
	display: none !important;
}

.ohh-country-picker__panel {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 6px);
	left: 0;
	width: 100%;
	overflow: hidden;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	background: #1a1a1a;
	box-shadow: 0 16px 38px rgba(0, 0, 0, .6);
}

.ohh-country-picker__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px 8px;
	color: #fff;
	font-size: .9rem;
}

.ohh-country-picker__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid #3a3a3a;
	border-radius: 50%;
	background: #111;
	color: #fff;
	font: 24px/1 Arial, sans-serif;
	cursor: pointer;
}

.ohh-country-picker__close:hover,
.ohh-country-picker__close:focus-visible {
	border-color: var(--ohh-accent);
	color: var(--ohh-accent);
	outline: none;
}

.ohh-country-picker__search {
	display: block;
	width: calc(100% - 24px) !important;
	min-height: 46px;
	margin: 4px 12px 10px;
	padding: 10px 13px !important;
	border: 1px solid #444 !important;
	border-radius: 5px !important;
	background: #0d0d0d !important;
	color: #fff !important;
	font-size: 16px !important;
	-webkit-appearance: none;
	appearance: none;
}

.ohh-country-picker__search:focus {
	border-color: var(--ohh-accent) !important;
	box-shadow: 0 0 0 3px var(--ohh-accent-glow) !important;
	outline: none;
}

.ohh-country-picker__search::placeholder {
	color: #888;
}

.ohh-country-picker__options {
	max-height: 290px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 0 7px;
}

.ohh-country-picker__options button {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 9px 14px;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: .9rem;
	text-align: left;
	cursor: pointer;
}

.ohh-country-picker__options button[hidden] {
	display: none !important;
}

.ohh-country-picker__options button small {
	color: #858585;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
}

.ohh-country-picker__options button:hover,
.ohh-country-picker__options button:focus-visible,
.ohh-country-picker__options button[aria-selected="true"] {
	background: rgba(196, 30, 58, .18);
	outline: none;
}

.ohh-country-picker__empty {
	margin: 0;
	padding: 18px 14px;
	color: #999;
	font-size: .9rem;
	text-align: center;
}

.ohh-form-field input:focus,
.ohh-form-field select:focus,
.ohh-form-field textarea:focus {
	outline: none;
	border-color: var(--ohh-border-focus);
	box-shadow: 0 0 0 3px var(--ohh-accent-glow);
}

.ohh-form-field input.ohh-field--error,
.ohh-form-field select.ohh-field--error,
.ohh-form-field textarea.ohh-field--error {
	border-color: var(--ohh-danger);
	box-shadow: 0 0 0 3px rgba(224, 87, 112, .15);
}

.ohh-form-field textarea {
	resize: vertical;
	min-height: 88px;
}

/* ── intl-tel-input overrides ─────────────────────────────────────────────── */

/* Stretch wrapper to fill the field */
.ohh-form-field .iti {
	width: 100%;
}

/* Input itself — same size as every other input */
.ohh-form-field .iti input[type="tel"] {
	font-size: .95rem;
}

/* Dial-code button (flag + +421) */
.ohh-form-field .iti__flag-container {
	left: 0;
}
.ohh-form-field .iti__selected-country {
	width: auto !important;
	min-width: 0 !important;
	background: transparent;
	border-right: 1px solid var(--ohh-border);
	padding: 0 8px 0 10px;
	gap: 4px;
	height: 100%;
}
.ohh-form-field .iti__selected-country:hover,
.ohh-form-field .iti__selected-country[aria-expanded="true"] {
	background: var(--ohh-bg-alt);
}

/* Dial code text — same size as input text */
.ohh-form-field .iti__selected-dial-code {
	font-size: .95rem;
	color: var(--ohh-primary);
}

/* Arrow chevron */
.ohh-form-field .iti__arrow {
	border-top-color: var(--ohh-muted);
}
.ohh-form-field .iti__arrow--up {
	border-bottom-color: var(--ohh-muted);
	border-top: none;
}

/* Dropdown container */
.ohh-form-field .iti__dropdown-content {
	background: var(--ohh-bg-alt);
	border: 1px solid var(--ohh-border);
	border-radius: var(--ohh-radius-sm);
	box-shadow: var(--ohh-shadow);
	min-width: 280px;
}

/* Search box */
.ohh-form-field .iti__search-input {
	background: var(--ohh-bg);
	border-bottom: 1px solid var(--ohh-border);
	color: var(--ohh-primary);
	font-size: .9rem;
	padding: 8px 10px;
	width: 100%;
	box-sizing: border-box;
	outline: none;
}
.ohh-form-field .iti__search-input::placeholder {
	color: var(--ohh-muted);
}

/* Country list items — grid layout: flag | name (fixed width) | dial code */
.ohh-form-field .iti__country {
	display: grid;
	grid-template-columns: 28px 1fr auto;
	align-items: center;
	gap: 0 10px;
	padding: 8px 12px;
	cursor: pointer;
}
.ohh-form-field .iti__country.iti__hide {
	display: none !important;
}
.ohh-form-field .iti__flag-box {
	display: flex;
	justify-content: center;
}
.ohh-form-field .iti__country-name {
	color: var(--ohh-primary);
	font-size: .88rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ohh-form-field .iti__dial-code {
	color: var(--ohh-muted);
	font-size: .85rem;
	text-align: right;
	white-space: nowrap;
}

/* Hover / active / highlighted */
.ohh-form-field .iti__country.iti__highlight,
.ohh-form-field .iti__country:hover {
	background: rgba(255,255,255,.06);
}

/* Divider between preferred and all countries */
.ohh-form-field .iti__divider {
	border-bottom: 1px solid var(--ohh-border);
	margin: 4px 0;
}

/* The mobile phone-country popup is moved under <body> by intl-tel-input,
 * so these rules intentionally cannot be scoped below the form wrapper. */
.iti--container {
	--iti-mobile-popup-margin: 16px;
	--iti-border-color: #3a3a3a;
	--iti-dialcode-color: #999;
	--iti-dropdown-bg: #1a1a1a;
	--iti-hover-color: rgba(255, 255, 255, .08);
	color: #fff;
	font-family: inherit;
}

.iti--container .iti__dropdown-content {
	overflow: hidden;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	background: #1a1a1a;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
}

.iti--container .iti__search-input {
	display: block;
	width: calc(100% - 24px);
	min-height: 48px;
	margin: 12px;
	padding: 10px 14px;
	border: 1px solid #444;
	border-radius: 5px;
	background: #0d0d0d;
	color: #fff;
	font-size: 16px;
	box-sizing: border-box;
	outline: none;
}

.iti--container .iti__search-input:focus {
	border-color: #c41e3a;
	box-shadow: 0 0 0 3px rgba(196, 30, 58, .18);
}

.iti--container .iti__search-input::placeholder {
	color: #888;
}

.iti--container .iti__search-input + .iti__country-list {
	border-top: 1px solid #3a3a3a;
}

.iti--container .iti__country {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 9px 14px;
}

.iti--container .iti__country.iti__hide {
	display: none !important;
}

.iti--container .iti__country-name {
	margin: 0;
	overflow: hidden;
	color: #fff;
	font-size: 15px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.iti--container .iti__dial-code {
	color: #999;
	font-size: 14px;
	white-space: nowrap;
}

.iti--container .iti__country.iti__highlight {
	background: rgba(196, 30, 58, .2);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.ohh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 24px;
	border-radius: var(--ohh-radius-sm);
	font-size: .95rem;
	font-weight: 700;
	font-family: var(--ohh-font);
	cursor: pointer;
	transition: background var(--ohh-transition), box-shadow var(--ohh-transition), transform var(--ohh-transition);
	border: 2px solid transparent;
	text-decoration: none;
	letter-spacing: .02em;
}

.ohh-btn--primary {
	background: var(--ohh-accent);
	color: #fff;
	border-color: var(--ohh-accent);
}

.ohh-btn--primary:hover:not(:disabled) {
	background: var(--ohh-accent-dark);
	border-color: var(--ohh-accent-dark);
	box-shadow: 0 4px 18px rgba(196, 30, 58, .45);
	transform: translateY(-1px);
}

.ohh-btn--primary:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.ohh-btn--back {
	background: none;
	color: var(--ohh-muted);
	border-color: var(--ohh-border);
}

.ohh-btn--back:hover {
	border-color: #555;
	color: var(--ohh-primary);
}

.ohh-step-actions,
.ohh-form-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	gap: 12px;
	flex-wrap: wrap;
}

.ohh-form-actions {
	border-top: 1px solid var(--ohh-border);
	padding-top: 20px;
}

/* ── Inline payment ──────────────────────────────────────────────────────── */
.ohh-payment-panel[hidden],
.ohh-card-payment[hidden],
.ohh-wallet-empty[hidden] {
	display: none;
}

.ohh-payment-panel {
	background: var(--ohh-bg);
	border: 1px solid var(--ohh-border);
	border-radius: var(--ohh-radius);
	padding: 20px;
	box-shadow: var(--ohh-shadow);
}

.ohh-payment-heading {
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--ohh-primary);
}

.ohh-payment-methods {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ohh-wallet-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ohh-wallet-empty {
	margin: 0;
	padding: 11px 14px;
	border: 1px dashed var(--ohh-border);
	border-radius: var(--ohh-radius-sm);
	color: var(--ohh-muted);
	font-size: .88rem;
	text-align: center;
}

.ohh-payment-choice {
	width: 100%;
	min-height: 46px;
	border: 2px solid var(--ohh-border);
	border-radius: var(--ohh-radius-sm);
	background: var(--ohh-bg-alt);
	color: var(--ohh-primary);
	font-size: .95rem;
	font-weight: 700;
	font-family: var(--ohh-font);
	cursor: pointer;
	transition: border-color var(--ohh-transition), background var(--ohh-transition), box-shadow var(--ohh-transition);
}

.ohh-payment-choice:hover {
	border-color: var(--ohh-accent);
	background: var(--ohh-accent-glow);
	box-shadow: 0 0 0 3px var(--ohh-accent-glow);
}

#ohh-card-choice {
	border-color: var(--ohh-accent);
	background: var(--ohh-accent);
	color: #fff;
	font-weight: 800;
}

#ohh-card-choice:hover,
#ohh-card-choice:focus-visible {
	border-color: #e52743;
	background: #e52743;
	color: #fff;
}

.ohh-card-payment {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--ohh-border);
	border-radius: var(--ohh-radius-sm);
	background: #0d0d0d;
}

.ohh-card-input {
	padding: 12px 14px;
	border: 1px solid var(--ohh-border);
	border-radius: var(--ohh-radius-sm);
	background: var(--ohh-bg);
}

.ohh-pay-button {
	width: 100%;
}

/* ── Payment-link shortcode ──────────────────────────────────────────────── */
.ohh-retry-wrap {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 18px;
	box-sizing: border-box;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ohh-retry-card {
	padding: 24px;
	background: #111;
	border: 1px solid #2a2a2a;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.ohh-retry-title {
	margin: 0 0 8px;
	color: #fff;
	font-size: 26px;
	line-height: 1.2;
}

.ohh-retry-meta {
	margin: 0 0 22px;
	color: #ccc;
}

.ohh-retry-timer {
	margin: -10px 0 22px;
	color: #d8a7ff;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.ohh-retry-methods {
	display: grid;
	gap: 12px;
}

.ohh-retry-wallet-empty {
	margin: 0;
	padding: 11px 14px;
	color: #888;
	font-size: 14px;
	text-align: center;
	border: 1px dashed #2a2a2a;
	border-radius: 4px;
}

.ohh-retry-card .ohh-card-input {
	padding: 13px 14px;
	background: #111;
	border: 1px solid #2a2a2a;
	border-radius: 4px;
}

.ohh-retry-card .ohh-retry-btn {
	width: 100%;
	min-height: 46px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	background: #c41e3a;
	border: 2px solid #c41e3a;
	border-radius: 4px;
}

.ohh-retry-card .ohh-retry-btn:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.ohh-retry-error {
	display: none;
	margin: 0 0 16px;
	padding: 12px 14px;
	color: #e8919e;
	background: rgba(196, 30, 58, .12);
	border: 1px solid #c41e3a;
	border-radius: 4px;
}

.ohh-retry-message {
	max-width: 560px;
	margin: 20px auto;
	padding: 16px 18px;
	color: #ccc;
	background: #111;
	border: 1px solid #2a2a2a;
	border-radius: 6px;
}

@media (max-width: 600px) {
	.ohh-retry-wrap {
		padding: 24px 12px;
	}

	.ohh-retry-card {
		padding: 18px;
	}
}

/* ── Thank-you page shortcode output ─────────────────────────────────────── */
.ohh-reservation-summary {
	display: grid;
	gap: 10px;
	margin: 0;
}

.ohh-reservation-summary__row {
	display: grid;
	grid-template-columns: minmax(120px, .42fr) 1fr;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ohh-reservation-summary__row dt,
.ohh-reservation-summary__row dd {
	margin: 0;
}

.ohh-reservation-summary__row dt {
	color: var(--ohh-muted, #888888);
	font-weight: 600;
}

.ohh-reservation-summary__row dd {
	color: var(--ohh-primary, #ffffff);
	font-weight: 700;
}

/* ── Loading spinner ──────────────────────────────────────────────────────── */
.ohh-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ohhSpin .7s linear infinite;
	vertical-align: middle;
}

@keyframes ohhSpin {
	to { transform: rotate(360deg); }
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.ohh-empty-state {
	text-align: center;
	padding: 32px 20px;
	color: var(--ohh-muted);
	font-size: .95rem;
	background: var(--ohh-bg);
	border-radius: var(--ohh-radius);
	border: 1px dashed var(--ohh-border);
}

/* Empty state spinner inherits its own color */
.ohh-empty-state .ohh-spinner {
	border-color: rgba(136, 136, 136, .25);
	border-top-color: var(--ohh-muted);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
	body.ohh-country-picker-open {
		overflow: hidden;
	}

	.ohh-country-picker__panel {
		position: fixed;
		z-index: 1000000;
		inset: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
		display: flex;
		flex-direction: column;
		width: auto;
		border-radius: 12px;
		box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .78), 0 20px 60px rgba(0, 0, 0, .7);
	}

	.ohh-country-picker__header {
		flex: 0 0 auto;
		padding: 14px 16px 8px;
		font-size: 1rem;
	}

	.ohh-country-picker__search {
		flex: 0 0 auto;
		min-height: 50px;
	}

	.ohh-country-picker__options {
		flex: 1 1 auto;
		max-height: none;
		min-height: 0;
	}

	.ohh-country-picker__options button {
		min-height: 50px;
		padding: 11px 16px;
		font-size: 1rem;
	}

	.iti--fullscreen-popup.iti--container {
		background: rgba(0, 0, 0, .78);
	}

	.iti--fullscreen-popup .iti__dropdown-content {
		border-radius: 12px;
	}

	.iti--fullscreen-popup .iti__country-list {
		min-height: 0;
	}

	.iti--fullscreen-popup .iti__country {
		min-height: 50px;
		padding: 11px 14px;
	}

	.ohh-map-modal {
		align-items: stretch;
		padding: 0;
	}

	.ohh-map-modal__panel {
		width: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border: 0;
		border-radius: 0;
	}

	.ohh-map-modal__header {
		padding: 14px 16px;
	}

	.ohh-map-modal__viewport {
		padding: 12px;
	}

	.ohh-map-open-btn {
		width: 100%;
	}

	.ohh-step-label {
		display: none;
	}

	.ohh-form-row--half {
		grid-template-columns: 1fr;
	}

	.ohh-tables-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}

	.ohh-guests-grid {
		gap: 8px;
	}

	.ohh-guest-btn {
		width: 46px;
		height: 46px;
		font-size: .95rem;
	}

	.ohh-form-actions {
		flex-direction: column-reverse;
	}

	.ohh-btn {
		width: 100%;
	}

	.ohh-slot-btn {
		padding: 10px 14px;
		font-size: .88rem;
	}
}

/* Individual Stripe fields stay stacked on desktop and mobile. */
.ohh-card-field { min-width: 0; }
.ohh-card-field label {
	display: block;
	margin: 0 0 8px;
	color: #ccc;
	font-size: 14px;
	line-height: 1.4;
}
.ohh-card-input { min-height: 46px; box-sizing: border-box; }
.ohh-card-input.StripeElement--focus {
	border-color: #c41e3a;
	outline: 2px solid #c41e3a;
	outline-offset: 2px;
}
.ohh-card-input.StripeElement--invalid { border-color: #e05770; }

.ohh-email-suggestion[hidden] { display: none !important; }
.ohh-email-suggestion { margin-top: 10px; color: #ddd; font-size: 14px; }
.ohh-email-suggestion p { margin: 0 0 8px; overflow-wrap: anywhere; }
.ohh-email-suggestion-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ohh-email-suggestion-actions button {
	max-width: 100%; min-height: 44px; padding: 8px 12px;
	color: #fff; background: var(--ohh-bg); border: 1px solid var(--ohh-border);
	border-radius: var(--ohh-radius-sm); font: inherit; cursor: pointer;
	white-space: normal; overflow-wrap: anywhere;
}
.ohh-email-suggestion-actions button:focus-visible { outline: 2px solid var(--ohh-accent); outline-offset: 2px; }
.ohh-email-suggestion-actions button:hover { border-color: var(--ohh-accent); }

/* Voucher declaration occupies one full row in the customer details step. */
.ohh-voucher-toggle { display:flex!important; align-items:center; gap:12px; padding:16px; border:1px solid #b45a91; background:#291420; color:#ffe3f2; border-radius:8px; cursor:pointer; }
.ohh-voucher-toggle input[type="checkbox"] { appearance:auto!important; -webkit-appearance:checkbox!important; width:20px!important; height:20px!important; flex:0 0 20px; margin:0!important; accent-color:#d85ba0; }
#ohh-voucher-fields { margin-top:12px; padding:20px; border:1px solid #b45a91; border-radius:8px; background:#291420; min-width:0; }
#ohh-voucher-fields label { color:#ffe3f2; }
.ohh-voucher-toggle:has(input:focus-visible) { outline:2px solid #ff90cd; outline-offset:3px; }
#ohh-voucher-fields[hidden], #ohh-voucher-code-field[hidden] { display:none!important; }
#ohh-voucher-code-field { margin-top:16px; }

.ohh-country-picker__options #ohh-country-more { color:#8cbbfa; border-top:1px solid #333; font-weight:600; }
