/* Egne filtre (filtre.php) – samme udseende som det godkendte panel (shop.css, 26-10-2026). */
.tax-product_cat #ocs-filter form.thf { padding: 4px 24px 30px; margin: 0; }
.thf-sec { border-top: 1px solid var(--line); padding: 16px 0; }
.thf-sec h4 { font-family: 'Open Sans', sans-serif; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--lav-d); margin: 0 0 14px; }

/* Pris: to skydere oven på hinanden */
.thf-range { position: relative; height: 26px; margin: 0 9px 12px; }
.thf-track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: var(--line); }
.thf-fill { position: absolute; top: 0; bottom: 0; background: var(--lav); border-radius: 4px; }
form.thf input.thf-r { position: absolute; left: -9px; width: calc(100% + 18px); top: 0; height: 26px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
form.thf input.thf-r::-webkit-slider-runnable-track { background: none; height: 26px; }
form.thf input.thf-r::-moz-range-track { background: none; }
form.thf input.thf-r::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: #fff; border: 2px solid var(--lav); box-shadow: 0 1px 4px rgba(80, 40, 100, .25); cursor: pointer; }
form.thf input.thf-r::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--lav); box-shadow: 0 1px 4px rgba(80, 40, 100, .25); cursor: pointer; }
form.thf input.thf-r:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--lav-d); outline-offset: 2px; }
.thf-nums { display: flex; gap: 10px; }
.thf-nums label { flex: 1; margin: 0; }
.thf-nums span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
form.thf .thf-nums input { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; padding: 9px 12px; box-shadow: none; font-size: 15px; margin: 0; }
.thf-plabel { color: var(--mut); font-size: 13.5px; margin: 8px 0 0; }

/* Brand */
.thf-brand ul { list-style: none; margin: 0; padding: 0; }
.thf-brand li { padding: 6px 0; margin: 0; }
.thf-brand label { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; }
form.thf .thf-brand input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; flex: none; margin: 0; border: 1.5px solid #cdb6d8; border-radius: 6px; background: #fff; display: grid; place-items: center; cursor: pointer; }
form.thf .thf-brand input[type="checkbox"]:checked { background: var(--lav) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center/14px; border-color: var(--lav); }
form.thf .thf-brand input[type="checkbox"]:focus-visible { outline: 2px solid var(--lav-d); outline-offset: 2px; }
.thf-bn { flex: 1; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.thf-n { margin-left: auto; color: var(--mut); font-size: 13px; font-weight: 600; }
form.thf .thf-vis { margin: 10px 0 0; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 13.5px; color: var(--lav-d); cursor: pointer; background: #fff; box-shadow: none; }

/* Knapper nederst */
.thf-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.thf-reset { color: var(--lav-d) !important; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
form.thf .thf-go { margin-left: auto; background: var(--lav); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: none; }

/* Mens varerne hentes */
body.thf-loading #main { opacity: .45; transition: opacity .15s; pointer-events: none; }
.thf-brand li.thf-zero label { cursor: default; }
.thf-brand li.thf-zero .thf-bn, .thf-brand li.thf-zero .thf-n { color: #b9adbf; }
form.thf .thf-brand li.thf-zero input[type="checkbox"] { border-color: #e6dcea; cursor: default; }

/* Knapperne: én linje, altid synlige nederst i panelet */
.thf-act { position: sticky; bottom: 0; background: #fff; padding-bottom: 14px; margin-bottom: -14px; z-index: 2; }
.thf-reset, form.thf .thf-go { white-space: nowrap; }
@media (max-width: 400px) { form.thf .thf-go { padding: 10px 16px; font-size: 14px; } .thf-reset { font-size: 13.5px; } }
