@import "../components/colors";
@import "../components/animation";
@import "../components/mixins";

.stm_lms_prerequisite_courses {
    position: relative;
    .btn {
        position: relative;
        margin-bottom: 0 !important;
        label {
            position: absolute;
            right: 17px;
            top: 27px;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 8px 7px 0 7px;
            border-color: #fff transparent transparent transparent;
        }
    }
    ul {
        display: none;
        margin: 0;
        background-color: #fff;
        //box-shadow: 0 5px 10px rgba(0,0,0,0.15);
        list-style: none;
        padding: 0;
        li {
            padding: 5px 30px 15px;
            margin: 0;
            border-left: 1px solid #e1e2e4;
            border-right: 1px solid #e1e2e4;
            a {
                h5 {
                    margin-bottom: 15px;
                    font-size: 16px;
                    font-weight: 600;
                    line-height: 20px;
                }
            }
            .btn-prices {
                padding-top: 10px;
                border-top: 5px solid #e0e0e0;
                .sale_price {
                    margin-right: 5px;
                    font-weight: 300;
                    color: #a3a3a3;
                    font-size: 15px;
                    text-decoration: line-through;
                }
                .price {
                    color: #273044;
                    font-weight: 700;
                    font-size: 16px;
                }
            }
            .progress {
                height: 5px;
                margin-bottom: 10px;
                background-color: #e0e0e0;
                box-shadow: none;
                &-bar {
                    background-color: #2fbe5b;
                    background-image: linear-gradient(45deg,rgba(255,255,255,.35) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.35) 50%,rgba(255,255,255,.35) 75%,transparent 75%,transparent);
                    box-shadow: none;
                }
            }
            .progress-started {
                color: #2fbe5b;
            }
            &.explanation {
                min-height: auto;
                background-color: #f0f4fa;
                color: #a3a3a3;
                font-size: 13px;
                cursor: pointer;
                border: 1px solid #e1e2e4;
                border-top: 0;
                border-bottom-left-radius: 10px;
                border-bottom-right-radius: 10px;
                transition: .3s ease;
                &.loading {
                    &:before {
                        top: 10px;
                    }
                }
                i {
                    margin-right: 5px;
                }
                &:hover {
                    color: #273044;
                }
            }
            &:first-child {
                padding-top: 23px;
            }
            &:last-child {
                padding-top: 14px;
                padding-bottom: 14px;
            }
        }
    }
    &.active {
        ul {
            visibility: visible;
            opacity: 1;
        }
        .btn {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }
    }
}

.stm-lms-modal-prerequisites {
    .modal-body {
        padding: 30px 30px;
        h3 {
            font-weight: 600;
            font-size: 26px;
        }
        p {
            margin-bottom: 0;
        }
    }
    .close {
        position: absolute;
        right: 5px;
        top: 5px;
        color: #000 !important;
        z-index: 999;
    }
}