.range-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.range-toolbar__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.range-toolbar__summary {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding-inline: 0.35rem;
    color: color-mix(in srgb, var(--p-text-muted-color) 90%, var(--p-text-color));
    font-size: 0.84rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    white-space: nowrap;
}

.range-toolbar__popover {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(34rem, calc(100vw - 3rem));
}

.range-toolbar__popover-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.range-toolbar__popover-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--p-text-color);
}

.range-toolbar__popover-copy {
    margin: 0;
    font-size: 0.9rem;
    color: var(--p-text-muted-color);
}

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

.range-toolbar__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.range-toolbar__field-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--p-text-color);
}

.range-toolbar__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .range-toolbar {
        align-items: stretch;
    }

    .range-toolbar__controls {
        width: 100%;
        gap: 0.5rem;
    }

    .range-toolbar__fields {
        grid-template-columns: 1fr;
    }

    .range-toolbar__summary {
        width: 100%;
        padding-inline: 0;
    }
}
