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

.dash__modal {
    background: rgba(0, 0, 0, 0.85);
    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){
        justify-content: center;
        align-items: center;
    }

    &__content {
        background: #141414;
        max-width: 500px;
        border-radius: 0.75rem;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
        color: #FFF;
        padding: 2rem;
        position: relative;
        margin-top: 4rem;
        margin-bottom: 4rem;
        @media only screen and (max-width: 1000px) {
            right: 0 !important;
            margin: 0 auto;
            margin: 0 1rem;
            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-size: .9rem;
                    margin-bottom: 0.25rem;
                    font-weight: 500;
                    border-bottom: 1px solid #333;
                    padding-bottom: .3rem;
                  }

                  p {
                    font-size: 0.8rem !important;
                    margin-bottom: 1.5rem;
                    color: #bbb;
                    opacity: .8 !important;
                    line-height: 1.5;
                    padding-top: .2rem;
                  }
            }

            &--helper{
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 2rem;
                flex-direction: column;

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

                h1{
                    font-weight: 500;
                    color: variables.$col-white;
                }

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

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

            &--credit-type {
                height: 2rem;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(46, 171, 91, 0.15);
                color: #2eab5b;
                padding: 0.45rem 0.75rem;
                border-radius: 20px;
                font-size: 0.7rem;
                font-weight: 500;
            }

            &--debit-type {
                height: 2rem;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(244, 67, 54, 0.15);
                color: #f44336;
                padding: 0.45rem 0.75rem;
                border-radius: 20px;
                font-size: 0.7rem;
                font-weight: 500;
            }

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

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