/* =========================================================
   POPUP WEET SISTEM
========================================================= */

.weet-popup {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 999999;

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

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}


/* =========================================================
   POPUP ATIVO
========================================================= */

.weet-popup.ativo {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   FUNDO
========================================================= */

.weet-popup-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(5, 24, 31, 0.74);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* =========================================================
   CENTRALIZAÇÃO
========================================================= */

.weet-popup-wrapper {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 820px;

    max-height: calc(100vh - 60px);

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

    transform: translateY(25px) scale(.97);

    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}


.weet-popup.ativo .weet-popup-wrapper {
    transform: translateY(0) scale(1);
}


/* =========================================================
   CAIXA
========================================================= */

.weet-popup-box {
    position: relative;

    width: 100%;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0,0,0,.32),
        0 10px 30px rgba(0,102,135,.12);
}


/* Linha superior */

.weet-popup-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 6px;

    background: linear-gradient(
        90deg,
        #006687,
        #0087aa,
        #006687
    );

    z-index: 3;
}


/* Elemento decorativo */

.weet-popup-box::after {
    content: "";

    position: absolute;

    right: -150px;
    bottom: -170px;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background: rgba(0, 102, 135, .05);

    pointer-events: none;
}


/* =========================================================
   CONTEÚDO
========================================================= */

.weet-popup-content {
    position: relative;

    z-index: 2;

    padding: 52px 55px 50px;

    max-height: calc(100vh - 80px);

    overflow-y: auto;
}


/* =========================================================
   TÍTULO
========================================================= */

.weet-popup-title {
    margin:
        0
        55px
        22px
        0;

    padding: 0;

    color: #173b49;

    font-size: 31px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -.6px;
}


.weet-popup-title::after {
    content: "";

    display: block;

    width: 58px;
    height: 4px;

    margin-top: 17px;

    background: #006687;

    border-radius: 20px;
}


/* =========================================================
   DESCRIÇÃO
========================================================= */

.weet-popup-description {
    color: #5d6b71;

    font-size: 16px;
    line-height: 1.75;

    margin-bottom: 28px;
}


.weet-popup-description p {
    margin:
        0
        0
        15px;
}


.weet-popup-description p:last-child {
    margin-bottom: 0;
}


.weet-popup-description strong {
    color: #234652;
    font-weight: 700;
}


.weet-popup-description a {
    color: #006687;

    font-weight: 600;

    text-decoration: none;

    transition: color .2s ease;
}


.weet-popup-description a:hover {
    color: #004d66;
}


/* =========================================================
   IMAGEM
========================================================= */

.weet-popup-image {
    margin-top: 28px;

    position: relative;
}


.weet-popup-image img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    border-radius: 10px;
}


/* =========================================================
   BOTÃO FECHAR
========================================================= */

.weet-popup-close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 20;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #eef5f7;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}


.weet-popup-close span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 17px;
    height: 2px;

    background: #006687;

    border-radius: 10px;

    transition: background .25s ease;
}


.weet-popup-close span:first-child {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}


.weet-popup-close span:last-child {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


.weet-popup-close:hover {
    background: #006687;

    transform: rotate(90deg);
}


.weet-popup-close:hover span {
    background: #ffffff;
}


/* =========================================================
   BLOQUEIA SCROLL DA PÁGINA
========================================================= */

body.popup-aberto {
    overflow: hidden;
}


/* =========================================================
   BARRA DE ROLAGEM DO POPUP
========================================================= */

.weet-popup-content::-webkit-scrollbar {
    width: 7px;
}


.weet-popup-content::-webkit-scrollbar-track {
    background: #f1f5f6;
}


.weet-popup-content::-webkit-scrollbar-thumb {
    background: #a8c5ce;

    border-radius: 20px;
}


.weet-popup-content::-webkit-scrollbar-thumb:hover {
    background: #006687;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .weet-popup {
        padding: 25px;
    }

    .weet-popup-wrapper {
        max-width: 700px;
    }

    .weet-popup-content {
        padding:
            48px
            42px
            42px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .weet-popup {
        padding: 15px;
    }


    .weet-popup-wrapper {
        max-height: calc(100vh - 30px);
    }


    .weet-popup-box {
        border-radius: 13px;
    }


    .weet-popup-content {
        padding:
            48px
            24px
            30px;

        max-height: calc(100vh - 30px);
    }


    .weet-popup-title {
        margin:
            0
            40px
            20px
            0;

        font-size: 24px;

        line-height: 1.25;

        letter-spacing: -.3px;
    }


    .weet-popup-title::after {
        width: 45px;
        height: 3px;

        margin-top: 13px;
    }


    .weet-popup-description {
        font-size: 15px;

        line-height: 1.65;
    }


    .weet-popup-close {
        top: 13px;
        right: 13px;

        width: 37px;
        height: 37px;
    }


    .weet-popup-close span {
        width: 15px;
    }


    .weet-popup-image {
        margin-top: 22px;
    }

}


/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 400px) {

    .weet-popup {
        padding: 10px;
    }


    .weet-popup-content {
        padding:
            45px
            20px
            26px;
    }


    .weet-popup-title {
        font-size: 22px;
    }

}