@use '../mat-selectors.scss' as ms;

adf-content-node-selector {
    .adf-upload-dialog {
        box-shadow: none;
        height: 100%;
        width: 100%;
        position: unset;
        bottom: unset;

        &__content {
            max-height: 64%;
        }
    }

    .adf-upload-dialog-container {
        height: 380px;
    }

    .adf-toolbar-title {
        place-items: center;
    }

    .adf-content-node-selector-local-upload-content {
        height: 50vh;

        adf-upload-drag-area {
            adf-empty-list {
                .adf-empty-folder-drag-drop {
                    min-height: 46px;
                    font-size: 40px;
                }

                .adf-empty-folder-image {
                    height: 100px;
                    width: 460px;
                }
            }
        }
    }
}

.adf-content-node-selector-dialog {
    #{ms.$mat-form-field} {
        width: 100%;
    }

    .adf-dropdown-breadcrumb-icon {
        color: var(--adf-theme-foreground-base-color-045);
    }

    #{ms.$mat-dialog-title} {
        margin-bottom: 0;
        padding: 0;

        &::before {
            display: none;
        }
    }

    .adf-content-node-selector-dialog-title {
        font-size: var(--theme-title-font-size);
        font-weight: 600;
        font-style: normal;
        font-stretch: normal;
        line-height: 1.6;
        letter-spacing: -0.5px;
        color: var(--adf-theme-foreground-text-color-087);
        margin-bottom: 20px;

        h2 {
            margin: unset;
            font-size: unset;
        }
    }

    .adf-content-node-selector-dialog-actions {
        padding: 8px;
        height: 77px;
        background-color: var(--theme-background-color);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        color: var(--adf-theme-foreground-text-color);

        label {
            text-transform: uppercase;
            font-weight: normal;
        }

        .adf-choose-action {
            &[disabled] {
                color: var(--adf-theme-foreground-secondary-text-color);
            }

            &:enabled {
                color: var(--theme-primary-color);
            }
        }
    }
}

@media screen and (width <= 768px) {
    .adf-content-node-selector-dialog {
        height: 100vh;
    }
}
