/* Temas deste componente. Os VARs PHP são resolvidos no rebuild. */
:root, [data-theme="light"] {
    --footer-effects-var_others: _VAR_others_;
    --footer-effects-var_others_bottom: _VAR_others_bottom_;
    --footer-effects-site-others: var(--footer-effects-var_others);
    --footer-effects-site-others-bottom: var(--footer-effects-var_others_bottom);
    --footer-effects-color-detail-cccccc: #cccccc;
    --footer-effects-cookie-shadow: rgba(0, 0, 0, 0.18);
    --footer-effects-color-surface-rgb-241-242-243: rgb(241,242,243);
    --footer-effects-color-text-rgb-102-102-102: rgb(102,102,102);
}

[data-theme="dark"] {
    --footer-effects-var_others: _VAR_others_;
    --footer-effects-var_others_bottom: _VAR_others_bottom_;
    --footer-effects-color-surface-rgb-241-242-243: #202938;
    --footer-effects-cookie-shadow: rgba(0, 0, 0, 0.4);
    --footer-effects-color-text-rgb-102-102-102: #b9c3d1;
}

.carousel_dots {
    --carousel-dot-color: var(--footer-effects-site-others, var(--footer-effects-color-detail-cccccc));
}

.carousel_dots li button:before {
    content: '';
    background-color: var(--carousel-dot-color);
    -webkit-mask: url('../../../imgs/carousel_dot.svg') center / contain no-repeat;
    mask: url('../../../imgs/carousel_dot.svg') center / contain no-repeat;
}

.icone_whatsapp {
    z-index: 90 !important;
}

.icone_whatsapp img {
    display: block;
    transform-origin: 50% 100%;
}

.icone_whatsapp:hover img {
    animation: balancar-whatsapp 600ms ease-in-out;
}

@keyframes balancar-whatsapp {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-12deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-7deg); }
    80% { transform: rotate(4deg); }
}

#div_cookie {
    --cookie-collapsed-clip: inset(0 calc(50% - 22px) calc(100% - 40px) round 20px);
    position: fixed;
    left: 50%;
    right: auto;
    translate: -50% 0;
    bottom: 16px;
    z-index: 80;
    width: min(520px, calc(100% - 112px));
    box-sizing: border-box;
    padding: 44px 24px 24px;
    border: 1px solid var(--footer-effects-color-detail-cccccc);
    border-radius: 24px;
    box-shadow: 0 8px 28px var(--footer-effects-cookie-shadow);
    color: var(--footer-effects-color-text-rgb-102-102-102);
    background: var(--footer-effects-color-surface-rgb-241-242-243);
    font: inherit;
}

#div_cookie[hidden] {
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

#div_cookie .cookie_message {
    flex: 0 0 auto;
    float: none;
    width: auto;
    min-width: 96px;
    min-height: 44px;
    border-radius: 24px;
}

.cookie-toggle {
    position: absolute;
    top: 0;
    left: calc(50% - 22px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
}

.cookie-toggle:focus-visible,
#div_cookie .cookie_message:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.cookie-collapsed .cookie-toggle i {
    transform: rotate(180deg);
}

.cookie-collapsed {
    transform: translateY(calc(100% - 40px));
    clip-path: var(--cookie-collapsed-clip);
    pointer-events: none;
}

.cookie-collapsed .cookie-toggle {
    pointer-events: auto;
}

.cookie-animated {
    animation: cookie-rise 900ms cubic-bezier(0.45, 0, 0.25, 1) both;
}

.cookie-animated.cookie-collapsed {
    animation-name: cookie-drop;
}

@keyframes cookie-drop {
    0% {
        transform: translateY(0);
        clip-path: inset(-40px);
    }
    25% {
        transform: translateY(-18px);
        clip-path: inset(-40px);
    }
    100% {
        transform: translateY(calc(100% - 40px));
        clip-path: var(--cookie-collapsed-clip);
    }
}

@keyframes cookie-rise {
    0% {
        transform: translateY(calc(100% - 40px));
        clip-path: var(--cookie-collapsed-clip);
    }
    20% {
        transform: translateY(calc(100% - 28px));
        clip-path: var(--cookie-collapsed-clip);
    }
    80% {
        transform: translateY(-18px);
        clip-path: inset(-40px);
    }
    100% {
        transform: translateY(0);
        clip-path: inset(-40px);
    }
}

@media (max-width: 720px) {
    #div_cookie {
        left: 0;
        right: 0;
        translate: none;
        bottom: 0;
        width: 100%;
        padding: 16px 24px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        animation: none;
        clip-path: none;
    }

    #div_cookie.cookie-page-end {
        display: none;
    }

    #div_cookie .cookie-toggle {
        display: none;
    }

    #div_cookie .cookie_message {
        width: 140px;
        border-radius: 0;
        align-self: center;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-content p {
        font-size: 16px;
    }
}

/* LEGADO — popup do corretor por fragmento da URL (desativado junto ao common.js).
.corretor{
    position: fixed;
    right: 30px;
    bottom: 40px;
    z-index: 80;
}
.corretor h3{
    font-size: 14px;
    position: absolute;
    bottom: 10px;
    left: 59px;
    top: 30%;
    width: 110px;
    color: #eee;
}
.corretor .fecha_corretor{
    position: absolute;
    right: -19px;
    top: -10px;
    cursor: pointer;
    height: 20px;
}
.corretor .foto{
    height: 100px;
    width: 100px;
    position: absolute;
    left: -48px;
    top: 5px;
    border-radius: 100%;
    text-align: center;
    overflow: hidden;
    background-position: center center;
    background-size: cover;
    border-radius: 100%;
}
.corretor .whatsapp{
    height: 40px;
    position: absolute;
    right: 1px;
    bottom: 1px;
}

.corretor .wrap {
    background: rgba(255, 255, 255, 0);
    height: 109px;
    width: 120px;
    position: absolute;
    left: -56px;
}

.corretor .wrap .inner {
    height: 109px;
    width: 120px;
    background: var(--footer-effects-site-others-bottom, #CCC);
    border-radius: 100% 0% 0% 100%;
    position: absolute;
    left: 0px;
}
FIM DO LEGADO */
