/* EB Banner Builder – public builder (values from the 2026-10 design export). */

.ebbb-builder {
	--ebbb-primary: #0b6fb0;
	--ebbb-primary-hover: #095a8f;
	--ebbb-text: #1f2933;
	--ebbb-muted: #55606e;
	--ebbb-label: #3d4753;
	--ebbb-success: #2f7d4f;
	--ebbb-border: #dbe2ea;
	--ebbb-border-input: #c9d3de;
	--ebbb-divider: #e6ebf0;
	--ebbb-surface: #f4f7fa;
	--ebbb-surface-2: #f8fafc;
	--ebbb-tabs-bg: #eef2f6;
	--ebbb-ghost-hover: #eef4fa;
	--ebbb-badge-bg: #e8f2fb;

	display: flex;
	flex-direction: column;
	gap: 40px;
	color: var(--ebbb-text);
	font-family: 'Open Sans', system-ui, sans-serif;
}

.ebbb-builder *,
.ebbb-builder *::before,
.ebbb-builder *::after {
	box-sizing: border-box;
}

.ebbb-builder [hidden] {
	display: none !important;
}

.ebbb-builder h2 {
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--ebbb-text);
}

.ebbb-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

/* Wrappers from the child theme's banner set templates. */
.ebbb-section {
	padding: 0 24px 96px;
}

.ebbb-section--solo {
	padding-top: 56px;
}

.ebbb-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* ---------- Panel ---------- */

.ebbb-panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 28px 32px 24px;
	background: #fff;
	border: 1px solid var(--ebbb-border);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
}

.ebbb-panel-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ebbb-builder .ebbb-panel-sub {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ebbb-muted);
}

.ebbb-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	row-gap: 24px;
}

.ebbb-step {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 0 28px;
	border-left: 1px solid var(--ebbb-divider);
}

.ebbb-step:first-child {
	padding-left: 0;
	border-left: 0;
}

.ebbb-step:last-child {
	padding-right: 0;
}

.ebbb-step-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ebbb-badge {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ebbb-badge-bg);
	color: var(--ebbb-primary);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.ebbb-badge--lg {
	width: 28px;
	height: 28px;
}

.ebbb-step-label {
	font-size: 15px;
	font-weight: 700;
	color: var(--ebbb-text);
}

/* Booth number field with "#" adornment. */
.ebbb-booth-field {
	display: flex;
	align-items: stretch;
}

.ebbb-booth-prefix {
	display: flex;
	align-items: center;
	padding: 0 14px;
	background: var(--ebbb-surface);
	border: 1px solid var(--ebbb-border-input);
	border-right: 0;
	border-radius: 8px 0 0 8px;
	color: var(--ebbb-muted);
	font-size: 16px;
	font-weight: 700;
}

.ebbb-builder .ebbb-input {
	flex: 1;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--ebbb-border-input);
	border-radius: 0 8px 8px 0;
	background: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	color: var(--ebbb-text);
}

.ebbb-builder .ebbb-input:focus {
	outline: 3px solid #b9daf3;
	outline-offset: 0;
	border-color: var(--ebbb-primary);
}

/* Logo drop zone and chosen-logo chip. */
.ebbb-drop {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 2px dashed #b8c4d1;
	border-radius: 10px;
	background: #fafbfd;
	color: var(--ebbb-text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ebbb-drop svg {
	color: var(--ebbb-primary);
	flex: none;
}

.ebbb-drop:hover,
.ebbb-drop:focus-visible,
.ebbb-drop.is-dragover {
	border-color: var(--ebbb-primary);
	background: #f2f8fd;
}

.ebbb-drop:focus-visible {
	outline: 3px solid #b9daf3;
	outline-offset: 0;
}

.ebbb-drop-browse {
	color: var(--ebbb-primary);
	text-decoration: underline;
}

.ebbb-chip {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 6px;
	border: 1px solid var(--ebbb-border);
	border-radius: 10px;
	background: var(--ebbb-surface-2);
}

.ebbb-chip-thumb {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 34px;
	padding: 3px;
	background: #fff;
	border: 1px solid var(--ebbb-border);
	border-radius: 6px;
}

.ebbb-chip-thumb img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.ebbb-chip-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ebbb-chip-name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ebbb-chip-status {
	font-size: 12px;
	font-weight: 600;
	color: var(--ebbb-success);
}

.ebbb-builder .ebbb-help {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ebbb-muted);
}

.ebbb-builder .ebbb-error {
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: #b32d2e;
}

/* ---------- Buttons ---------- */

.ebbb-builder .ebbb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 48px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--ebbb-primary);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.ebbb-builder .ebbb-btn:hover {
	background: var(--ebbb-primary-hover);
	color: #fff;
}

.ebbb-builder .ebbb-btn--sm {
	display: inline-flex;
	height: 44px;
	padding: 0 24px;
	border-radius: 10px;
	font-size: 14px;
}

.ebbb-step-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: -8px;
}

.ebbb-builder .ebbb-ghost {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	margin: 0 0 0 -8px;
	padding: 0 8px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ebbb-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.ebbb-builder .ebbb-ghost:hover,
.ebbb-builder .ebbb-icon-btn:hover {
	background: var(--ebbb-ghost-hover);
}

.ebbb-builder .ebbb-icon-btn {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ebbb-border-input);
	border-radius: 10px;
	background: #fff;
	color: var(--ebbb-primary);
	cursor: pointer;
}

.ebbb-builder .ebbb-icon-btn--ghost {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ebbb-muted);
}

.ebbb-builder .ebbb-dialog-head .ebbb-icon-btn--ghost {
	width: 44px;
	height: 44px;
}

.ebbb-builder .ebbb-text-btn {
	min-height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ebbb-primary);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.ebbb-builder .ebbb-text-btn:hover {
	color: #084c7a;
}

.ebbb-builder button:focus-visible {
	outline: 3px solid #b9daf3;
	outline-offset: 2px;
}

/* ---------- Your banners ---------- */

.ebbb-results {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.ebbb-results-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ebbb-divider);
}

.ebbb-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: 10px;
	background: var(--ebbb-tabs-bg);
}

.ebbb-builder .ebbb-tab {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ebbb-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.ebbb-builder .ebbb-tab[aria-pressed="true"] {
	background: #fff;
	color: var(--ebbb-text);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14);
}

.ebbb-tab-count {
	opacity: 0.65;
}

.ebbb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 20px;
}

.ebbb-size {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ebbb-border);
	border-radius: 12px;
}

.ebbb-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 260px;
	padding: 20px;
	background: var(--ebbb-surface);
	border-bottom: 1px solid var(--ebbb-divider);
}

.ebbb-canvas {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 220px;
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12), 0 6px 16px rgba(16, 24, 40, 0.1);
}

.ebbb-size-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 12px 18px;
}

.ebbb-size-meta {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ebbb-size-name {
	font-size: 15px;
	font-weight: 700;
}

.ebbb-size-dims {
	font-size: 13px;
	color: var(--ebbb-muted);
}

.ebbb-size-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-top: auto;
	padding: 10px 18px;
	background: var(--ebbb-surface);
	border-top: 1px solid var(--ebbb-divider);
	font-size: 13px;
}

.ebbb-size-help-label {
	font-weight: 600;
	color: var(--ebbb-label);
}

/* ---------- Email help dialog ---------- */

.ebbb-dialog {
	width: calc(100% - 48px);
	max-width: 640px;
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: var(--ebbb-text);
	box-shadow: 0 24px 64px rgba(16, 24, 40, 0.3);
}

.ebbb-dialog::backdrop {
	background: rgba(17, 24, 39, 0.55);
}

.ebbb-dialog-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 24px 0;
}

.ebbb-dialog-tabs {
	padding: 16px 24px 0;
}

.ebbb-dialog-tabs .ebbb-tab {
	padding: 0 18px;
}

.ebbb-dialog-body {
	padding: 20px 24px 24px;
}

.ebbb-builder .ebbb-help-steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ebbb-builder .ebbb-help-steps li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
}

.ebbb-help-steps li > span:last-child {
	padding-top: 2px;
}

.ebbb-dialog-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 24px;
	background: var(--ebbb-surface-2);
	border-top: 1px solid var(--ebbb-divider);
	border-radius: 0 0 14px 14px;
}

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
	.ebbb-section {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ebbb-section--solo {
		padding-top: 32px;
	}

	.ebbb-panel {
		padding: 22px 20px 20px;
	}

	/* Steps stack: drop the column dividers and side padding. */
	.ebbb-step {
		padding: 0;
		border-left: 0;
	}

	.ebbb-stage {
		height: 220px;
	}

	.ebbb-canvas {
		max-height: 180px;
	}
}

/* Speaker sets: stacked text fields, photo zoom, drag-to-reposition. */
.ebbb-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.ebbb-field-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ebbb-label);
}

.ebbb-field-optional {
	font-weight: 400;
	color: var(--ebbb-muted);
}

.ebbb-builder .ebbb-input--full {
	flex: none;
	height: 44px;
	border-radius: 8px;
	font-size: 16px;
}

.ebbb-builder .ebbb-input--multiline {
	display: block;
	width: 100%;
	height: auto;
	padding: 10px 14px;
	line-height: 1.4;
	resize: none;
}

.ebbb-chip-thumb--photo {
	width: 34px;
	padding: 0;
	overflow: hidden;
	border-radius: 50%;
}

.ebbb-chip-thumb--photo img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
}

.ebbb-zoom {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ebbb-zoom-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ebbb-label);
}

/* Draw the track and thumb ourselves; theme resets can hide the native track. */
.ebbb-zoom input[type="range"] {
	flex: 1;
	min-width: 0;
	height: 20px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.ebbb-zoom input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	background: var(--ebbb-border-input);
	border-radius: 2px;
}

.ebbb-zoom input[type="range"]::-moz-range-track {
	height: 4px;
	background: var(--ebbb-border-input);
	border-radius: 2px;
}

.ebbb-zoom input[type="range"]::-moz-range-progress {
	height: 4px;
	background: var(--ebbb-primary);
	border-radius: 2px;
}

.ebbb-zoom input[type="range"]::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	margin-top: -7px;
	background: var(--ebbb-primary);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.3);
	-webkit-appearance: none;
	appearance: none;
}

.ebbb-zoom input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	background: var(--ebbb-primary);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.3);
}

.ebbb-zoom input[type="range"]:focus-visible {
	outline: 2px solid var(--ebbb-primary);
	outline-offset: 2px;
}

.ebbb-builder--speaker.has-photo .ebbb-canvas {
	cursor: grab;
	touch-action: none;
}

.ebbb-builder--speaker.has-photo .ebbb-canvas.is-dragging {
	cursor: grabbing;
}

/* "Drag to reposition" pill at the top of each preview (clear of footer art), shown until the first drag. */
.ebbb-builder--speaker .ebbb-stage {
	position: relative;
}

.ebbb-drag-hint {
	position: absolute;
	top: 10px;
	left: 50%;
	z-index: 1;
	display: none;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	color: #fff;
	background: rgba(16, 24, 40, 0.78);
	border-radius: 999px;
	transform: translateX(-50%);
	pointer-events: none;
}

.ebbb-builder--speaker.has-photo:not(.has-dragged) .ebbb-drag-hint {
	display: inline-flex;
	animation: ebbb-hint-in 0.3s ease-out;
}

@keyframes ebbb-hint-in {
	from {
		opacity: 0;
		transform: translate(-50%, -6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ebbb-builder--speaker.has-photo:not(.has-dragged) .ebbb-drag-hint {
		animation: none;
	}
}

/* Homepage cards */

.ebbb-cards {
	display: grid;
	grid-template-columns: repeat(var(--ebbb-cols, 3), minmax(0, 1fr));
	gap: 2.5em 3.5em;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 980px) {
	.ebbb-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ebbb-cards {
		grid-template-columns: 1fr;
	}
}

.ebbb-cards .ebbb-card {
	display: flex;
	flex-direction: column;
	text-align: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ebbb-card-image {
	display: block;
	width: 100%;
}

.ebbb-card-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Full-width bar under the image, like the original homepage cards. */
.ebbb-cards .ebbb-card .ebbb-card-button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 1.35em 1em;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: #1192cc;
	border: 0;
	border-radius: 0;
	transition: background-color 0.15s ease;
}

.ebbb-cards .ebbb-card .ebbb-card-button:hover {
	color: #fff;
	background: #0e7cad;
}

.ebbb-cards .ebbb-card .ebbb-card-button:focus-visible {
	outline: 2px solid #0e7cad;
	outline-offset: 2px;
}
