/* Guide-Games v8 — custom catalogue selects; other site forms are unaffected. */
.ggv6-catalog .ggv6-controls .ggv6-field {
	min-width: 0;
}

/* Progressive fallback: a correctly sized native select before JS enhancement. */
.ggv6-catalog .ggv6-controls .ggv6-field select:not([hidden]),
.ggv6-catalog .ggv6-controls .ggv6-field input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	height: 43px !important;
	min-height: 43px !important;
	max-height: 43px;
	margin: 0;
	border: 1px solid var(--gg-border, #dfe5ee);
	border-radius: 10px;
	background-color: var(--gg-surface, #fff);
	color: var(--gg-text, #172235);
	font-size: 13px;
	font-weight: 500;
	line-height: normal !important;
	box-shadow: none;
}
.ggv6-catalog .ggv6-controls .ggv6-field select:not([hidden]) {
	padding: 0 38px 0 14px !important;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%235B7290' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 17px;
}
.ggv6-catalog .ggv6-controls .ggv6-field input[type="search"] {
	padding: 0 14px;
}
.ggv6-catalog .ggv6-controls .ggv6-field input[type="search"]:hover,
.ggv6-catalog .ggv6-controls .ggv6-field select:not([hidden]):hover {
	border-color: var(--gg-link, #0064ed);
}
.ggv6-catalog .ggv6-controls .ggv6-field select:not([hidden]):focus-visible {
	outline: 2px solid var(--gg-link, #0064ed);
	outline-offset: 1px;
}

/* JS-enhanced trigger and popover. The genuine <select> stays in the form. */
.ggv6-catalog .ggv8-select {
	position: relative;
	width: 100%;
	min-width: 0;
}
.ggv6-catalog .ggv8-select-trigger {
	box-sizing: border-box;
	width: 100%;
	height: 43px;
	min-height: 43px;
	padding: 0 12px 0 14px;
	border: 1px solid var(--gg-border, #dfe5ee);
	border-radius: 10px;
	background: var(--gg-surface, #fff);
	color: var(--gg-text, #172235);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	transition: border-color .16s, background-color .16s, box-shadow .16s;
}
.ggv6-catalog .ggv8-select-trigger:hover {
	border-color: var(--gg-link, #0064ed);
	background: var(--gg-soft, #f0f3f8);
}
.ggv6-catalog .ggv8-select-trigger:focus {
	outline: none;
}
.ggv6-catalog .ggv8-select-trigger:focus-visible {
	outline: 2px solid var(--gg-link, #0064ed);
	outline-offset: 2px;
}
.ggv6-catalog .ggv8-select--open .ggv8-select-trigger {
	border-color: var(--gg-link, #0064ed);
	background: var(--gg-surface, #fff);
}
.ggv6-catalog .ggv8-select-text {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.ggv6-catalog .ggv8-select-chevron {
	display: inline-flex;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	color: var(--gg-muted, #667287);
	transition: transform .16s ease;
}
.ggv6-catalog .ggv8-select-chevron svg {
	width: 18px;
	height: 18px;
}
.ggv6-catalog .ggv8-select--open .ggv8-select-chevron {
	transform: rotate(180deg);
	color: var(--gg-link, #0064ed);
}
.ggv6-catalog .ggv8-select-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 7px);
	z-index: 150;
	max-height: min(290px, 55vh);
	margin: 0;
	padding: 6px;
	list-style: none;
	overflow: auto;
	overscroll-behavior: contain;
	background: var(--gg-surface, #fff);
	border: 1px solid var(--gg-border, #dfe5ee);
	border-radius: 12px;
	box-shadow: 0 18px 42px rgba(12, 25, 47, .18), 0 4px 12px rgba(12, 25, 47, .06);
}
.ggv6-catalog .ggv8-select--up .ggv8-select-menu {
	top: auto;
	bottom: calc(100% + 7px);
}
.ggv6-catalog .ggv8-select-menu[hidden] {
	display: none !important;
}
.ggv6-catalog .ggv8-select-menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ggv6-catalog .ggv8-select-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 39px;
	margin: 0;
	padding: 9px 10px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--gg-text, #172235);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}
.ggv6-catalog .ggv8-select-option:hover,
.ggv6-catalog .ggv8-select-option:focus-visible {
	background: var(--gg-soft, #f0f3f8);
	outline: none;
}
.ggv6-catalog .ggv8-select-option[aria-selected="true"] {
	background: color-mix(in srgb, var(--gg-link, #0064ed) 10%, var(--gg-surface, #fff));
	color: var(--gg-link, #0064ed);
	font-weight: 750;
}
.ggv6-catalog .ggv8-select-option[aria-selected="true"]::after {
	content: "✓";
	color: var(--gg-link, #0064ed);
	font-size: 15px;
	font-weight: 800;
}
/* No focus outline on a surrounding label/card: the actual input is highlighted. */
.ggv6-catalog .ggv6-controls .ggv6-field:focus-within {
	outline: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.ggv6-catalog .ggv8-select-trigger,
	.ggv6-catalog .ggv8-select-chevron {
		transition: none;
	}
}
