/* Mantém o visual/altura do botão Login (= Anuncie). */
.cma-account {
	position: relative;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	line-height: 0; /* evita esticar o botão no wrapper */
}

.cma-account__toggle {
	cursor: pointer;
	text-decoration: none !important;
	box-sizing: border-box;
}

/* Não reescreve o layout do Elementor — só a seta no texto */
.cma-account__toggle .elementor-button-text {
	position: relative;
	padding-right: 0.85em;
}

.cma-account__toggle .elementor-button-text::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	width: 0;
	height: 0;
	margin-top: -2px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.95;
	pointer-events: none;
}

.cma-account__toggle .cma-account__caret,
.cma-account__caret {
	display: inline-block;
	margin-left: 0.35rem;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.9;
	vertical-align: middle;
	position: relative;
	top: 1px;
}

/* Fallback se não houver botão Elementor para clonar */
.cma-account__toggle--fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 10px 20px;
	border: none;
	border-radius: 3px;
	background: #00a0e3;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: none;
}

.cma-account__toggle--fallback:hover,
.cma-account__toggle--fallback:focus,
.cma-account.is-open .cma-account__toggle--fallback {
	background: #008fc9;
	color: #fff !important;
	outline: none;
}

.cma-account__menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 100000;
	min-width: 240px;
	padding: 0.75rem 0 0.35rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
	color: #1f2937;
	line-height: normal;
}

.cma-account.is-open .cma-account__menu {
	display: block;
}

.cma-account__identity {
	padding: 0 1rem 0.65rem;
	border-bottom: 1px solid #eef2f7;
}

.cma-account__name {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.cma-account__email {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.8rem;
	color: #6b7280;
	line-height: 1.3;
}

.cma-account__links {
	display: flex;
	flex-direction: column;
	margin: 0.35rem 0;
	padding: 0;
}

.cma-account__links a {
	display: block;
	padding: 0.55rem 1rem;
	color: #0d6efd;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}

.cma-account__links a:hover {
	background: #f3f6fb;
}

.cma-account__footer {
	display: flex;
	justify-content: flex-end;
	padding: 0.35rem 0.75rem 0.5rem;
	border-top: 1px solid #eef2f7;
}

.cma-account__footer a {
	color: #0d6efd;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	padding: 0.35rem 0.5rem;
	line-height: 1.3;
}

.cma-account__footer a:hover {
	text-decoration: underline;
}
