.acpm-price-range { margin: 0; color: #292a30; font-size: 14px; }
.acpm-price-range [hidden] { display: none !important; }
.acpm-price-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.acpm-price-fields label { min-width: 0; margin: 0; font-size: 14px; font-weight: 400; color: #50545c; }
.acpm-price-input { display: flex; align-items: center; margin-top: 5px; border: 1px solid #d9dbe0; border-radius: 10px; background: #fff; overflow: hidden; }
.acpm-price-input > span { padding-left: 10px; color: #6b7078; }
.acpm-price-range .acpm-price-input input { box-sizing: border-box; flex: 1; min-width: 0; width: 100%; height: 44px; padding: 0 6px; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #292a30; font-size: 15px; appearance: textfield; -moz-appearance: textfield; }
.acpm-price-input input::-webkit-inner-spin-button, .acpm-price-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.acpm-price-input:focus-within { outline: 2px solid var(--primary-color, #F05C28); outline-offset: 2px; }
.acpm-price-slider-wrap { padding: 24px 13px 0; }
.acpm-price-range .acpm-price-slider { position: relative; height: 5px; border: 0; border-radius: 4px; background: #e5e5e5; touch-action: none; }
.acpm-price-slider .ui-slider-range { position: absolute; height: 100%; top: 0; border-radius: 4px; background: var(--primary-color, #F05C28); }
.acpm-price-range .acpm-price-slider .ui-slider-handle { position: absolute; z-index: 2; top: 50%; display: block; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 3px solid var(--primary-color, #F05C28); border-radius: 50%; background: #fff; cursor: ew-resize; touch-action: none; box-sizing: border-box; }
.acpm-price-slider .ui-slider-handle::after { position: absolute; content: ''; inset: -13px; border-radius: 50%; }
/* Keep focus inside the handle instead of drawing an extra outer ring. */
.acpm-price-range .acpm-price-slider .ui-slider-handle:focus { outline: none !important; box-shadow: none !important; }
.acpm-price-range .acpm-price-slider .ui-slider-handle:focus-visible { background: #fff0e9; }
.acpm-price-scale { position: relative; display: flex; justify-content: space-between; margin: 20px -12px 0; color: #727782; font-size: 12px; white-space: nowrap; }
.acpm-price-scale-mid { position: absolute; transform: translateX(-50%); }
/* Announce price changes without repeating the visible fields and checkbox. */
.acpm-price-range .acpm-price-selection { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.acpm-price-range .acpm-price-request { display: flex; gap: 10px; align-items: flex-start; margin: 15px 0 0; color: #292a30; font-size: 14px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.acpm-price-request input { flex: 0 0 21px; width: 21px; height: 21px; margin: 1px 0 0; accent-color: var(--primary-color, #F05C28); }
.acpm-price-actions { display: flex; align-items: center; gap: 12px; }
.acpm-price-actions .button { flex: 1; min-height: 42px; margin: 0; border-radius: 10px; text-transform: none; letter-spacing: 0; }
@media (max-width: 849px) {
    #ac-mobile-filter-overlay .acpm-price-range .acpm-price-input input { height: 48px; font-size: 16px; }
    #ac-mobile-filter-overlay .acpm-price-range .acpm-price-request { font-size: 16px; padding: 3px 0; }
    #ac-mobile-filter-overlay .acpm-price-slider-wrap { padding-top: 28px; }
    #ac-mobile-filter-overlay .acpm-price-range .ui-slider-handle { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
    #ac-mobile-filter-overlay .acpm-price-actions { justify-content: flex-end; }
    #ac-mobile-filter-overlay .acpm-price-actions .button { display: none; }
}

/* Keep a native GET submit fallback when JavaScript is unavailable. */

.acpm-price-range[data-initialized] .acpm-price-actions { display: none; }

/* The outer field owns focus, including the currency prefix. */
.acpm-price-range .acpm-price-input input:is(:focus, :focus-visible) {
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Show the currency prefix only when the field contains an amount. */
.acpm-price-input:has(> input:placeholder-shown) > span { display: none; }
.acpm-price-range .acpm-price-input input:placeholder-shown { padding-left: 10px; }
