/* TH Contact Dropdown. Colors, spacing and type come from the widget's Elementor controls. */
.thd {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.thd .thd__btn {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s ease, color .2s ease;
}
/* Icon-only button stays a perfect circle/square, whatever the padding. */
.thd .thd__btn--icon { aspect-ratio: 1 / 1; }
.thd .thd__btn:focus { outline: none; }
.thd .thd__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.thd__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.thd__icon svg { display: block; }

.thd__panel {
	--thd-fade: 500ms;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: max-content;
	max-width: calc(100vw - 10px);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--thd-fade) ease, visibility 0s linear var(--thd-fade);
}
.thd__panel.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transition: opacity var(--thd-fade) ease, visibility 0s linear 0s;
}
/* Without JavaScript, keyboard users can still reach the content. */
.thd:not(.is-ready):focus-within .thd__panel {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
	.thd__panel,
	.thd__panel.is-open { transition: none; }
}
