.akphf-height-filter {
	padding: 14px 16px 15px;
	background: #f8f5ee;
	color: #2c2927;
}

.akphf-height-filter__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 17px;
	line-height: 1.25;
}

.akphf-height-filter__accent {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e5aa32;
	box-shadow: 0 0 0 3px rgba(229, 170, 50, 0.16);
}

.akphf-height-filter__form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.akphf-height-filter__label {
	font-weight: 700;
	white-space: nowrap;
}

.akphf-height-filter__controls {
	position: relative;
	min-width: 0;
}

.akphf-height-picker {
	position: relative;
	width: 220px;
	margin: 0;
}

.akphf-height-picker summary {
	position: relative;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 100%;
	height: 38px;
	margin: 0;
	padding: 0 38px 0 12px;
	border: 1px solid #cfc4b0;
	border-radius: 4px;
	background: #fff;
	color: #2c2927;
	cursor: pointer;
	font: inherit;
	line-height: 36px;
	list-style: none;
}

.akphf-height-picker summary::-webkit-details-marker {
	display: none;
}

.akphf-height-picker summary::after {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 7px;
	height: 7px;
	border-right: 2px solid #7d7063;
	border-bottom: 2px solid #7d7063;
	content: "";
	transform: translateY(-65%) rotate(45deg);
	transition: transform 0.16s ease;
}

.akphf-height-picker[open] summary {
	border-color: #d99d2e;
	box-shadow: 0 0 0 2px rgba(229, 170, 50, 0.2);
}

.akphf-height-picker[open] summary::after {
	transform: translateY(-30%) rotate(225deg);
}

.akphf-height-picker summary:focus-visible {
	border-color: #d99d2e;
	box-shadow: 0 0 0 2px rgba(229, 170, 50, 0.24);
	outline: none;
}

.akphf-height-picker__summary {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.akphf-height-picker__panel {
	position: absolute;
	z-index: 80;
	top: calc(100% + 6px);
	left: 0;
	box-sizing: border-box;
	width: 420px;
	max-width: calc(100vw - 48px);
	padding: 13px;
	border: 1px solid #d6c9b5;
	border-radius: 5px;
	background: #fffdf9;
	box-shadow: 0 10px 28px rgba(44, 38, 31, 0.2);
}

.akphf-height-picker__options {
	display: grid;
	grid-template-columns: repeat(3, minmax(82px, 1fr));
	gap: 5px 10px;
	max-height: 260px;
	overflow-y: auto;
	padding: 1px 4px 5px 1px;
}

.akphf-height-picker__options label {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 5px 4px;
	border-radius: 3px;
	color: #2c2927;
	cursor: pointer;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
}

.akphf-height-picker__options label:hover {
	background: #f5efe3;
}

.akphf-height-picker__options input[type="checkbox"] {
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #d99d2e;
}

.akphf-height-picker__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #e7dfd2;
}

.akphf-height-picker__actions button {
	box-sizing: border-box;
	height: 36px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 4px;
	background: #e5aa32;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 36px;
	text-shadow: none;
}

.akphf-height-picker__actions button:hover,
.akphf-height-picker__actions button:focus {
	background: #ca8e1f;
	color: #fff;
}

.akphf-height-filter__reset {
	color: #8d2e20;
	font-size: 13px;
	white-space: nowrap;
}

.akphf-height-filter__reset:hover,
.akphf-height-filter__reset:focus {
	color: #5f1d14;
}

@media (max-width: 640px) {
	.akphf-height-filter {
		padding: 13px 12px 14px;
	}

	.akphf-height-filter__form {
		display: block;
	}

	.akphf-height-filter__label {
		display: block;
		margin-bottom: 7px;
	}

	.akphf-height-filter__controls,
	.akphf-height-picker {
		width: 100%;
	}

	.akphf-height-picker__panel {
		width: 100%;
		max-width: none;
		padding: 10px;
	}

	.akphf-height-picker__options {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 4px;
	}

	.akphf-height-picker__options label {
		gap: 4px;
		padding: 5px 2px;
		font-size: 12px;
	}

	.akphf-height-picker__actions button {
		flex: 1 1 auto;
	}
}
