:root {
    --main-blue: 0, 56, 255;
}

.iframe-container {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.35);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.iframe-container-messages {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 9998;
    background-color: transparent;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.iframe-container-messages:hover:not(:has(iframe:hover)) {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.35);
}

iframe {
    border-radius: 10px;
    border: none;
    outline: none;
    /* box-shadow: 0px 0px 3px 2px rgba(255, 255, 255, 0.25); */
    background-color: transparent;

    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.iframe-container > iframe {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 98%;
}

.iframe-container-messages > iframe {
    position: fixed;
    width: 25%;
    height: 85%;
    top: var(--top-gap-main-boxes);
    right: 20px;
}

.iframe-close-button {
    display: none;
}

@media screen and (max-width: 1100px) {

    .iframe-container-messages > iframe {
        width: calc(35% - 30px);
        right: 20px;
    }
}

@media screen and (max-width: 900px) {
    .iframe-container-messages > iframe {
        position: fixed;
        width: 750px;
        left: 100%;
        height: 95%;
        right: unset;
        top: unset;
        border: 1px solid black;
        box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.25);

        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        -o-transition: all 0.5s;
        transition: all 0.5s;
    }

    .iframe-container-messages > iframe[show="true"] {
        left: calc(50% - 375px);
    }

    .iframe-container-messages > iframe[show="false"] {
        left: 100%;
    }
}

@media screen and (max-width: 750px) {

    .iframe-container-messages > iframe {
        width: 100%;
        height: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .iframe-container-messages > iframe[show="true"] {
        left: 0;
    }

    .iframe-container-messages > iframe[show="false"] {
        left: 100%;
    }

    .iframe-close-button {
        display: block;
        position: absolute;
        bottom: 30px;
        margin: auto;
        margin-top: 0;
        font-size: 20px;
        color: white;
        background-color: rgba(var(--main-blue), 1);
        font-family: "UniChat";
        padding: 5px;
        border-radius: 10px;
        outline: none;
        border: none;
        opacity: 0.8;
    }
    
    .iframe-close-button:hover {
        cursor: pointer;
    }

    .hide {
        display: none !important;
    }

    .iframe-container[discount="true"] > .iframe-close-button {
        bottom: 65px;
    }

    .chosen {
        top: 4px;
    }
}

@media screen and (max-width: 450px) {

    .iframe-container {
        flex-direction: row;
        align-items: flex-end;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .iframe-container > iframe {
        height: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0px 0px;
        overflow-y: hidden;
    }

    .iframe-container > iframe[show="true"] {
        height: 97%;
    }

    .iframe-container > iframe[show="false"] {
        height: 0;
    }
}