@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: flex-end;
    align-items: center;
    overflow-y: scroll !important;

    @media only screen and (max-width: 1000px){
        justify-content: center;
        // padding: 0 4rem;
        align-items: flex-end;
    }

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

        &--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: .95rem;
                    border-bottom: 1px solid #ebebeb;
                    padding-bottom: .2rem;
                    color: variables.$col-dark;
                }

                p{
                    font-size: .75rem !important;
                    padding-top: .3rem;
                    font-weight: 500;
                    color: variables.$col-dark !important;
                    line-height: 1.7;
                }
            }

            &--buttons {
                padding-top: .7rem;
                display: flex;
                gap: 10px;
                @media only screen and (max-width: 1000px){
                    flex-direction: column;
                    padding-top: .5rem;
                }
            &--download {
                background: variables.$col-orange;
                padding: .6rem .5rem;
                border-radius: 6px;
                color: variables.$col-dark;
                font-size: .7rem;
                font-weight: 600;
                width: 50%;
                span {
                    display: flex;
                    align-items: center !important;
                    justify-content: center;
                   }
                @media only screen and (max-width: 1000px){
                    width: 100%;
                    padding: 1rem 2rem;
                }
            }
    
            &--back{
                background: transparent;
                border: 2px solid variables.$col-orange;
                color: variables.$col-orange !important;
                padding: .6rem .5rem;
                border-radius: 6px;
                font-size: .7rem;
                font-weight: 600;
                width: 50%;
               span {
                display: flex;
                align-items: center !important;
                justify-content: center;
               }
                @media only screen and (max-width: 1000px){
                    width: 100%;
                    padding: 1rem 1rem;
                }
            }
           }

            &--helper{
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 2rem;
                flex-direction: column;
                @media only screen and (max-width: 1000px){
                    margin-top: 1.5rem;
                }

                h5{
                    padding-top: 1rem;
                    font-weight: 500;
                    font-size: .9rem;
                    color: variables.$col-dark;
                }

                h1{
                    font-weight: 600;
                    color: variables.$col-dark;
                }

                &--credit {
                    background: variables.$col-success-bg;
                    height: 3rem;
                    width: 3rem;
                    border-radius: 50px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
                &--debit {
                    background: variables.$col-danger-bg;
                    height: 3rem;
                    width: 3rem;
                    border-radius: 50px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    color: variables.$col-danger-color;
                }
            }
        &--summary {
          border: 1px solid #f2efef;
          margin-top: 1rem;
          padding: 1rem;
          border-radius: 10px;

          &--item {
            display: flex;
            justify-content: space-between;
            align-items: center !important;
            gap: 20px;
            line-height: 3.5;
            border-bottom: 1px solid #ececec;

            &--credit-type {
                background: variables.$col-success-bg;
                color: variables.$col-success-color !important;   
                padding: .2rem .8rem;
                border-radius: 50px;
                font-weight: 500;
                font-size: .75rem !important;
                display: inline-flex;
                justify-content: center;
                align-items: center;
                height: 2rem;
            }

            &--debit-type {
                background: variables.$col-danger-bg;
                color: variables.$col-danger-color !important;   
                padding: .3rem .8rem;
                border-radius: 50px;
                font-weight: 500;
                font-size: .82rem !important;
                display: inline-flex;
                justify-content: center;
                align-items: center;
                height: 2rem;
            }

            h6{
                font-weight: 600;
                font-size: .75rem;
                color: variables.$col-dark;
            }
            p{
                font-weight: 600;
                font-size: .75rem !important;
                color: variables.$col-dark !important;
                padding-top: 0 !important;
            }
          }
        }

        }
    }

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