/**
 * Psy Core — searchable select (combobox) styles.
 *
 * Designed to look identical to the regular form selects but with a typeahead
 * panel that opens below the trigger. Dark navy surface, pink active accent,
 * white text. Native <select> stays in DOM but is visually hidden.
 */

.psy-ssel {
	position: relative;
	display: block;
	width: 100%;
}

.psy-ssel__native {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.psy-ssel__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	background: rgba( 255, 255, 255, 0.04 );
	color: #fff;
	border: 1px solid rgba( 255, 255, 255, 0.16 );
	border-radius: 10px;
	font: inherit;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.psy-ssel__button:hover,
.psy-ssel.is-open .psy-ssel__button {
	border-color: rgba( 229, 74, 218, 0.6 );
	background: rgba( 255, 255, 255, 0.06 );
}

.psy-ssel__button:focus-visible {
	outline: 2px solid #E54ADA;
	outline-offset: 2px;
}

.psy-ssel__label {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.psy-ssel__label.is-placeholder {
	color: rgba( 255, 255, 255, 0.5 );
}

.psy-ssel__caret {
	flex: 0 0 auto;
	width: 0;
	height: 0;
	margin-left: 12px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #fff;
	transition: transform 0.2s ease;
}

.psy-ssel.is-open .psy-ssel__caret {
	transform: rotate( 180deg );
}

.psy-ssel__panel {
	position: absolute;
	top: calc( 100% + 6px );
	left: 0;
	right: 0;
	z-index: 30;
	background: #0F1730;
	border: 1px solid rgba( 229, 74, 218, 0.4 );
	border-radius: 12px;
	padding: 10px;
	box-shadow: 0 18px 40px rgba( 0, 0, 0, 0.45 );
}

.psy-ssel__panel[hidden] {
	display: none;
}

.psy-ssel__search {
	display: block;
	width: 100%;
	padding: 10px 12px;
	background: rgba( 255, 255, 255, 0.06 );
	color: #fff;
	border: 1px solid rgba( 255, 255, 255, 0.18 );
	border-radius: 8px;
	font: inherit;
	margin-bottom: 8px;
}

.psy-ssel__search::placeholder {
	color: rgba( 255, 255, 255, 0.45 );
}

.psy-ssel__search:focus-visible {
	outline: 2px solid var(--psy-pink, #E54ADA);
	outline-offset: 2px;
	border-color: var(--psy-pink, #E54ADA);
}

.psy-ssel__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 280px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba( 229, 74, 218, 0.5 ) transparent;
}

.psy-ssel__list::-webkit-scrollbar {
	width: 8px;
}

.psy-ssel__list::-webkit-scrollbar-thumb {
	background: rgba( 229, 74, 218, 0.5 );
	border-radius: 4px;
}

.psy-ssel__group {
	padding: 10px 12px 4px;
	color: rgba( 255, 255, 255, 0.55 );
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: default;
	pointer-events: none;
}

.psy-ssel__group + .psy-ssel__option {
	margin-top: 2px;
}

.psy-ssel__option {
	padding: 10px 12px;
	color: #fff;
	border-radius: 6px;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.3;
	transition: background 0.1s ease;
}

.psy-ssel__option:hover,
.psy-ssel__option.is-cursor {
	background: rgba( 229, 74, 218, 0.18 );
}

.psy-ssel__option.is-selected {
	background: rgba( 229, 74, 218, 0.28 );
	font-weight: 600;
}

.psy-ssel__empty {
	margin: 12px 6px 6px;
	color: rgba( 255, 255, 255, 0.55 );
	font-size: 14px;
	text-align: center;
}
