/**
 * Account bar (.evq-account-bar, filled by account-connect.js) + login modal.
 * Loaded on every page that needs the connect button: the public table page,
 * the section fullmap page, and the trip planner page — so `.evq-btn` is
 * defined here as the shared base button style (trip-planner.css/trip-view.css
 * redeclare the same rules for the pages that only load one or the other;
 * identical rules, so no visual conflict where both stylesheets are present).
 */

/* `all: revert` first: the surrounding site theme applies its own global
   button styling (border/background/box-shadow/font on the bare `button`
   element, sometimes via `!important` or a higher-specificity selector) that
   otherwise wins over this single-class selector regardless of source order
   — reverting to the browser default first, then reasserting every property
   below, makes this correct no matter which mechanism the theme used. */
.evq-btn {
	all: revert;
	box-sizing: border-box;
	display: inline-block;
	font: inherit;
	font-size: 13px;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid var( --evq-border, #e5e7eb );
	background: var( --evq-bg-subtle, #fafbfc );
	color: var( --evq-text, #1f2430 );
	cursor: pointer;
	text-decoration: none;
}

.evq-btn:hover {
	border-color: var( --evq-accent, #1B4C96 );
	color: var( --evq-accent, #1B4C96 );
}

.evq-btn-primary {
	background: var( --evq-accent, #1B4C96 );
	border-color: var( --evq-accent, #1B4C96 );
	color: #fff;
}

.evq-btn-primary:hover {
	background: var( --evq-accent-hover, #163c78 );
	border-color: var( --evq-accent-hover, #163c78 );
	color: #fff;
}

.evq-account-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.evq-account-bar-name {
	color: var( --evq-muted, #6b7280 );
}

.evq-account-bar-logout {
	color: var( --evq-muted, #6b7280 );
	text-decoration: underline;
}

.evq-account-bar-logout:hover {
	color: var( --evq-accent, #1B4C96 );
}

/* --- Header placement ([evq_account_bar] shortcode in the Elementor
   "EVQ-Header" template, next to its mega-menu/social-icons/cart widgets) —
   that header renders white text/icons on a dark accent background, the
   opposite of this bar's default light-page palette above, so it gets its
   own here instead. Mirrors the mega-menu's own font (MuseoSans_500, 16px)
   and hover color (#54CFF7, the site's Elementor "secondary" global color)
   so the button reads as part of that row rather than a foreign element. */
.evq-account-bar-header {
	font-family: 'MuseoSans_500', inherit;
	font-size: 16px;
}

.evq-account-bar-header .evq-account-bar-name,
.evq-account-bar-header .evq-account-bar-logout {
	color: #fff;
}

.evq-account-bar-header .evq-account-bar-logout:hover {
	color: #54CFF7;
}

.evq-account-bar-header .evq-account-bar-connect {
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	padding: 8px 20px;
	border-radius: 999px;
	background: transparent;
	border-color: rgba( 255, 255, 255, 0.6 );
	color: #fff;
	white-space: nowrap;
}

.evq-account-bar-header .evq-account-bar-connect:hover {
	background: rgba( 255, 255, 255, 0.12 );
	border-color: #54CFF7;
	color: #54CFF7;
}

.evq-connect-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.evq-connect-modal-overlay[hidden] {
	display: none;
}

.evq-connect-modal {
	background: var( --evq-bg, #fff );
	color: var( --evq-text, #1f2430 );
	border-radius: var( --evq-radius, 10px );
	box-shadow: 0 8px 32px var( --evq-shadow, rgba( 0, 0, 0, 0.12 ) );
	padding: 24px;
	width: 320px;
	max-width: calc( 100vw - 32px );
}

.evq-connect-modal h3 {
	margin: 0 0 12px;
	font-size: 16px;
}

.evq-connect-modal-hint:empty {
	display: none;
}

.evq-connect-modal-hint {
	margin: 0 0 12px;
	font-size: 13px;
	color: var( --evq-muted, #6b7280 );
}

.evq-connect-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.evq-connect-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
}

.evq-connect-form input[type="text"],
.evq-connect-form input[type="password"] {
	font: inherit;
	padding: 6px 8px;
	border-radius: 6px;
	border: 1px solid var( --evq-border, #e5e7eb );
	background: var( --evq-bg, #fff );
	color: var( --evq-text, #1f2430 );
}

.evq-connect-remember {
	flex-direction: row !important;
	align-items: center;
}

.evq-connect-turnstile:empty {
	display: none;
}

.evq-connect-error {
	margin: 0;
	font-size: 12px;
	color: var( --evq-tag-red-fg, #c62828 );
}

.evq-connect-form-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}
