/* popuper */
.popuperWrap {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #00000091;
    z-index: 99999;
}

.popuperWrap  *::-webkit-scrollbar {
    width: 10px;
    background-color: rgb(232 232 232);
}

.popuperWrap  *::-webkit-scrollbar-thumb {
    background: rgb(193 193 193);
    border-radius: 2px;
    width: 6px;
}
.popuper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: max-content;
    width: max-content;
    max-width: 500px;
    min-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 90vh;
    animation: appearance .2s ease;


    &__header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 20px 10px;
        background: rgb(255, 255, 255);
    }

    &__title{
        font-weight: bold;
        font-size: 20px;
    }
    &__text{
        max-height: 60vh;
        margin-bottom: 20px;
        flex-grow: 1;
        overflow: auto;
    }

    &__body{
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: space-between;
        padding: 15px 20px;
        background: rgb(255, 255, 255);
        overflow-y: auto;
    }
    &__close {
        display: flex;
        margin-left: auto;
        cursor: pointer;
    }
    &__close svg{
        width: 25px;
        height: 25px;
    }
    &__controls {
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: center;
        padding: 10px 20px 10px;
        background: rgb(255, 255, 255);
    }
    & button {
        padding: 10px 15px;
        border-radius: 8px;
        background: #d7d7d7;
        color: #1a1a1a;
        outline: none;
        border: none;
        cursor: pointer;
        transition: all ease .2s;

        &:hover{
            background: #bbbbbb;
        }
    }
}
.--fixed{
    overflow-y: hidden;
}

@keyframes appearance {
    0% {
        transform: scale(.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
        opacity: .9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .popuper {
        max-height: 100vh;
        max-width: 100vw;

        &__header{
            padding: 10px 15px;
        }
        &__body{
            overflow: auto;
            padding: 10px 20px 10px;
        }
        &__text{
            max-height: none;
            margin-bottom: 20px;
        }
        &__controls{
            padding: 10px 20px 10px;
        }
    }
 }
/* !popuper */