/**
 * ASR Shop Filters — panel.
 * Colors follow the Blocksy palette; fallbacks only apply outside Blocksy.
 */

.asrf,
.asrf-open,
.asrf-backdrop {
  --asrf-accent: var(--theme-palette-color-1, #2872fa);
  --asrf-text: var(--theme-text-color, #3a4f66);
  --asrf-heading: var(--theme-headings-color, #192a3d);
  --asrf-line: var(--theme-border-color, #e1e8ed);
  --asrf-bg: var(--theme-palette-color-8, #fff);
  --asrf-field: var(--theme-form-field-border-initial-color, #c9d2dc);
}

.asrf {
  font-size: 14px;
  color: var(--asrf-text);
}
.asrf [hidden] {
  display: none !important;
}

/* Head */
.asrf__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 12px;
}
.asrf__head strong {
  flex: 1;
  font-size: 16px;
  color: var(--asrf-heading);
}
.asrf__clear {
  font-size: 13px;
  text-decoration: underline;
}
.asrf .asrf__close {
  display: none;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* Sections */
.asrf__sec {
  border-block-start: 1px solid var(--asrf-line);
  padding-block: 10px;
}
.asrf__sec > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  font-weight: 600;
  color: var(--asrf-heading);
  list-style: none;
  cursor: pointer;
}
.asrf__sec > summary::-webkit-details-marker {
  display: none;
}
/* Down chevron — physical borders on purpose: a down arrow is the same in RTL. */
.asrf__sec > summary::after {
  content: "";
  inline-size: 8px;
  block-size: 8px;
  margin-inline-start: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  rotate: 45deg;
  transition: rotate 0.2s;
}
.asrf__sec[open] > summary::after {
  rotate: -135deg;
}
.asrf__sec-title {
  flex: 1;
}
.asrf__sec-clear {
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  opacity: 0.75;
}
.asrf__sec-clear:hover {
  opacity: 1;
}

/* Option lists */
.asrf__opts {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  padding-inline-end: 10px;
  max-block-size: 260px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.asrf__opt {
  margin: 0;
  padding-inline-start: calc(var(--asrf-depth, 0) * 14px);
}
.asrf__opt label,
.asrf__link a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 5px;
  cursor: pointer;
}
.asrf__opt input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--asrf-accent);
}
.asrf__opt span {
  flex: 1;
}
.asrf__count {
  flex: 0 0 auto;
  margin-inline-start: 8px;
  font-size: 12px;
  font-style: normal;
  opacity: 0.55;
}
.asrf__link a {
  color: inherit;
  text-decoration: none;
}
.asrf__link a:hover span {
  text-decoration: underline;
}
.asrf__link.is-current a {
  font-weight: 700;
}
.asrf__link--up a {
  font-size: 13px;
  opacity: 0.7;
}
.asrf .asrf__more-btn {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--asrf-accent);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* Switches */
.asrf__switches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block-end: 12px;
}
.asrf__switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.asrf__switch input {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  opacity: 0;
}
.asrf__track {
  position: relative;
  flex: 0 0 auto;
  inline-size: 38px;
  block-size: 22px;
  border-radius: 11px;
  background: var(--asrf-line);
  transition: background 0.2s;
}
.asrf__track::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  inline-size: 16px;
  block-size: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: translate 0.2s;
}
.asrf__switch input:checked + .asrf__track {
  background: var(--asrf-accent);
}
.asrf__switch input:checked + .asrf__track::after {
  translate: 16px 0;
}
[dir="rtl"] .asrf__switch input:checked + .asrf__track::after {
  translate: -16px 0;
}
.asrf__switch input:focus-visible + .asrf__track {
  outline: 2px solid var(--asrf-accent);
  outline-offset: 2px;
}

/* Price */
.asrf__price {
  padding: 10px 2px 2px;
}
.asrf__nums {
  display: flex;
  align-items: center;
  gap: 8px;
}
.asrf .asrf__n {
  flex: 1 1 0;
  min-inline-size: 72px;
  inline-size: auto;
  block-size: 38px;
  padding: 8px 10px;
  border: 1px solid var(--asrf-field);
  border-radius: 8px;
  background: var(--asrf-bg);
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  -moz-appearance: textfield;
}
.asrf .asrf__n:focus {
  outline: none;
  border-color: var(--asrf-accent);
}
.asrf__n::-webkit-outer-spin-button,
.asrf__n::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.asrf__to {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}
.asrf button.asrf__go {
  flex: 0 0 auto;
  inline-size: auto;
  min-inline-size: 0;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--asrf-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}
.asrf button.asrf__go:hover {
  background: none;
  color: var(--asrf-accent);
  text-decoration: underline;
}

/* Apply */
.asrf__actions {
  margin-block-start: 14px;
}
.asrf .asrf__apply {
  inline-size: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .asrf__sec > summary::after,
  .asrf__track,
  .asrf__track::after {
    transition: none;
  }
}
