.chm-filter {
    display: block;
}

.chm-filter,
.chm-filter * {
    box-sizing: border-box !important;
}

.chm-filter {
    --chm-teal: #008489;
    --chm-teal-dark: #04342c;
    --chm-teal-light: #e1f5ee;
    --chm-amber: #f5b942;
    --chm-amber-text: #412402;
    --chm-amber-light: #fdf3de;
    --chm-border: #e2e0d8;
    --chm-text: #26211c;
    --chm-text-muted: #6f6a62;
    font-family: inherit !important;
    position: relative;
    padding: 20px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
    background: #fff;
    border-radius: 16px;
    float: left;
    width: 100%;
}

.chm-filter button,
.chm-filter input {
    appearance: none !important;
    -webkit-appearance: none !important;
}

.chm-filter__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.chm-filter__title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--chm-text) !important;
    margin: 0 0 4px 0 !important;
}

.chm-filter__subtitle {
    font-size: 14px !important;
    color: var(--chm-text-muted) !important;
    margin: 0 !important;
}

.chm-filter__bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

.chm-dropdown {
    position: relative;
    flex: 0 1 170px;
    min-width: 150px;
}

.chm-dropdown--wide {
    flex: 0 1 240px;
    min-width: 190px;
}

.chm-dropdown--more {
    flex: 0 0 auto;
}

.chm-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
    width: 100%;
    height: 44px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: 1px solid var(--chm-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--chm-text) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    white-space: nowrap;
}

.chm-trigger:hover {
    border-color: var(--chm-teal) !important;
}

.chm-trigger--more {
    padding: 0 16px !important;
    font-weight: 600 !important;
}

.chm-trigger span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.chm-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--chm-text-muted);
    border-bottom: 1.5px solid var(--chm-text-muted);
    transform: rotate(45deg);
    flex: 0 0 auto;
    margin-top: -3px;
}

.chm-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px !important;
    background: var(--chm-teal) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 18px;
    margin-left: auto;
}

.chm-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    height: 44px !important;
    padding: 0 20px !important;
    margin: 0 0 0 auto !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 44px;
    cursor: pointer;
    white-space: nowrap;
}

.chm-btn--primary {
    background: var(--chm-amber) !important;
    color: var(--chm-amber-text) !important;
    border-color: var(--chm-amber) !important;
}

.chm-btn--primary:hover {
    background: #eaa92e !important;
    color: var(--chm-amber-text) !important;
}
.chm-reset-link {
    display: inline-flex !important;
    align-items: center;
    height: 44px;
    background: none !important;
    border: none !important;
    color: var(--chm-text-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    padding: 0 4px !important;
    text-decoration: underline;
    flex: 0 0 auto;
}

.chm-reset-link:hover {
    color: var(--chm-teal-dark) !important;
}
.chm-popover {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    z-index: 20 !important;
    width: 280px;
    border: 1px solid var(--chm-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.chm-popover--narrow {
    width: 220px;
}

.chm-popover--wide {
    width: 320px;
}

.chm-popover--scrollable {
    max-height: 380px;
    overflow-y: auto;
}

.chm-dd__group {
    padding: 6px 4px 2px 4px;
}

.chm-dd__section-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--chm-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 10px 10px 4px 10px !important;
}

.chm-dd__search-wrap {
    position: relative;
    margin: 4px;
}

.chm-dd__search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--chm-text-muted);
    border-radius: 50%;
    pointer-events: none;
}

.chm-dd__search-icon::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 1.5px;
    background: var(--chm-text-muted);
    right: -4px;
    bottom: 1px;
    transform: rotate(45deg);
}

.chm-dd__search {
    width: 100%;
    height: 36px !important;
    padding: 0 12px 0 30px !important;
    border: 1px solid var(--chm-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--chm-text) !important;
    font-size: 13px !important;
}

.chm-dd__search::placeholder {
    color: var(--chm-text-muted) !important;
    opacity: 1 !important;
}

.chm-dd__search:focus {
    outline: none;
    border-color: var(--chm-teal) !important;
}

.chm-dd__list {
    padding: 4px 0;
}

.chm-dd__row {
    display: flex !important;
    align-items: flex-start;
    width: 100%;
    padding: 9px 10px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--chm-text) !important;
    font-size: 13px !important;
    text-align: left;
    cursor: pointer;
}

.chm-dd__row:hover {
    background: var(--chm-teal-light) !important;
}

.chm-dd__row::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--chm-border);
    flex: 0 0 auto;
    margin-right: 10px;
    margin-top: 2px;
    box-sizing: border-box;
    background: #fff;
}

.chm-dd__row.is-selected {
    color: var(--chm-teal-dark) !important;
    font-weight: 600 !important;
}

.chm-dd__row.is-selected::before {
    border-color: var(--chm-teal);
    background: var(--chm-teal);
    box-shadow: inset 0 0 0 3px #fff;
}

.chm-dd__row.is-hidden {
    display: none !important;
}
.chm-dd__list--multi .chm-dd__row::before {
    border-radius: 4px;
}

.chm-dd__list--multi .chm-dd__row.is-selected::before {
    box-shadow: none;
}

.chm-dd__list--multi .chm-dd__row.is-selected::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 14px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.chm-dd__list--multi .chm-dd__row {
    position: relative;
}

.chm-dd__row-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.chm-dd__row-sub {
    font-size: 11px !important;
    color: var(--chm-text-muted) !important;
    font-weight: 400 !important;
    margin-top: 1px;
}

.chm-dd__row-cat {
    font-size: 11px !important;
    color: var(--chm-text-muted) !important;
    margin-left: auto;
    padding-left: 12px;
    margin-top: 2px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.chm-dd__divider {
    height: 1px;
    background: var(--chm-border);
    margin: 6px 6px;
}

.chm-dd__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px 2px 8px;
}

.chm-dd__clear {
    background: none !important;
    border: none !important;
    color: var(--chm-text-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    padding: 0 !important;
}

.chm-dd__clear:hover {
    color: var(--chm-text) !important;
    text-decoration: underline;
}

.chm-dd__apply {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 36px !important;
    padding: 0 20px !important;
    border-radius: 8px !important;
    border: 1px solid var(--chm-amber) !important;
    background: var(--chm-amber) !important;
    color: var(--chm-amber-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.chm-dd__apply:hover {
    background: #eaa92e !important;
    color: var(--chm-amber-text) !important;
}
.chm-active-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.chm-svc-wrap {
    margin-top: 20px;
    background: #faf9f6 !important;
    border: 1px solid var(--chm-border) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.chm-svc-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    padding: 16px 20px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    text-align: left;
}

.chm-svc-toggle__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chm-svc-toggle__icon {
    width: 16px;
    height: 16px;
    color: var(--chm-teal);
    flex: 0 0 auto;
}

.chm-svc-toggle__label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--chm-text) !important;
}

.chm-svc-toggle__count {
    font-size: 13px !important;
    color: var(--chm-text-muted) !important;
    margin-left: 4px;
}

.chm-svc-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--chm-text-muted);
    border-bottom: 1.5px solid var(--chm-text-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex: 0 0 auto;
}

.chm-svc-toggle.is-open .chm-svc-chevron {
    transform: rotate(-135deg);
    margin-top: 5px;
}

.chm-svc {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--chm-border);
}

.chm-svc.is-open {
    display: block;
}

.chm-svc__row1 {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 16px 0 14px;
}

.chm-svc__search-wrap {
    position: relative;
    flex: 0 1 300px;
    min-width: 200px;
}

.chm-svc__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--chm-text-muted);
    border-radius: 50%;
    pointer-events: none;
}

.chm-svc__search-icon::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 1.5px;
    background: var(--chm-text-muted);
    right: -4px;
    bottom: 1px;
    transform: rotate(45deg);
}

.chm-svc__search {
    width: 100%;
    height: 38px !important;
    padding: 0 14px 0 32px !important;
    border: 1px solid var(--chm-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--chm-text) !important;
    font-size: 13px !important;
}

.chm-svc__search::placeholder {
    color: var(--chm-text-muted) !important;
    opacity: 1 !important;
}

.chm-svc__search:focus {
    outline: none;
    border-color: var(--chm-teal) !important;
}

.chm-svc__tiers {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}

.chm-chip {
    display: inline-flex !important;
    align-items: center;
    height: 32px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--chm-border) !important;
    background: #fff !important;
    color: var(--chm-text) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.chm-chip.is-selected {
    background: var(--chm-amber) !important;
    border-color: var(--chm-amber) !important;
    color: var(--chm-amber-text) !important;
}

.chm-chip--pro {
    border-color: var(--chm-amber) !important;
    background: var(--chm-amber-light) !important;
    color: var(--chm-amber-text) !important;
    font-weight: 600 !important;
}

.chm-chip--pro.is-selected {
    background: var(--chm-amber) !important;
}

.chm-star {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    margin-right: 2px;
}

.chm-svc__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    border-bottom: 1px solid var(--chm-border);
}

.chm-svc__tab {
    flex: 0 0 auto;
    height: 42px !important;
    padding: 0 16px !important;
    border: none !important;
    background: transparent !important;
    color: var(--chm-text-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px;
    white-space: nowrap;
}

.chm-svc__tab:hover {
    color: var(--chm-text) !important;
}

.chm-svc__tab.is-active {
    color: var(--chm-teal-dark) !important;
    font-weight: 600 !important;
    border-bottom-color: var(--chm-teal) !important;
}

.chm-svc__panel {
    display: none;
    padding: 16px 4px 4px;
}

.chm-svc__panel.is-active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px 16px;
}

.chm-svc__search-results {
    display: none;
    padding: 14px 4px 4px;
}

.chm-svc__search-results.is-active {
    display: block;
}

.chm-svc__search-note {
    font-size: 12px !important;
    color: var(--chm-text-muted) !important;
    margin: 0 0 8px 4px !important;
}

.chm-svc__search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px 16px;
}

.chm-svc__row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 6px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.chm-svc__row:hover {
    background: var(--chm-teal-light) !important;
    border-radius: 6px !important;
}

.chm-svc__box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--chm-border);
    flex: 0 0 auto;
    position: relative;
    background: #fff;
}

.chm-svc__row.is-checked .chm-svc__box {
    background: var(--chm-teal) !important;
    border-color: var(--chm-teal) !important;
}

.chm-svc__row.is-checked .chm-svc__box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.chm-svc__label {
    font-size: 13px !important;
    color: var(--chm-text) !important;
}

.chm-svc__row.is-checked .chm-svc__label {
    color: var(--chm-teal-dark) !important;
    font-weight: 500 !important;
}

.chm-svc__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--chm-border);
}

.chm-svc__count {
    font-size: 13px !important;
    color: var(--chm-text-muted) !important;
}

.chm-svc__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.chm-svc__link {
    background: none !important;
    border: none !important;
    color: var(--chm-text-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    padding: 0 !important;
}

.chm-svc__link:hover {
    color: var(--chm-text) !important;
    text-decoration: underline;
}

.chm-svc__submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 40px !important;
    padding: 0 22px !important;
    border-radius: 8px !important;
    border: 1px solid var(--chm-amber) !important;
    background: var(--chm-amber) !important;
    color: var(--chm-amber-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.chm-svc__submit:hover {
    background: #eaa92e !important;
}

.chm-active-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 30px !important;
    padding: 0 8px 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid var(--chm-teal) !important;
    background: var(--chm-teal-light) !important;
    color: var(--chm-teal-dark) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.chm-active-chip--tier {
    border-color: var(--chm-amber) !important;
    background: var(--chm-amber-light) !important;
    color: var(--chm-amber-text) !important;
}

.chm-active-chip__remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08) !important;
    font-size: 10px ;
    line-height: 16px;
}

.chm-active-chip:hover .chm-active-chip__remove {
    background: rgba(0, 0, 0, 0.16) !important;
}

.chm-clear-all {
    background: none !important;
    border: none !important;
    color: var(--chm-text-muted) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 4px !important;
}

@media (min-width: 641px) and (max-width: 900px) {
    .chm-filter__bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
    }

    .chm-dropdown,
    .chm-dropdown--wide,
    .chm-dropdown--more {
        flex: unset;
        width: 100%;
        min-width: 0;
    }

    .chm-btn,
    .chm-reset-link {
        grid-column: 1 / -1;
    }

    .chm-btn {
        margin: 4px 0 0 0 !important;
        width: 100%;
    }

    .chm-reset-link {
        justify-self: end;
        margin: -2px 0 0 0 !important;
    }

    .chm-popover {
        max-width: calc(100vw - 64px);
    }

}

@media (max-width: 640px) {
    .chm-filter__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .chm-dropdown,
    .chm-dropdown--wide,
    .chm-dropdown--more,
    .chm-btn,
    .chm-reset-link {
        width: 100%;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
    }

    .chm-popover {
        width: 100% !important;
        left: 0 !important;
        max-width: none;
    }

    .chm-svc__footer {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .chm-svc__row1 {
        flex-direction: column;
        align-items: stretch;
    }

    .chm-svc__search-wrap {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    .chm-svc__tiers {
        margin-left: 0;
    }
}
