.c3-taxonomy-dropdown--ready.elementor-widget-taxonomy-filter {
    position: relative;
    width: auto;
    max-width: 100%;
    overflow: visible;
    flex-shrink: 0;
    font-family: var(--e-global-typography-text-font-family, sans-serif);
}

.c3-taxonomy-dropdown--ready:has([aria-expanded="true"]) {
    z-index: 10;
}

.c3-taxonomy-dropdown--ready * {
    box-sizing: border-box;
}

.c3-taxonomy-dropdown--ready .c3-taxonomy-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: #141f39;
    color: white;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
    cursor: pointer;
}

.c3-taxonomy-dropdown--ready .c3-taxonomy-dropdown__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 20px;
    background: white;
    color: #141f39;
    font-size: 16px;
    line-height: 22px;
}

.c3-taxonomy-dropdown--ready .c3-taxonomy-dropdown__chevron {
    width: 14px;
    height: 14px;
    margin: -6px 3px 0 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 200ms ease;
}

.c3-taxonomy-dropdown--ready [aria-expanded="true"] .c3-taxonomy-dropdown__chevron {
    margin-top: 6px;
    transform: rotate(225deg);
}

.c3-taxonomy-dropdown--ready.elementor-widget-taxonomy-filter .e-filter {
    box-sizing: border-box;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
    min-width: 200px;
    max-width: calc(100vw - 32px);
    max-height: min(360px, 60vh);
    overflow: auto;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 24px #15213e26;
    z-index: 10;
}

.c3-taxonomy-dropdown--ready.elementor-widget-taxonomy-filter .e-filter-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #15213e;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}

.c3-taxonomy-dropdown--ready .e-filter-item::before {
    content: '';
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 2px solid #8798bd;
    border-radius: 4px;
}

.c3-taxonomy-dropdown--ready .e-filter-item[aria-pressed="true"]::before {
    background: #8798bd;
    box-shadow: inset 0 0 0 2px white;
}

.c3-taxonomy-dropdown--ready .e-filter-item:hover {
    background: #ecf1f7;
}

.c3-taxonomy-dropdown--ready button:focus-visible {
    outline: 3px solid #8798bd;
    outline-offset: 2px;
}

.c3-taxonomy-dropdown--ready [hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .c3-taxonomy-dropdown--ready .c3-taxonomy-dropdown__toggle {
        padding: 10px 12px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c3-taxonomy-dropdown__chevron {
        transition: none !important;
    }
}
