/**
 * Stardust Event Search — native Elementor widget styles.
 *
 * Owned by the widget: this file is registered by the theme and declared as the
 * widget's style dependency (Elementor `get_style_depends()`), so it loads
 * wherever the widget is rendered — frontend, any Elementor page, and the
 * Elementor editor preview — independent of page-content sniffing.
 *
 * Every selector is single-class and scoped to `.festino-event-search`, so
 * Elementor's generated `{{WRAPPER}} …` styles (2 classes) always win and can
 * override width, alignment, height, colours, border, radius, typography,
 * padding, icon and focus states without `!important`.
 *
 * Also normalises the browser defaults for the widget's own search input and
 * submit button (scoped — never global).
 */

/* ---- Container ---------------------------------------------------------- */
.festino-event-search-wrap {
	display: flex;
	width: 100%;
	min-width: 0;
}
.festino-event-search {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 4px;
	width: 100%;
	max-width: 520px;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 6px 0 16px;
	box-sizing: border-box;
	background: rgba(14, 10, 9, 0.72);
	border: 1px solid rgba(255, 182, 139, 0.22);
	border-radius: 10px;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
/* ---- Focus: calm, no ring ------------------------------------------------
 * Clicking/tapping shows only a subtle warm border shift (the caret is enough).
 * The global `.festino input/button:focus-visible` ring is neutralised inside
 * the widget (scoped + higher specificity). Text inputs report :focus-visible
 * even on pointer focus, so the input carries no outline at all; the submit
 * button keeps a thin, low-opacity keyboard-only cue. No orange/pink ring. */
.festino-event-search:focus-within {
	border-color: rgba(255, 182, 139, 0.5);
	box-shadow: none;
}
.festino-event-search .festino-event-search__input:focus,
.festino-event-search .festino-event-search__input:focus-visible {
	outline: none;
}
.festino-event-search .festino-event-search__submit:focus {
	outline: none;
}
.festino-event-search .festino-event-search__submit:focus-visible {
	outline: 1px solid rgba(255, 182, 139, 0.65);
	outline-offset: 2px;
}

/* ---- Input (browser-default normalisation, scoped) ---------------------- */
.festino-event-search__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	outline: 0;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	color: #f4dddb;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}
.festino-event-search__input::placeholder {
	color: rgba(224, 192, 175, 0.55);
	font-weight: 400;
	opacity: 1;
}
.festino-event-search__input::-webkit-search-decoration,
.festino-event-search__input::-webkit-search-cancel-button,
.festino-event-search__input::-webkit-search-results-button,
.festino-event-search__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

/* ---- Submit icon button (browser-default normalisation, scoped) --------- */
.festino-event-search__submit {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	color: #ffb68b;
	font: inherit;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.festino-event-search__submit:hover,
.festino-event-search__submit:focus-visible {
	background: rgba(255, 122, 0, 0.16);
	color: #ff7a00;
	outline: none;
}
.festino-event-search__submit .material-symbols-outlined {
	font-size: 20px;
	line-height: 1;
}

/* ---- Mobile — always one horizontal line -------------------------------- */
@media (max-width: 480px) {
	.festino-event-search {
		height: 44px;
		padding-left: 14px;
	}
	.festino-event-search__input { font-size: 14px; }
}
@media (max-width: 360px) {
	.festino-event-search { padding-left: 12px; }
	.festino-event-search__input { font-size: 13.5px; }
}
