.cx-one-to-many {
    min-width: 0;
}

.cx-one-to-many-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--cx-space-3);
    min-height: 36px;
    margin: 0;
    padding: var(--cx-space-1) var(--cx-space-3);
    background: var(--cx-color-surface);
    border-block-end: 1px solid var(--cx-color-border);
}

.cx-one-to-many-header--actions-only {
    justify-content: flex-end;
}

.cx-one-to-many-header-text {
    min-width: 0;
}

.cx-one-to-many-title {
    margin: 0;
    color: var(--cx-color-text-muted);
    font-family: var(--cx-font-family);
    font-size: 11px;
    font-weight: var(--cx-font-weight-semibold);
    line-height: var(--cx-line-height-snug);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cx-one-to-many-description {
    margin: var(--cx-space-1) 0 0;
    color: var(--cx-color-text-muted);
    font-size: var(--cx-font-size-xs);
    line-height: var(--cx-line-height-snug);
}

.cx-one-to-many-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--cx-space-2);
}

.cx-one-to-many .cx-data-grid-toolbar[hidden] {
    display: none;
}

@media (max-width: 48rem) {
    .cx-one-to-many-header {
        align-items: stretch;
        flex-direction: column;
    }

    .cx-one-to-many-header--actions-only {
        align-items: flex-end;
    }

    .cx-one-to-many-actions {
        justify-content: flex-start;
    }
}
