/* Shared selectable pill used by filters and form choices. */
.okcid-choice-chip,
.okcid-form .gfield_radio .gchoice label {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: max-content;
	height: auto;
	min-width: max-content;
	min-height: 0;
	max-width: none;
	margin: 0;
	padding: var(--okcid-choice-chip-padding, 6px 24px);
	border: 1px solid var(--okcid-choice-chip-border, currentColor);
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--okcid-choice-chip-text, inherit);
	font-family: var(--okcid-choice-chip-font-family, var(--e-global-typography-a81553a-font-family, "Raleway")), Arial, sans-serif;
	font-size: var(--okcid-choice-chip-font-size, var(--e-global-typography-a81553a-font-size, 16px));
	font-style: var(--okcid-choice-chip-font-style, var(--e-global-typography-a81553a-font-style, normal));
	font-weight: var(--okcid-choice-chip-font-weight, var(--e-global-typography-a81553a-font-weight, 700));
	line-height: var(--okcid-choice-chip-line-height, var(--e-global-typography-a81553a-line-height, 1));
	letter-spacing: var(--okcid-choice-chip-letter-spacing, var(--e-global-typography-a81553a-letter-spacing, 0.6px));
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	transform: scale(1);
	transition: 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
	transition-property: color, background-color, border-color, transform;
}

.okcid-choice-chip--field {
	padding: 0;
}

/* Override Hello Elementor's button states, including focus retained after
 * closing a filter. Selected, expanded, and hover colors take precedence below. */
.okcid-choice-chip:is(:hover, :focus, :active) {
	border-color: var(--okcid-choice-chip-border, currentColor);
	background: transparent;
	color: var(--okcid-choice-chip-text, inherit);
}

.okcid-choice-chip:is(.is-active, [aria-expanded="true"]),
.okcid-form .gfield_radio input[type="radio"]:checked + label {
	border-color: var(--okcid-choice-chip-active, currentColor);
	background: var(--okcid-choice-chip-active, currentColor);
	color: var(--okcid-choice-chip-active-text, #fff);
}

.okcid-choice-chip:focus-visible,
.okcid-form .gfield_radio input[type="radio"]:focus-visible + label {
	outline: 3px solid var(--okcid-choice-chip-focus, var(--okcid-choice-chip-active, currentColor));
	outline-offset: 3px;
}

.okcid-choice-chip:active,
.okcid-form .gfield_radio .gchoice label:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
	.okcid-choice-chip:hover:not(.is-active):not([aria-expanded="true"]),
	.okcid-form .gfield_radio input[type="radio"]:not(:checked) + label:hover {
		border-color: var(--okcid-choice-chip-active, currentColor);
		background: var(--okcid-choice-chip-active, currentColor);
		color: var(--okcid-choice-chip-active-text, #fff);
	}
}

@media (max-width: 767px) {
	.okcid-choice-chip,
	.okcid-form .gfield_radio .gchoice label {
		min-height: 44px;
		padding: 8px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.okcid-choice-chip,
	.okcid-form .gfield_radio .gchoice label {
		transform: none;
		transition: none;
	}
}
