@import "../../../styles/index";
.dnn-page-picker {
    * {
        box-sizing: border-box;
    }
    position: relative;
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;
    .page-picker-search {
        display: block;
        height: 34px;
        input[type="search"] {
            border-radius: 0px;
        }
    }
    .dropdown-icon {
        position: absolute;
        width: 13px;
        height: 13px;
        right: 10px;
        top: 11px;
        svg {
            fill: @rollingStone;
        }
    }
    .collapsible-label {
        cursor: pointer;
        font-family: inherit;
        position: relative;
        width: 100%;
        font-size: 13px;
        padding: 10px 40px 8px 15px;
        box-sizing: border-box;
        border: none;
        color: @bulgarianRose;
    }
    .collapsible-content {
        position: absolute;
        padding: 0;
        top: 35px;
        width: 100%;
        box-sizing: border-box;
        background-color: @white;
        z-index: 1000;
        -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
        -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
        box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
        border: 0px;
        visibility: hidden;
    }
    .page-picker-content {
        >div {
            padding: 21px 21px 29px;
        }
        .pages-container {
            padding: 8px 15px;
            ul {
                padding: 0 15px;
                list-style: none;
                font-size: 13px;
                color: @rollingStone;
                li {
                    font-size: 15px;
                    position: relative;
                    &.has-children.closed > ul {
                        max-height: 0;
                        opacity: 0;
                    }
                    .arrow-icon {
                        svg {
                            position: absolute;
                            left: -18px;
                            fill: @mountainMist;
                            width: 15px;
                            height: 15px;
                        }
                    }
                    .child-pages {
                        >li {
                            margin-top: 0px;
                        }
                        &.opened {
                            >li {
                                margin-top: 7px;
                            }
                        }
                    }
                    .page-value {
                        >div {
                            font-size: 15px;
                            margin-left: 20px;
                            line-height: 16px;
                            svg {
                                width: 16px;
                                height: 16px;
                                fill: @mountainMist;
                                position: absolute;
                                left: 0;
                            }
                            &.page-icon {
                                svg {
                                    left: 20px;
                                }
                            }
                            &.text-with-page-icon {
                                margin-left: 40px;
                            }
                            &.no-icon {
                                margin-left: 0px;
                            }
                            &:hover {
                                color: @curiousBlue;
                                svg {
                                    fill: @curiousBlue;
                                }
                            }
                        }
                        &.selected {
                            color: @curiousBlue;
                            svg {
                                fill: @curiousBlue;
                            }
                        }
                        &.non-selectable {
                            cursor: not-allowed;
                            >div {
                                &:hover {
                                    color: @rollingStone;
                                    svg {
                                        fill: @rollingStone;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        .count {
            font-size: 12px;
            color: @rollingStone;
            padding-top: 10px;
        }
        input[type="search"] {
            border: 1px solid @alto !important;
            margin-bottom: 10px;
            padding-right: 30px;
            &:focus {
                outline: none;
                border: 1px solid @curiousBlue !important;
            }
        }
    }
    &.disabled {
        background: @mercury;
        color: @mountainMist;
        svg {
            fill: @mountainMist;
        }
        cursor: not-allowed;
    }
    &.open {
        .collapsible-content {
            transition: .5s border;
            transition-delay: 0.3s;
            background: @white;
            border: 1px solid @alto;
            margin-top: 3px;
            visibility: visible;
        }
        &.with-border {
            border: 1px solid @curiousBlue;
        }
    }
    &.with-border {
        border: 1px solid @mountainMist;
        .collapsible-content {
            margin-top: 0;
            &.open {
                border: 1px solid @alto;
                border-top: none;
            }
        }
        &.disabled {
            border: 1px solid @mercury;
        }
    }
}