/* =====================================================
   BANNER FLUTUANTE | FRANQUIAS NEWCASTLE
===================================================== */

.franchise-float {
    position: fixed;
    z-index: 9998;

    left: 24px;
    right: auto;
    bottom: calc(var(--franchise-cookie-offset, 18px) + env(safe-area-inset-bottom));

    width: 440px;
    max-width: calc(100vw - 32px);

    display: flex;
    align-items: stretch;

    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 12px 45px rgba(9, 18, 62, 0.20);
    border: 1px solid rgba(20, 36, 107, 0.08);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(25px);

    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0.4s ease;

    font-family: inherit;
}

/* BANNER VISÍVEL */

.franchise-float.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

/* IMAGEM */

.franchise-float-image {
    width: 36%;
    min-width: 145px;

    position: relative;
    overflow: hidden;

    background: #e9edf5;
}

.franchise-float-image img {
    width: 100%;
    height: 100%;

    min-height: 220px;

    object-fit: cover;
    object-position: center;

    display: block;
}

/* CONTEÚDO */

.franchise-float-content {
    flex: 1;

    padding: 25px 22px 22px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    justify-content: center;

    background: #ffffff;
}

/* IDENTIFICAÇÃO */

.franchise-float-kicker {
    display: inline-block;

    margin-bottom: 7px;

    color: #e53438;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
    line-height: 1.4;
}

/* TÍTULO */

.franchise-float-content h2 {
    margin: 0 0 9px;

    color: #14246b;

    font-size: 19px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -0.4px;
}

/* TEXTO */

.franchise-float-content p {
    margin: 0 0 16px;

    color: #646b7a;

    font-size: 12px;
    line-height: 1.5;
}

/* BOTÃO WHATSAPP */

.franchise-float-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 11px 15px;

    width: 100%;

    background: #14246b;
    color: #ffffff !important;

    border-radius: 7px;

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

    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.franchise-float-button:hover {
    background: #e53438;
    color: #ffffff !important;

    transform: translateY(-2px);
}

.franchise-float-button span {
    font-size: 17px;
    line-height: 1;
}

/* BOTÃO FECHAR */

.franchise-float-close {
    position: absolute;

    top: 8px;
    right: 8px;

    z-index: 5;

    width: 25px;
    height: 25px;

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

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(20, 36, 107, 0.08);
    color: #14246b;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.franchise-float-close:hover {
    background: #e53438;
    color: #ffffff;
}

/* =====================================================
   RESPONSIVIDADE | TABLETS
===================================================== */

@media (max-width: 767px) {

    .franchise-float {
        left: 12px;
        right: auto;
        bottom: calc(var(--franchise-cookie-offset, 18px) + env(safe-area-inset-bottom));

        width: 360px;
        max-width: calc(100vw - 24px);

        border-radius: 13px;
    }

    .franchise-float-image {
        width: 32%;
        min-width: 105px;
    }

    .franchise-float-image img {
        min-height: 205px;
    }

    .franchise-float-content {
        padding: 20px 15px 17px;
    }

    .franchise-float-content h2 {
        font-size: 16px;
    }

    .franchise-float-content p {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .franchise-float-button {
        padding: 10px 9px;
        font-size: 10px;
    }

}

/* =====================================================
   RESPONSIVIDADE | CELULARES PEQUENOS
===================================================== */

@media (max-width: 380px) {

    .franchise-float {
        left: 10px;
        right: auto;
        max-width: calc(100vw - 20px);
    }

    .franchise-float-image {
        width: 29%;
        min-width: 90px;
    }

    .franchise-float-content {
        padding: 18px 12px 14px;
    }

    .franchise-float-content h2 {
        font-size: 14px;
    }

    .franchise-float-kicker {
        font-size: 9px;
    }

    .franchise-float-content p {
        font-size: 10px;
    }

}

/* ACESSIBILIDADE: REDUÇÃO DE MOVIMENTO */

@media (prefers-reduced-motion: reduce) {

    .franchise-float,
    .franchise-float-button,
    .franchise-float-close {
        transition: none;
    }

}