.amai-stands-wrapper {
	--amai-stand-types-height: calc(10 * 2rem + .5rem);
	min-height: calc(var(--amai-stand-types-height) + 5rem);
	max-width: 100%;
}

.amai-stands-wrapper .amai-stands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 1rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

.amai-stands-wrapper .amai-stand {
	display: none;
}

.amai-stand {
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	border-radius: 15px;
	background-color: var(--wp--preset--color--custom-qa-bg);
	padding: 1rem;
}

.amai-stand h3 {
	line-break: anywhere;
	margin: 0 0 5px;
	clear: none;
}

.amai-stand .amai-stand-thumb {
	float: left;
	width: 150px;
	height: 150px;
	margin: 0 3% 0 0;
}

.amai-stand .amai-stand-thumb img {
	max-width: 150px;
	max-height: 150px;
	border-radius: 15px;
}

.amai-stand .amai-stand-positions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 5px;
}

.amai-stand .amai-stand-positions span {
	background-color: var(--wp--preset--color--custom-tab-txt);
	line-height: 1;
	color: black;
	padding: .2rem .4rem;
	border-radius: 30px;
	cursor: pointer;
}

.amai-stand .amai-stand-content {
	margin: 0 0 5px;
}

.amai-stand a {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--custom-tab-txt);
	text-decoration: none;
}

.amai-stand-types {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1rem 0 0 0;
}

.amai-stand-type {
	display: block;
	width: fit-content;
	background-color: var(--wp--preset--color--custom-tab-txt);
	text-align: center;
	line-height: 1;
	color: black;
	padding: .2rem .4rem;
	border-radius: 30px;
	cursor: default;
}

.amai-stands-types-options {
	position: absolute;
	overflow: hidden;
	height: fit-content;
	max-height: 0;
	background-color: #100021;
	border-radius: 15px;
	transition: max-height 0.4s ease;
}

.amai-stands-types-options.expanded {
	max-height: var(--amai-stand-types-height);
}

.amai-stands-types-options-inner {
	display: flex;
	flex-direction: column;
	width: fit-content;
	padding: 1rem;
	gap: .5rem;
}

.amai-stands-wrapper fieldset {
	margin-bottom: 1rem;
	padding: 0;
	border: 0;
}

.amai-stands-types-options input[type=checkbox] {
	display: none;
}

.amai-stands-types-options .amai-stand-type {
	height: 1rem;;
	cursor: pointer;
	user-select: none;
}

.amai-stands-wrapper input:checked~.amai-stand-type {
	box-shadow: inset 0 0 0 1px white;
}

.amai-stands-type-selector legend {
	display: flex;
	cursor: pointer;
	flex-direction: row;
	outline: none;
	padding: .5rem;
	user-select: none;
}

.amai-stands-type-selector legend::after {
	content: "◄";
	display: flex;
	align-items: center;
	margin-right: 0.5rem;
	transition: all 0.4s ease-in-out;
}

.amai-stands-type-selector legend[aria-expanded=true]:after {
	rotate: -90deg;
}