:host {
    display: block;
}

.events-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.events-event-option {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    max-width: 100%;
    min-width: 0;
}

.events-event-option__auto-icon {
    color: var(--p-primary-color);
    flex: 0 0 auto;
    font-size: 0.75rem;
}

.events-event-option__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-event-option__badge {
    border: 1px solid color-mix(in srgb, var(--p-primary-color) 30%, transparent);
    border-radius: 999px;
    color: var(--p-primary-color);
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.18rem 0.42rem;
}

.events-filter-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.events-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.events-filter-field__label {
    color: var(--p-text-color);
    font-size: 0.875rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .events-filter-grid {
        grid-template-columns: 1fr;
    }
}
