/*
 * Event Booking by Divino – public styles.
 * Every form sets its own --ebd-* variables from Event Bookings → Forms → Style (EBD_Forms::css()),
 * scoped to .ebd-app[data-form="ID"]. The values below are only fallbacks.
 */
.ebd-app {
	--ebd-primary: #1a1a1a;
	--ebd-on-primary: #ffffff;
	--ebd-accent: #1a1a1a;
	--ebd-text: #1a1a1a;
	--ebd-primary-soft: color-mix(in srgb, var(--ebd-accent) 7%, transparent);
	--ebd-line: rgba(128, 128, 128, .3);
	--ebd-line-soft: rgba(128, 128, 128, .18);
	--ebd-surface: rgba(128, 128, 128, .06);
	--ebd-danger: #c0362c;
	--ebd-success: #1e7a46;
	--ebd-radius: 6px;
	--ebd-gap: 28px;
	width: 100%;
	max-width: var(--ebd-max-width, none); /* fills its container (Elementor column, page, …); set --ebd-max-width to cap it */

	line-height: 1.5;
	color: var(--ebd-text);
	font-family: var(--ebd-font-body, inherit);
	font-size: var(--ebd-fs, 16px);
	text-align: left;
}
.ebd-app .ebd-title,
.ebd-app .ebd-step-title,
.ebd-app .ebd-sum-title,
.ebd-app .ebd-event-body strong,
.ebd-app .ebd-soldout-box strong {
	font-family: var(--ebd-font-heading, inherit);
	color: var(--ebd-text);
}
.ebd-app p, .ebd-app label, .ebd-app dt, .ebd-app dd, .ebd-app input, .ebd-app textarea, .ebd-app select { color: var(--ebd-text); font-family: var(--ebd-font-body, inherit); }
.ebd-app *, .ebd-app *::before, .ebd-app *::after { box-sizing: border-box; }
.ebd-app button {
	-webkit-appearance: none; appearance: none;
	font: inherit; line-height: 1.2; letter-spacing: normal; text-transform: none;
	margin: 0; min-height: 0; box-shadow: none; text-shadow: none; cursor: pointer; color: inherit;
}
.ebd-app svg { display: inline-block; vertical-align: middle; flex: none; }
.ebd-muted, .ebd-hint, .ebd-slot-meta, .ebd-eyebrow, .ebd-ticket dt, .ebd-sum dt { opacity: .7; }

/* Container */
.ebd-card {
	background: var(--ebd-card-bg, transparent);
	border: var(--ebd-card-bw, 1px) solid var(--ebd-card-bc, var(--ebd-line-soft));
	border-radius: var(--ebd-card-radius, var(--ebd-radius));
	box-shadow: var(--ebd-card-shadow, none);
	padding: min(var(--ebd-card-pad, 36px), 6vw);
}
.ebd-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 160px; opacity: .7; }
.ebd-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ebd-line); border-top-color: currentColor; animation: ebd-spin .8s linear infinite; }
@keyframes ebd-spin { to { transform: rotate(360deg); } }

/* Header */
.ebd-head { margin-bottom: var(--ebd-gap); padding-bottom: var(--ebd-gap); border-bottom: 1px solid var(--ebd-line-soft); }
.ebd-eyebrow { font-size: .875em; margin-bottom: 6px; }
.ebd-app .ebd-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.ebd-head .ebd-title:last-child { margin-bottom: 0; }
.ebd-desc { max-width: 65ch; }
.ebd-desc p { margin: 0 0 .6em; }
.ebd-desc p:last-child { margin-bottom: 0; }
.ebd-lead { max-width: 52ch; margin: 0 auto 24px; }

.ebd-app .ebd-back { background: none; border: 0; padding: 0; font-size: .875em; opacity: .7; margin-bottom: 16px; }
.ebd-app .ebd-back:hover { opacity: 1; text-decoration: underline; }

/* Layout */

/* Sections */
.ebd-step { margin: 0 0 var(--ebd-gap); }
.ebd-app .ebd-step-title { font-size: var(--ebd-title-fs, 1.0625rem); font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; margin: 0 0 12px; }

/* Guests + high chairs side by side */
.ebd-pair { display: grid; grid-template-columns: auto 1fr; column-gap: 48px; }
/* Width classes come from public.js (sizeClasses): CSS container queries are not used because
   `container-type` makes Elementor's flex containers mis-measure the widget height (blank space below). */
.ebd-app.is-w600 .ebd-pair { grid-template-columns: 1fr; }
@media (max-width: 600px) { .ebd-pair { grid-template-columns: 1fr; } }
.ebd-hint { font-size: .875em; margin: 8px 0 0; }
.ebd-hint a { color: inherit; }
.ebd-hint.is-warn { color: var(--ebd-danger); opacity: 1; }
.ebd-step-title .ebd-hc-hint { margin: 0; font-weight: 400; }

/* Guest count */
.ebd-stepper { display: inline-flex; align-items: stretch; border: var(--ebd-input-bw, 1px) solid var(--ebd-input-bc, var(--ebd-line)); border-radius: var(--ebd-radius); background: var(--ebd-input-bg, transparent); }
.ebd-app .ebd-step-btn {
	width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent;
	font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.ebd-app .ebd-step-btn:hover:not(:disabled) { background: var(--ebd-surface); }
.ebd-app .ebd-step-btn:disabled { opacity: .3; cursor: not-allowed; }
.ebd-step-val { min-width: 96px; display: flex; align-items: center; justify-content: center; gap: 6px; border-left: var(--ebd-input-bw, 1px) solid var(--ebd-input-bc, var(--ebd-line)); border-right: var(--ebd-input-bw, 1px) solid var(--ebd-input-bc, var(--ebd-line)); }
.ebd-step-val b { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ebd-step-val span { font-size: .875em; opacity: .7; }

/* Options (high chairs) */
.ebd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ebd-app .ebd-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--ebd-radius);
	border: var(--ebd-input-bw, 1px) solid var(--ebd-input-bc, var(--ebd-line)); background: var(--ebd-input-bg, transparent); font-size: .9375em;
}
.ebd-app .ebd-chip:hover:not(:disabled) { border-color: currentColor; }
.ebd-app .ebd-chip.is-active { background: var(--ebd-accent); border-color: var(--ebd-accent); color: var(--ebd-on-accent, #fff); }
.ebd-app .ebd-chip:disabled { opacity: .35; cursor: not-allowed; }

/* Seatings */
.ebd-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ebd-app .ebd-slot {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
	padding: 12px 14px; border-radius: var(--ebd-radius); border: var(--ebd-input-bw, 1px) solid var(--ebd-input-bc, var(--ebd-line)); background: var(--ebd-input-bg, transparent);
}
.ebd-app .ebd-slot:hover:not(:disabled) { border-color: currentColor; }
.ebd-app .ebd-slot.is-selected { border-color: var(--ebd-accent); background: var(--ebd-primary-soft); box-shadow: inset 0 0 0 1px var(--ebd-accent); }
.ebd-app .ebd-slot:disabled { cursor: not-allowed; opacity: .45; }
.ebd-slot-time { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ebd-slot-meta { font-size: .8125em; }
.ebd-slot.is-low:not(:disabled) .ebd-slot-meta { opacity: 1; color: var(--ebd-danger); }
.ebd-slot-bar { display: block; width: 100%; height: 2px; margin-top: 4px; background: var(--ebd-line-soft); overflow: hidden; }
.ebd-slot-bar i { display: block; height: 100%; background: var(--ebd-accent); }
.ebd-slot-tag { position: absolute; top: 10px; right: 10px; font-size: .6875em; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }

/* Form */
.ebd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ebd-field-gap, 14px); }
.ebd-app.is-w540 .ebd-fields { grid-template-columns: 1fr; }
@media (max-width: 540px) { .ebd-fields { grid-template-columns: 1fr; } }
.ebd-span2 { grid-column: 1 / -1; }
.ebd-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ebd-field > span { font-size: var(--ebd-label-fs, .875em); font-weight: var(--ebd-label-fw, 500); color: var(--ebd-label, inherit); }
.ebd-app .ebd-field input:not([type=checkbox]):not([type=radio]),
.ebd-app .ebd-field textarea,
.ebd-app .ebd-field select {
	width: 100%; padding: var(--ebd-input-py, 11px) 12px; margin: 0; font: inherit; font-size: var(--ebd-fs, 16px); color: inherit; line-height: 1.4; height: auto; min-height: 0;
	background: var(--ebd-input-bg, transparent); border: var(--ebd-input-bw, 1px) solid var(--ebd-input-bc, var(--ebd-line)); border-radius: var(--ebd-radius); box-shadow: none;
}
.ebd-app .ebd-field select {
	-webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.ebd-app .ebd-field input:focus,
.ebd-app .ebd-field textarea:focus,
.ebd-app .ebd-field select:focus { outline: none; border-color: var(--ebd-focus, var(--ebd-primary)); box-shadow: 0 0 0 1px var(--ebd-focus, var(--ebd-primary)); }
.ebd-field.is-invalid input, .ebd-field.is-invalid textarea, .ebd-field.is-invalid select { border-color: var(--ebd-danger); }
.ebd-field.is-invalid > span, .ebd-field.is-invalid .ebd-opt span { color: var(--ebd-danger); }
.ebd-field-help { margin: 0; }
.ebd-options { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ebd-app .ebd-opt { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 1em; line-height: 1.4; }
.ebd-app .ebd-opt input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ebd-accent); cursor: pointer; }
.ebd-app .ebd-f-heading { margin: calc(var(--ebd-gap) - var(--ebd-field-gap, 14px)) 0 0; }
.ebd-app .ebd-fields > .ebd-f-heading:first-child, .ebd-app .ebd-selector + .ebd-f-heading { margin-top: 0; }
.ebd-f-text { margin: 0; opacity: .8; }
.ebd-selector .ebd-step:last-child { margin-bottom: calc(var(--ebd-gap) - var(--ebd-field-gap, 14px)); }
/* Form builder preview: hover / selected field. */
.ebd-editing [data-key] { cursor: pointer; outline: 1px dashed transparent; outline-offset: 5px; border-radius: 1px; }
.ebd-editing [data-key]:hover { outline-color: rgba(34, 113, 177, .55); }
.ebd-editing [data-key].is-picked { outline: 2px solid #2271b1; }
.ebd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Step 2: review */
.ebd-review-hint { margin: -4px 0 12px; }
.ebd-sum { margin: 0 0 16px; padding: 4px 16px 6px; background: var(--ebd-surface); border-radius: var(--ebd-radius); }
.ebd-sum-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; padding: 8px 0 6px; }
/* Label column + value right next to it (no wide gap between them on a wide form). */
.ebd-sum > div:not(.ebd-sum-title) { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 12px; padding: 6px 0; border-top: 1px solid var(--ebd-line-soft); font-size: .9375em; line-height: 1.4; }
.ebd-sum dt { margin: 0; flex: none; }
.ebd-sum dd { margin: 0; font-weight: 500; text-align: left; white-space: pre-line; overflow-wrap: anywhere; }
.ebd-step-form > .ebd-alert { margin-top: -8px; }

/* Buttons */
.ebd-app .ebd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: var(--ebd-btn-w, 100%);
	padding: var(--ebd-btn-py, 13px) 22px; border-radius: var(--ebd-btn-radius, var(--ebd-radius)); border: 1px solid var(--ebd-primary);
	background: var(--ebd-primary); color: var(--ebd-on-primary); font-size: 1rem; font-weight: var(--ebd-btn-fw, 500); text-decoration: none;
	text-transform: var(--ebd-btn-tt, none); letter-spacing: var(--ebd-btn-ls, normal);
	transition: opacity .15s;
}
.ebd-app .ebd-btn:hover:not(:disabled) { opacity: .88; color: var(--ebd-on-primary); }
.ebd-app .ebd-btn:disabled { opacity: .4; cursor: not-allowed; }
.ebd-app .ebd-btn.is-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ebd-spin .8s linear infinite; }
.ebd-app .ebd-btn-ghost { background: transparent; color: inherit; border-color: var(--ebd-line); }
.ebd-app .ebd-btn-ghost:hover:not(:disabled) { opacity: 1; background: var(--ebd-surface); color: inherit; }
.ebd-app .ebd-danger { color: var(--ebd-danger); }
.ebd-app .ebd-danger:hover:not(:disabled) { color: var(--ebd-danger); }
.ebd-app .ebd-danger-solid { background: var(--ebd-danger); border-color: var(--ebd-danger); color: #fff; }
.ebd-app .ebd-danger-solid:hover:not(:disabled) { color: #fff; }
.ebd-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.ebd-actions .ebd-btn { width: auto; flex: var(--ebd-btn-flex, 1 1 180px); }

/* Messages */
.ebd-alert { margin: 0 0 12px; padding: 10px 12px; border-left: 2px solid var(--ebd-danger); background: var(--ebd-surface); color: var(--ebd-danger); font-size: .875em; }
.ebd-notice { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 10px 12px; border-left: 2px solid var(--ebd-success); background: var(--ebd-surface); }
.ebd-notice svg { width: 18px; height: 18px; color: var(--ebd-success); }
.ebd-note { margin: 20px 0 0; padding: 12px 14px; background: var(--ebd-surface); border-radius: var(--ebd-radius); }
.ebd-note a { color: inherit; font-weight: 600; }
.ebd-new { margin: 20px 0 0; font-size: .9375em; }
.ebd-new a { color: inherit; font-weight: 600; }
.ebd-confirm { margin-top: 20px; padding: 16px; border: 1px solid var(--ebd-line); border-radius: var(--ebd-radius); }
.ebd-confirm p { margin: 0; font-weight: 500; }
.ebd-confirm .ebd-actions { margin-top: 14px; }

/* Event list */
.ebd-events { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--ebd-line-soft); }
.ebd-app .ebd-event {
	display: flex; align-items: center; gap: 18px; width: 100%; padding: 16px 4px; text-align: left;
	border: 0; border-bottom: 1px solid var(--ebd-line-soft); border-radius: 0; background: transparent;
}
.ebd-app .ebd-event:hover:not(:disabled) { background: var(--ebd-surface); }
.ebd-app .ebd-event:disabled { opacity: .45; cursor: not-allowed; }
.ebd-event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; flex: none; }
.ebd-event-date b { font-size: 1.5rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ebd-event-date small { font-size: .75em; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-top: 2px; }
.ebd-event-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ebd-event-body strong { font-size: 1.0625rem; font-weight: 600; }
.ebd-event-body small { font-size: .875em; opacity: .7; }
.ebd-event-cta { font-size: .875em; font-weight: 500; white-space: nowrap; }
.ebd-app.is-w520 .ebd-event-cta { display: none; }
@media (max-width: 520px) { .ebd-event-cta { display: none; } }

/* Confirmation / reservation details */
.ebd-success { text-align: center; }
.ebd-check { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--ebd-success); }
.ebd-check svg { width: 44px; height: 44px; }
.ebd-check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: ebd-draw .5s ease-out forwards; }
.ebd-check path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: ebd-draw .3s .35s ease-out forwards; }
@keyframes ebd-draw { to { stroke-dashoffset: 0; } }
.ebd-success .ebd-btn { width: auto; margin-top: 20px; }
.ebd-ticket { text-align: left; max-width: 520px; margin: 0 auto; border: 1px solid var(--ebd-line-soft); border-radius: var(--ebd-radius); }
.ebd-manage .ebd-ticket { max-width: none; }
.ebd-ticket-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--ebd-line-soft); }
.ebd-ticket-head span { font-size: .8125em; opacity: .7; }
.ebd-ticket-head strong { font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ebd-pill { margin-left: auto; font-style: normal; font-size: .8125em; font-weight: 500; color: var(--ebd-success); }
.ebd-pill.is-cancelled { color: inherit; opacity: .6; }
.ebd-ticket dl { margin: 0; padding: 4px 18px 8px; }
.ebd-ticket dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--ebd-line-soft); }
.ebd-ticket dl > div:first-child { border-top: 0; }
.ebd-ticket dt { font-size: .9375em; }
.ebd-ticket dd { margin: 0; font-weight: 500; text-align: right; white-space: pre-line; }

.ebd-empty { text-align: center; opacity: .8; }
.ebd-empty p { margin: 0; }

.ebd-app button:focus-visible, .ebd-app a:focus-visible { outline: 2px solid var(--ebd-focus, var(--ebd-primary)); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ebd-app * { animation: none !important; transition: none !important; } }

/* Sold out (event option "When fully booked: show message") */
.ebd-soldout-box { padding: 14px 16px; background: var(--ebd-surface); border-radius: var(--ebd-radius); }
.ebd-soldout-box strong { display: block; font-weight: 600; margin-bottom: 4px; }
.ebd-soldout-box p { margin: 0; }
.ebd-soldout-box a { color: inherit; font-weight: 600; }
.ebd-book-desc { margin-bottom: var(--ebd-gap); }
