.mf-finder {
	--mf-radius: 14px;
	--mf-gap: 16px;
	--mf-field-gap: 28px;
	--mf-option-border: #d8dce3;
	--mf-option-bg: #fff;
	--mf-option-text: #252a31;
	--mf-selected-bg: #263b2d;
	--mf-selected-border: #263b2d;
	--mf-selected-text: #fff;
	--mf-error-color: #b42318;
	--mf-button-bg: #263b2d;
	--mf-button-text: #fff;
	--mf-font-size: 15px;
	direction: rtl;
	display: grid;
	gap: var(--mf-field-gap);
	width: 100%;
}

.mf-finder .mf-fields { display: grid; gap: var(--mf-field-gap); }
.mf-finder .mf-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.mf-finder .mf-field-label { display: block; width: 100%; margin: 0 0 12px; padding: 0; color: inherit; font-size: clamp(17px, 2vw, 21px); font-weight: 700; }
.mf-finder .mf-required { color: var(--mf-error-color); }
.mf-finder .mf-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--mf-gap); }
.mf-finder .mf-option { min-width: 0; }
.mf-finder .mf-option-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mf-finder .mf-option label { display: flex; align-items: center; justify-content: center; min-height: 50px; box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--mf-option-border); border-radius: var(--mf-radius); background: var(--mf-option-bg); color: var(--mf-option-text); font-size: var(--mf-font-size); line-height: 1.5; text-align: center; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
.mf-finder .mf-option label:hover { border-color: var(--mf-selected-border); transform: translateY(-1px); }
.mf-finder .mf-option-input:checked + label,
.mf-finder .mf-option-selected label { border-color: var(--mf-selected-border); background: var(--mf-selected-bg); color: var(--mf-selected-text); }
.mf-finder .mf-option-input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--mf-selected-border) 35%, transparent); outline-offset: 3px; }
.mf-finder .mf-select { width: 100%; min-height: 50px; box-sizing: border-box; padding: 8px 14px; border: 1px solid var(--mf-option-border); border-radius: var(--mf-radius); background: var(--mf-option-bg); color: var(--mf-option-text); font: inherit; }
.mf-finder .mf-submit { justify-self: start; min-height: 50px; padding: 11px 26px; border: 0; border-radius: var(--mf-radius); background: var(--mf-button-bg); color: var(--mf-button-text); font: inherit; font-weight: 700; cursor: pointer; }
.mf-finder .mf-submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--mf-button-bg) 35%, transparent); outline-offset: 3px; }
.mf-finder .mf-error,
.mf-finder .mf-form-error { margin: 8px 0 0; color: var(--mf-error-color); font-size: 14px; }
.mf-finder .mf-field-invalid .mf-options,
.mf-finder .mf-field-invalid .mf-select { outline: 2px solid color-mix(in srgb, var(--mf-error-color) 45%, transparent); outline-offset: 3px; border-radius: var(--mf-radius); }
.mf-finder [hidden] { display: none !important; }

@media (max-width: 600px) {
	.mf-finder { --mf-gap: 10px; --mf-field-gap: 22px; }
	.mf-finder .mf-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mf-finder .mf-option label { min-height: 48px; padding-inline: 10px; }
	.mf-finder .mf-submit { width: 100%; justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
	.mf-finder .mf-option label { transition: none; }
}
