:root {
  --amf-accent: #ef5b2a;
  --amf-accent-dark: #cf4215;
  --amf-ink: #172033;
  --amf-muted: #667085;
  --amf-line: #e6e9ef;
  --amf-soft: #f6f8fb;
  --amf-white: #fff;
  --amf-radius: 14px;
  --amf-shadow: 0 14px 42px rgba(16, 24, 40, .08);
}

.amf-panel {
  overflow: hidden;
  margin: 0 0 24px;
  border: 1px solid var(--amf-line);
  border-radius: var(--amf-radius);
  background: var(--amf-white);
  box-shadow: var(--amf-shadow);
  color: var(--amf-ink);
}

.amf-panel *,
.amf-results-bar * {
  box-sizing: border-box;
}

.amf-panel [hidden] {
  display: none !important;
}

.amf-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 17px;
  border-bottom: 1px solid var(--amf-line);
  background: linear-gradient(145deg, #fff 20%, #fff8f4 100%);
}

.amf-panel__header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.amf-panel__close {
  display: none;
}

.amf-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--amf-accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.amf-panel h2 {
  margin: 0;
  color: var(--amf-ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.amf-reset {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--amf-accent-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.amf-reset:disabled {
  opacity: .35;
  cursor: default;
}

.amf-active {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 18px 4px;
}

.amf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #ffd9ca;
  border-radius: 999px;
  background: #fff6f1;
  color: #87310f;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.1;
}

.amf-chip span {
  font-size: 16px;
  line-height: 10px;
}

.amf-notice {
  margin: 12px 18px 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff4e5;
  color: #8a4b08;
  font-size: 12px;
  line-height: 1.45;
}

.amf-group {
  border-bottom: 1px solid var(--amf-line);
}

.amf-group[aria-busy="true"] {
  opacity: .55;
  transition: opacity .15s ease;
}

.amf-group > summary {
  position: relative;
  padding: 17px 46px 17px 20px;
  cursor: pointer;
  list-style: none;
  color: var(--amf-ink);
  font-size: 15px;
  font-weight: 700;
  user-select: none;
}

.amf-group > summary::-webkit-details-marker {
  display: none;
}

.amf-group > summary::after {
  position: absolute;
  top: 50%;
  right: 21px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #98a2b3;
  border-bottom: 2px solid #98a2b3;
  content: '';
  transform: translateY(-68%) rotate(45deg);
  transition: transform .18s ease;
}

.amf-group:not([open]) > summary::after {
  transform: translateY(-30%) rotate(-45deg);
}

.amf-group__content {
  padding: 0 18px 18px;
}

.amf-search {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

.amf-search::before {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 12px;
  height: 12px;
  border: 1.7px solid #98a2b3;
  border-radius: 50%;
  content: '';
  pointer-events: none;
  transform: translateY(-60%);
}

.amf-search::after {
  position: absolute;
  top: calc(50% + 5px);
  left: 23px;
  width: 6px;
  height: 1.7px;
  background: #98a2b3;
  content: '';
  pointer-events: none;
  transform: rotate(45deg);
}

.amf-search input {
  width: 100%;
  height: 39px;
  padding: 0 12px 0 35px;
  border: 1px solid var(--amf-line);
  border-radius: 9px;
  outline: 0;
  background: var(--amf-soft);
  color: var(--amf-ink);
  font-size: 13px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.amf-search input:focus {
  border-color: var(--amf-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(239, 91, 42, .12);
}

.amf-options {
  max-height: 235px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #cfd4dc transparent;
  scrollbar-width: thin;
}

.amf-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0;
  cursor: pointer;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}

.amf-option[hidden] {
  display: none;
}

.amf-option input {
  position: relative;
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid #c8ced8;
  border-radius: 5px;
  appearance: none;
  background: #fff;
  cursor: pointer;
}

.amf-option input[type="radio"] {
  border-radius: 50%;
}

.amf-option input:checked {
  border-color: var(--amf-accent);
  background: var(--amf-accent);
}

.amf-option input[type="checkbox"]:checked::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: '';
  transform: rotate(45deg);
}

.amf-option input[type="radio"]:checked::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
  content: '';
}

.amf-option input:focus-visible {
  outline: 3px solid rgba(239, 91, 42, .18);
  outline-offset: 2px;
}

.amf-option__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amf-category-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.amf-category-row .amf-option {
  flex: 1 1 auto;
  min-width: 0;
}

.amf-category-toggle {
  display: flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--amf-muted);
  cursor: pointer;
}

.amf-category-toggle::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: '';
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.amf-category-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.amf-category-toggle:hover,
.amf-category-toggle:focus-visible {
  background: var(--amf-soft);
  color: var(--amf-accent-dark);
}

.amf-category-toggle:focus-visible {
  outline: 2px solid var(--amf-accent);
  outline-offset: 2px;
}

.amf-category-children {
  margin-left: 9px;
  padding-left: 10px;
  border-left: 1px solid var(--amf-line);
}

.amf-option small {
  min-width: 25px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--amf-soft);
  color: var(--amf-muted);
  font-size: 10px;
  text-align: center;
}

.amf-price__track {
  --amf-low: 0%;
  --amf-high: 100%;
  position: relative;
  height: 26px;
  margin: 3px 5px 12px;
  background: linear-gradient(to right, #e7eaf0 0 var(--amf-low), var(--amf-accent) var(--amf-low) var(--amf-high), #e7eaf0 var(--amf-high) 100%) center / 100% 4px no-repeat;
}

.amf-price__track input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 26px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.amf-price__track input[type="range"]::-webkit-slider-thumb {
  width: 19px;
  height: 19px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: var(--amf-accent);
  box-shadow: 0 1px 5px rgba(16, 24, 40, .25);
  cursor: grab;
  pointer-events: auto;
}

.amf-price__track input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--amf-accent);
  box-shadow: 0 1px 5px rgba(16, 24, 40, .25);
  cursor: grab;
  pointer-events: auto;
}

.amf-price__inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
}

.amf-price__inputs label span {
  display: block;
  margin-bottom: 5px;
  color: var(--amf-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.amf-price__inputs input {
  width: 100%;
  height: 39px;
  padding: 0 9px;
  border: 1px solid var(--amf-line);
  border-radius: 9px;
  outline: 0;
  color: var(--amf-ink);
  font-size: 13px;
}

.amf-price__inputs input:focus {
  border-color: var(--amf-accent);
  box-shadow: 0 0 0 3px rgba(239, 91, 42, .1);
}

.amf-price__inputs > span {
  padding-bottom: 10px;
  color: #98a2b3;
}

.amf-switches {
  padding: 7px 18px 14px;
}

.amf-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}

.amf-switch > span {
  display: flex;
  flex-direction: column;
}

.amf-switch strong {
  color: var(--amf-ink);
  font-size: 13px;
  font-weight: 650;
}

.amf-switch small {
  margin-top: 2px;
  color: var(--amf-muted);
  font-size: 11px;
}

.amf-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amf-switch i {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d9dde5;
  transition: background .18s;
}

.amf-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .2);
  content: '';
  transition: transform .18s;
}

.amf-switch input:checked + i {
  background: var(--amf-accent);
}

.amf-switch input:checked + i::after {
  transform: translateX(16px);
}

.amf-switch input:focus-visible + i {
  outline: 3px solid rgba(239, 91, 42, .18);
  outline-offset: 2px;
}

.amf-mobile-apply {
  display: none;
}

.amf-drawer-width-60 { --amf-drawer-width: 60vw; }
.amf-drawer-width-65 { --amf-drawer-width: 65vw; }
.amf-drawer-width-70 { --amf-drawer-width: 70vw; }
.amf-drawer-width-75 { --amf-drawer-width: 75vw; }
.amf-drawer-width-80 { --amf-drawer-width: 80vw; }
.amf-drawer-width-85 { --amf-drawer-width: 85vw; }
.amf-drawer-width-90 { --amf-drawer-width: 90vw; }
.amf-drawer-width-95 { --amf-drawer-width: 95vw; }
.amf-drawer-width-100 { --amf-drawer-width: 100vw; }

html.amf-drawer-open {
  overflow: hidden;
}

html.amf-drawer-open body {
  position: fixed;
  top: var(--amf-lock-top, 0);
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.amf-drawer-backdrop {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  visibility: hidden;
  background: rgba(17, 24, 39, .52);
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.mobile-version.accentmed-smart-filters-mobile.amf-drawer-open .amf-drawer-backdrop {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-version.accentmed-smart-filters-mobile.mf-catalog-page #primary-sidebar.catalog-sidebar {
  display: block;
  position: fixed;
  z-index: 1000001;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--amf-drawer-width, 80vw);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  visibility: hidden;
  transform: translate3d(-102%, 0, 0);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), visibility .28s ease;
}

.mobile-version.accentmed-smart-filters-mobile.mf-catalog-page.amf-drawer-open #primary-sidebar.catalog-sidebar {
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.mobile-version.accentmed-smart-filters-mobile #primary-sidebar .amf-panel--mobile {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.mobile-version.accentmed-smart-filters-mobile .amf-panel__header {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-items: center;
  padding: calc(15px + env(safe-area-inset-top)) 16px 15px;
}

.mobile-version.accentmed-smart-filters-mobile .amf-panel__header > div:first-child {
  min-width: 0;
}

.mobile-version.accentmed-smart-filters-mobile .amf-panel__header-actions {
  flex: 0 0 auto;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 4px;
}

.mobile-version.accentmed-smart-filters-mobile .amf-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-version.accentmed-smart-filters-mobile .amf-options {
  max-height: none;
  overflow: visible;
}

.mobile-version.accentmed-smart-filters-mobile .amf-price__track {
  --amf-mid: .5;
  height: 44px;
  background-size: calc(100% - 44px) 4px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-version.accentmed-smart-filters-mobile .amf-price__track input[type="range"] {
  height: 44px;
}

.mobile-version.accentmed-smart-filters-mobile .amf-price__track input[data-amf-range="min"] {
  clip-path: inset(0 calc(22px + (100% - 44px) * (1 - var(--amf-mid))) 0 0);
}

.mobile-version.accentmed-smart-filters-mobile .amf-price__track input[data-amf-range="max"] {
  clip-path: inset(0 0 0 calc(22px + (100% - 44px) * var(--amf-mid)));
}

.mobile-version.accentmed-smart-filters-mobile .amf-price__track:focus-within {
  outline: 2px solid var(--amf-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.mobile-version.accentmed-smart-filters-mobile .amf-price__track input[type="range"]::-webkit-slider-thumb {
  width: 44px;
  height: 44px;
  border: 0;
  background: radial-gradient(circle, var(--amf-accent) 0 8px, #fff 8px 11px, transparent 11px);
  box-shadow: none;
}

.mobile-version.accentmed-smart-filters-mobile .amf-price__track input[type="range"]::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: 0;
  background: radial-gradient(circle, var(--amf-accent) 0 8px, #fff 8px 11px, transparent 11px);
  box-shadow: none;
}

.mobile-version.accentmed-smart-filters-mobile .amf-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--amf-line);
  border-radius: 50%;
  background: #fff;
  color: var(--amf-ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.mobile-version.accentmed-smart-filters-mobile .amf-filter-trigger {
  display: inline-flex;
}

.mobile-version.accentmed-smart-filters-mobile .amf-results-bar {
  margin-top: 10px;
}

.mobile-version.accentmed-smart-filters-mobile .amf-panel--mobile .amf-mobile-apply {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: calc(54px + env(safe-area-inset-bottom));
  margin: 0;
  padding: 0 16px env(safe-area-inset-bottom);
  border: 0;
  border-radius: 0;
  background: var(--amf-accent);
  box-shadow: 0 8px 20px rgba(239, 91, 42, .25);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.mobile-version.accentmed-smart-filters-mobile .amf-panel--mobile.amf-has-pending .amf-mobile-apply {
  background: var(--amf-accent-dark);
  box-shadow: 0 8px 24px rgba(207, 66, 21, .32);
}

.mobile-version.accentmed-smart-filters-mobile .amf-mobile-apply strong:not(:empty)::before {
  content: '(';
}

.mobile-version.accentmed-smart-filters-mobile .amf-mobile-apply strong:not(:empty)::after {
  content: ')';
}

.amf-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  padding: 12px 15px;
  border: 1px solid var(--amf-line);
  border-radius: 11px;
  background: #fff;
}

.amf-results-bar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}

.amf-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.amf-view .mf-shop-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--amf-line);
  border-radius: 8px;
  color: var(--amf-muted);
  font-size: 18px;
  text-decoration: none;
}

.amf-view .mf-shop-view.current,
.amf-view .mf-shop-view:hover {
  border-color: var(--amf-accent);
  color: var(--amf-accent-dark);
}

.amf-filter-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--amf-line);
  border-radius: 8px;
  background: #fff;
  color: var(--amf-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.amf-filter-trigger:hover {
  border-color: var(--amf-accent);
  color: var(--amf-accent-dark);
}

.amf-filter-trigger i {
  font-size: 16px;
}

.amf-results-count {
  margin: 0;
  color: var(--amf-muted);
  font-size: 13px;
}

.amf-results-count strong {
  color: var(--amf-ink);
  font-size: 16px;
}

.amf-sort {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--amf-muted);
  font-size: 12px;
  font-weight: 600;
}

.amf-sort select {
  min-width: 165px;
  height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--amf-line);
  border-radius: 8px;
  outline: 0;
  background-color: #fff;
  color: var(--amf-ink);
  font-size: 13px;
}

.amf-sort select:focus {
  border-color: var(--amf-accent);
  box-shadow: 0 0 0 3px rgba(239, 91, 42, .1);
}

#mf-shop-content {
  position: relative;
  min-height: 180px;
}

#mf-shop-content::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  visibility: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(2px);
  content: '';
  opacity: 0;
  transition: opacity .15s, visibility .15s;
}

#mf-shop-content.amf-is-loading::after {
  visibility: visible;
  opacity: 1;
}

#mf-shop-content.amf-is-loading::before {
  position: absolute;
  z-index: 21;
  top: 90px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border: 3px solid rgba(239, 91, 42, .2);
  border-top-color: var(--amf-accent);
  border-radius: 50%;
  content: '';
  animation: amf-spin .7s linear infinite;
}

@keyframes amf-spin {
  to { transform: rotate(360deg); }
}

nav.woocommerce-pagination.amf-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
}

.woocommerce-pagination.amf-pagination a[data-amf-page] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--amf-line);
  border-radius: 9px;
  background: #fff;
  color: var(--amf-ink);
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
}

.woocommerce-pagination.amf-pagination a[data-amf-page]:hover,
.woocommerce-pagination.amf-pagination a[data-amf-page][aria-current="page"] {
  border-color: var(--amf-accent);
  background: var(--amf-accent);
  color: #fff;
}

.amf-pagination__ellipsis {
  min-width: 20px;
  color: var(--amf-muted);
  text-align: center;
}

.amf-empty {
  padding: 65px 25px;
  border: 1px dashed #d6dae2;
  border-radius: 14px;
  background: var(--amf-soft);
  text-align: center;
}

.amf-empty > span {
  display: block;
  margin-bottom: 8px;
  color: var(--amf-accent);
  font-size: 42px;
}

.amf-empty h3 {
  margin: 0 0 7px;
  color: var(--amf-ink);
  font-size: 20px;
}

.amf-empty p {
  margin: 0;
  color: var(--amf-muted);
}

@media (max-width: 991px) {
	.amf-view {
		display: none;
	}

  .amf-panel {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

}

@media (max-width: 600px) {
  nav.woocommerce-pagination.amf-pagination {
    gap: 5px;
    margin-top: 20px;
  }

  .woocommerce-pagination.amf-pagination a[data-amf-page] {
    min-width: 36px;
    height: 36px;
    padding: 0 7px;
    font-size: 12px;
  }

  .amf-results-bar {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 9px;
  }

  .amf-results-count {
    flex: 0 0 auto;
    font-size: 11px;
    white-space: nowrap;
  }

  .amf-results-count strong {
    font-size: 14px;
  }

  .amf-results-bar__actions {
    flex: 1 1 auto;
    gap: 6px;
    min-width: 260px;
    justify-content: space-between;
  }

  .amf-filter-trigger {
    min-height: 36px;
    padding: 0 7px;
    font-size: 12px;
  }

  .amf-sort {
    flex: 0 0 auto;
    min-width: 0;
  }

  .amf-sort span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .amf-sort select {
    min-width: 0;
    width: 180px;
    height: 36px;
    padding-left: 7px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amf-panel *,
  .amf-results-bar *,
  #mf-shop-content::after,
  .amf-drawer-backdrop,
  .mobile-version.accentmed-smart-filters-mobile.mf-catalog-page #primary-sidebar.catalog-sidebar {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
