/* =========================================================
   AM User Popup — base layout + visual styles (matches design)
   Elementor Style tab can override colors / sizes / padding.
   ========================================================= */

.amu-user-popup {
	position: relative;
	display: inline-flex;
	z-index: 20;
}

/* ---------- Icon toggle (white person icon) ---------- */
.amu-user-popup__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.amu-user-popup__toggle:hover {
	opacity: .85;
	transform: translateY(-1px);
}

.amu-user-popup__toggle:focus-visible,
.amu-user-popup__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.amu-user-popup__toggle i,
.amu-user-popup__toggle svg {
	display: block;
}

.amu-user-popup__toggle svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------- Popup menu panel ---------- */
.amu-user-popup__menu {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 140px;
	width: 180px;
	padding: 14px;
	background-color: #f2f2f2;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px) scale(.98);
	transform-origin: top center;
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.amu-user-popup__menu[hidden] {
	display: none;
}

.amu-user-popup.is-open .amu-user-popup__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.amu-user-popup--left .amu-user-popup__menu {
	left: 0;
	right: auto;
	transform-origin: top left;
}

.amu-user-popup--center .amu-user-popup__menu {
	left: 50%;
	right: auto;
	transform: translate(-50%, -6px) scale(.98);
	transform-origin: top center;
}

.amu-user-popup--center.is-open .amu-user-popup__menu {
	transform: translate(-50%, 0) scale(1);
}

.amu-user-popup--right .amu-user-popup__menu {
	right: 0;
	left: auto;
	transform-origin: top right;
}

/* ---------- Shared button base ---------- */
.amu-user-popup__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 18px;
	border: 2px solid transparent;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
	color: #004b49;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.amu-user-popup__button:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

/* Sign In — filled sage / dusty teal */
.amu-user-popup__button--signin {
	background-color: #9fb8b6;
	border-color: #9fb8b6;
	color: #004b49;
}

.amu-user-popup__button--signin:hover,
.amu-user-popup__button--signin:focus-visible {
	background-color: #8eaaa8;
	border-color: #8eaaa8;
	color: #004b49;
}

/* Sign Up — white with sage border */
.amu-user-popup__button--signup {
	background-color: #ffffff;
	border-color: #9fb8b6;
	color: #004b49;
}

.amu-user-popup__button--signup:hover,
.amu-user-popup__button--signup:focus-visible {
	background-color: #f7fafa;
	border-color: #8eaaa8;
	color: #004b49;
}

@media (prefers-reduced-motion: reduce) {
	.amu-user-popup__toggle,
	.amu-user-popup__menu,
	.amu-user-popup__button {
		transition: none;
	}
}
