/*
 * Damena Auth Bar
 * Login-state account links: guest buttons (Login / Register) and a
 * member icon with a dropdown (My Account / Logout).
 *
 * Structural base styles. Every selector is chained or scoped so the
 * theme's generic element rules (hello-biz paints raw buttons red on
 * hover: "button:hover { background-color: #c36 }") can never win,
 * while the per-instance CSS generated from the Elementor Style tab
 * keeps its higher specificity and overrides these defaults.
 */

.damena-auth-bar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* Sticky headers form their own stacking context; without a lift, page
 * sections that follow in the DOM paint over the dropdown when it
 * opens below the header's bottom edge. Raise the theme-builder
 * header location above page content (Elementor's popup layer sits
 * far higher, so overlays still win). */
.elementor-location-header {
	position: relative;
	z-index: 99990;
}

.damena-auth-bar.damena-auth-bar--guest {
	gap: 12px;
}

/* Guest buttons */
.damena-auth-bar .damena-auth-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 24px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.damena-auth-bar .damena-auth-bar__btn--primary {
	background-color: #10273C;
	color: #FFFFFF;
}

.damena-auth-bar .damena-auth-bar__btn--primary:hover,
.damena-auth-bar .damena-auth-bar__btn--primary:focus {
	background-color: #14415F;
	color: #FFFFFF;
}

.damena-auth-bar .damena-auth-bar__btn--secondary {
	background-color: transparent;
	color: #14415F;
	border-color: #8C826E;
}

.damena-auth-bar .damena-auth-bar__btn--secondary:hover,
.damena-auth-bar .damena-auth-bar__btn--secondary:focus {
	background-color: #EFE7D6;
	color: #14415F;
	border-color: #8C826E;
}

.damena-auth-bar .damena-auth-bar__btn:focus-visible,
.damena-auth-bar .damena-auth-bar__toggle:focus-visible,
.damena-auth-bar .damena-auth-bar__menu-link:focus-visible {
	outline: 2px solid #14415F;
	outline-offset: 3px;
}

/* Member icon toggle */
.damena-auth-bar.damena-auth-bar--member {
	position: relative;
}

.damena-auth-bar .damena-auth-bar__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: #14415F;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.damena-auth-bar .damena-auth-bar__toggle:hover,
.damena-auth-bar .damena-auth-bar__toggle:focus {
	/* Explicitly neutral background: themes commonly paint raw
	 * buttons red on hover (hello-biz uses #c36). The Style-tab
	 * controls still win because Elementor's generated per-instance
	 * rules carry a higher specificity. */
	background-color: transparent;
	color: #10273C;
}

.damena-auth-bar .damena-auth-bar__toggle i,
.damena-auth-bar .damena-auth-bar__toggle svg {
	font-size: 28px;
	line-height: 1;
}

/* Icons_Manager renders newer Elementor icons as inline SVG, which has
 * no intrinsic size: give it the 1em box tied to the font-size above
 * and let the color rules flow through fill. */
.damena-auth-bar .damena-auth-bar__toggle svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.damena-auth-bar .damena-auth-bar__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Dropdown menu */
.damena-auth-bar .damena-auth-bar__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 200px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background-color: #FFFFFF;
	border: 1px solid #D8CDB6;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(13, 45, 69, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
	z-index: 9999;
}

.damena-auth-bar.is-open .damena-auth-bar__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.damena-auth-bar .damena-auth-bar__menu li {
	margin: 0;
}

.damena-auth-bar .damena-auth-bar__menu-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: transparent;
	color: #34495D;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.damena-auth-bar .damena-auth-bar__menu-link:hover,
.damena-auth-bar .damena-auth-bar__menu-link:focus {
	background-color: #EFE7D6;
	color: #10273C;
}
