@import url('/app/new/type/index.css');

.modal {
    position: fixed;
    bottom: 32px;
    width: 0;
    height: 0;
    background-color: var(--primary);
    overflow-x: hidden;
    border-radius: 32px;
    transition: 0.5s ease;
    box-sizing: border-box;
    z-index: 1001;
    left: 50%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;

    opacity: 0;
    filter: blur(10px);
}


.modal-selected {

    max-width: calc(100vw - 2 * 16px) !important;
    width: calc(100vw - 2 * 16px) !important;
    left: 16px !important;
    gap: 16px !important;
    bottom: 16px;
    padding: 16px !important;
    height: calc(280px + 2 * 16px + 16px + 51.5px) !important;

    opacity: 1 !important;
    filter: blur(0px) !important;
}

.modal-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: hidden;
    padding-top: 16px;
    width: 100%;
    height: 280px;
    box-sizing: border-box;
    border-radius: 20px;
    background-color: var(--secondary);
    
    .modal-top {
        color: white;
        display: flex;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        text-align: center;

        .modal-title {
            font-family: var(--star-bold);
            font-size: 24px;
        }

        .modal-flavor, .modal-caffeine {
            font-family: var(--star-reg);
            font-size: 16px;
        }
    }
    .modal-image {
        max-width: calc(100% - 2 * 16px);
        height: 250px;
        margin: auto;
    }
}

.modal-buttons {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 8px;

    .btn {
        font-size: 16px;
        width: 100%;
        font-family: var(--pret-bold);
        padding: 16px 0;
        border-radius: 30px;
        text-align: center;
    }

    .btn-trans {
        background-color: var(--primary);
        color: white;
    }

    .btn-white {
        background-color: var(--white);
        color: var(--primary);
    }
}