/**
 * TechBBQ Filter Dropdown — shared custom select (Resources Resource Type pattern).
 *
 * Figma dropdown trigger: node 7571:85190
 * Figma dropdown menu: node 7571:85436
 */

.techbbq-filter-dropdown {
	position: relative;
	width: 100%;
}

.techbbq-filter-dropdown__trigger {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 8px var(--techbbq-input-padding-inline);
	border: 1px solid var(--techbbq-border-tertiary);
	border-radius: var(--techbbq-input-radius);
	background: var(--techbbq-bg-main);
	color: var(--techbbq-content-primary);
	cursor: pointer;
	font: inherit;
	text-align: left;
	transition: border-color 0.2s ease;
}

.techbbq-filter-dropdown__trigger:hover {
	border-color: var(--techbbq-border-secondary);
}

.techbbq-filter-dropdown.is-open .techbbq-filter-dropdown__trigger,
.techbbq-filter-dropdown__trigger:focus-visible {
	border-color: var(--techbbq-content-primary);
	outline: none;
}

[type="button"].techbbq-filter-dropdown__trigger:hover,
[type="button"].techbbq-filter-dropdown__trigger:focus,
[type="button"].techbbq-filter-dropdown__trigger:active,
button.techbbq-filter-dropdown__trigger:hover,
button.techbbq-filter-dropdown__trigger:focus,
button.techbbq-filter-dropdown__trigger:active,
.techbbq-filter-dropdown.is-open .techbbq-filter-dropdown__trigger {
	background: var(--techbbq-bg-main);
	background-color: var(--techbbq-bg-main);
	color: var(--techbbq-content-primary);
}

.techbbq-filter-dropdown__trigger-label {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-text-paragraph-s-size);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: var(--techbbq-text-paragraph-letter-spacing);
}

.techbbq-filter-dropdown__trigger-icon {
	color: var(--techbbq-content-primary);
	transition: transform 0.2s ease;
}

.techbbq-filter-dropdown__trigger-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

.techbbq-filter-dropdown__trigger-icon svg path {
	stroke-opacity: 1;
}

.techbbq-filter-dropdown.is-open .techbbq-filter-dropdown__trigger-icon {
	transform: rotate(180deg);
}

.techbbq-filter-dropdown__menu {
	position: absolute;
	top: calc(100% + var(--techbbq-space-1));
	left: 0;
	z-index: 20;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 4px 0;
	border-radius: 8px;
	background-color: #222;
	list-style: none;
}

.techbbq-filter-dropdown__menu[hidden] {
	display: none;
}

.techbbq-filter-dropdown__option {
	display: flex;
	gap: var(--techbbq-space-1);
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	color: var(--techbbq-content-primary);
	cursor: pointer;
}

.techbbq-filter-dropdown__option-label {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-text-paragraph-s-size);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: var(--techbbq-text-paragraph-letter-spacing);
}

.techbbq-filter-dropdown__option-dot {
	flex-shrink: 0;
}

.techbbq-filter-dropdown__option-check {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--techbbq-content-primary);
	opacity: 0;
}

.techbbq-filter-dropdown__option-check svg {
	display: block;
	width: 100%;
	height: 100%;
}

.techbbq-filter-dropdown__option.is-selected .techbbq-filter-dropdown__option-check {
	opacity: 1;
}
