@use "../../../../../styles/abstracts/variables";
@use "../../../../../styles/abstracts/mixins";

.dash__modal {
    background: rgba(0,0,0,.88);
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: scroll;
    @media only screen and (max-width: 1000px){
        padding: 0 1rem;
    }

    &__content {
        background: #FCFCFC;
        max-width: 420px;
        color: #000;
        padding: 1.5rem 2rem;
        border-radius: 10px;
        position: relative;
        margin-top: 4rem;
        margin-bottom: 4rem;
        right: 3rem;
        height: 80%;
        @media only screen and (max-width: 1000px) {
            right: 0 !important;
            margin: 0 auto;
            bottom: 0 !important;
            margin-bottom: 0 !important;
            height: 78%;
        }

        &--close {
            position: absolute;
            top: .76rem;
            right: 1rem;
            background: variables.$col-danger-color;
            color: #FFF;
            padding: .3rem .5rem;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 500;
            font-size: .7rem;
        }

        &--details {
            &--header{
                h2{
                    font-weight: 600;
                    font-size: 1rem;
                    border-bottom: 1px solid #ebebeb;
                    padding-bottom: .2rem;
                    color: variables.$col-secondary;
                }

                p{
                    font-size: .8rem !important;
                    padding-top: .5rem;
                    font-weight: 500;
                    color: variables.$col-secondary !important;
                    line-height: 1.6;
                    opacity: .95;
                }
            }
        &--summary {
            padding-top: 1rem;

            button{
                background: variables.$col-primary-btn;
                width: 100%;
                padding: .8rem .5rem;
                border-radius: 4px;
                color: variables.$col-white;
                font-weight: 500;
                font-size: .85rem;
                position: absolute;
                right: 0rem;
                left: 1.5rem;
                width: 88%;
                bottom: 2rem;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
            }

            label{
                display: block;
                @include mixins.formLabel
            }

            input {
                @include mixins.formInput;
                margin-bottom: 2rem
            }

            input::placeholder{ 
                color: variables.$col-secondary;
                font-size: .75rem;
            }

          &--item{
            position: relative;
            border: 1px solid variables.$col-border-lining;
            padding: 1rem 1rem;
            border-radius: 6px;
            cursor: pointer !important;
            margin-bottom: 2rem;

            &--top {
                display: flex;
                align-items: center;
                justify-content: space-between;

                h1{
                    color: variables.$col-secondary; 
                    font-weight: 500; 
                    font-size: .9rem
                }
            }

            p{
                font-size: .73rem; 
                opacity: .9; 
                font-weight: 500; 
                padding-top: .15rem; 
                color: variables.$col-secondary
            }

            small {
                color: variables.$col-secondary; 
                font-weight: 500;
                border-top: 1px solid variables.$col-border-lining; 
                display: block; 
                margin-top: .4rem;
                padding-top: .4rem; 
                font-size: .75rem; 
                opacity: .9; 
            }

            &--active {
                @extend .dash__modal__content--details--summary--item;
                border: 2px solid variables.$col-primary-btn !important;
                cursor: pointer;
            }
            
        }
        }
    }
}

} ::-webkit-scrollbar{
    display: none !important;
}