/* ==========================================================================
   GLOBAL CARGO CHATBOT
   CORRECCIÓN COMPLETA RESPONSIVE + SCROLL
   Ruta: assets/css/chatbot.css
   Prefijo: gccb-
   ========================================================================== */

:root {

    --gccb-orange: #f45b20;
    --gccb-orange-2: #ff7a20;
    --gccb-orange-dark: #d94b14;

    --gccb-navy: #03121f;
    --gccb-navy-2: #071d31;
    --gccb-navy-3: #0b2942;

    --gccb-white: #ffffff;
    --gccb-text: #edf4fa;
    --gccb-muted: #a9bac8;

    --gccb-border: rgba(139, 180, 212, .22);
    --gccb-border-orange: rgba(244, 91, 32, .38);

    --gccb-shadow:
        0 35px 90px rgba(0, 0, 0, .46);

    --gccb-font:
        "Aptos",
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif;
}


/* ==========================================================================
   RESET LOCAL
   ========================================================================== */

.gccb,
.gccb *,
.gccb *::before,
.gccb *::after {
    box-sizing: border-box;
}


.gccb {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 999999;

    font-family: var(--gccb-font);

    font-size: 16px;
    line-height: 1.45;

    color: var(--gccb-text);

    pointer-events: none;
}


.gccb button,
.gccb textarea,
.gccb a {
    font: inherit;
}


.gccb button {
    cursor: pointer;
}


.gccb svg {

    width: 22px;
    height: 22px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   PERMITIR INTERACCIÓN
   ========================================================================== */

.gccb-launcher,
.gccb-app {
    pointer-events: auto;
}


/* ==========================================================================
   LAUNCHER
   ========================================================================== */

.gccb-launcher {

    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 300px;
    min-height: 72px;

    padding:
        9px
        18px
        9px
        10px;

    border:
        1px solid
        rgba(255, 255, 255, .13);

    border-radius: 22px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            rgba(3, 18, 31, .98),
            rgba(8, 35, 57, .98)
        );

    box-shadow:
        0 18px 50px rgba(0, 0, 0, .32),
        0 0 0 1px rgba(244, 91, 32, .08);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.gccb-launcher:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 25px 65px rgba(0, 0, 0, .4),
        0 0 35px rgba(244, 91, 32, .15);
}


.gccb[data-gccb-open="true"]
.gccb-launcher {
    display: none;
}


.gccb-launcher__pulse {

    position: absolute;

    left: 46px;
    top: 10px;

    width: 10px;
    height: 10px;

    border:
        2px solid
        var(--gccb-navy);

    border-radius: 50%;

    background: #3bd671;

    z-index: 4;
}


.gccb-launcher__logo {

    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 5px;

    border:
        1px solid
        rgba(244, 91, 32, .45);

    border-radius: 17px;

    background:
        radial-gradient(
            circle,
            rgba(244, 91, 32, .15),
            rgba(255, 255, 255, .025)
        );
}


.gccb-launcher__logo img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.gccb-launcher__copy {

    flex: 1;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    text-align: left;
}


.gccb-launcher__copy small {

    display: block;

    margin-bottom: 1px;

    color: #b8c7d3;

    font-size: 14px;
}


.gccb-launcher__copy strong {

    color: #fff;

    font-size: 15px;
    font-weight: 800;
}


.gccb-launcher__arrow {

    color: var(--gccb-orange);

    font-size: 22px;
}


/* ==========================================================================
   APP
   ========================================================================== */

.gccb-app {

    /*
     * IMPORTANTE:
     *
     * Nunca puede superar el viewport.
     * Esto evita que el input quede debajo
     * de la pantalla.
     */

    width:
        min(
            1120px,
            calc(100vw - 40px)
        );

    height:
        min(
            760px,
            calc(100dvh - 40px)
        );

    max-width:
        calc(100vw - 40px);

    max-height:
        calc(100dvh - 40px);

    min-height: 0;

    display: grid;

    grid-template-columns:
        310px minmax(0, 1fr);

    grid-template-rows:
        minmax(0, 1fr);

    border:
        1px solid
        rgba(130, 174, 207, .3);

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(3, 18, 31, .99),
            rgba(5, 27, 45, .99)
        );

    box-shadow:
        var(--gccb-shadow);

    overflow: hidden;

    transform-origin:
        right bottom;

    animation:
        gccbOpen .28s ease both;

    /*
     * Evita rebote del navegador
     * cuando hacemos scroll dentro del chat.
     */

    overscroll-behavior:
        contain;
}


.gccb-app[aria-hidden="true"] {
    display: none;
}


/* ==========================================================================
   EXPANDED
   ========================================================================== */

.gccb.is-expanded
.gccb-app {

    width:
        calc(100vw - 32px);

    height:
        calc(100dvh - 32px);

    max-width:
        calc(100vw - 32px);

    max-height:
        calc(100dvh - 32px);
}


@keyframes gccbOpen {

    from {

        opacity: 0;

        transform:
            translateY(22px)
            scale(.97);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.gccb-sidebar {

    position: relative;

    width: 100%;

    min-width: 0;
    min-height: 0;

    height: 100%;

    padding: 20px;

    border-right:
        1px solid
        var(--gccb-border);

    background:
        linear-gradient(
            180deg,
            rgba(7, 30, 49, .98),
            rgba(3, 19, 32, .99)
        );

    /*
     * Sidebar independiente.
     */

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior:
        contain;

    -webkit-overflow-scrolling:
        touch;

    touch-action:
        pan-y;

    scrollbar-width:
        thin;

    scrollbar-color:
        rgba(244, 91, 32, .45)
        rgba(255, 255, 255, .04);
}


.gccb-sidebar::-webkit-scrollbar {
    width: 6px;
}


.gccb-sidebar::-webkit-scrollbar-track {
    background:
        rgba(255, 255, 255, .02);
}


.gccb-sidebar::-webkit-scrollbar-thumb {

    border-radius: 100px;

    background:
        rgba(244, 91, 32, .42);
}


/* ==========================================================================
   SIDEBAR BRAND
   ========================================================================== */

.gccb-sidebar__brand {

    display: flex;

    align-items: center;

    gap: 12px;

    padding-bottom: 18px;

    border-bottom:
        1px solid
        var(--gccb-border);
}


.gccb-sidebar__brand img {

    width: 64px;
    height: 50px;

    object-fit: contain;
}


.gccb-sidebar__brand div {
    min-width: 0;
}


.gccb-sidebar__brand strong {

    display: block;

    color: #fff;

    font-size: 15px;
    font-weight: 800;
}


.gccb-sidebar__brand span {

    display: block;

    margin-top: 2px;

    color:
        var(--gccb-muted);

    font-size: 14px;
}


/* ==========================================================================
   SIDEBAR INTRO
   ========================================================================== */

.gccb-sidebar__intro {

    padding:
        24px
        2px
        18px;
}


.gccb-sidebar__intro > span {

    display: block;

    margin-bottom: 4px;

    color:
        var(--gccb-orange);

    font-size: 15px;
    font-weight: 800;
}


.gccb-sidebar__intro h3 {

    margin: 0;

    color: #fff;

    font-size: 21px;

    line-height: 1.25;
}


/* ==========================================================================
   ACTIONS
   ========================================================================== */

.gccb-actions {

    display: grid;

    gap: 10px;
}


.gccb-action {

    width: 100%;

    min-height: 58px;

    display: grid;

    grid-template-columns:
        40px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    padding:
        8px
        13px;

    border:
        1px solid
        var(--gccb-border);

    border-radius: 15px;

    color: #fff;

    background:
        rgba(255, 255, 255, .035);

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.gccb-action:hover {

    transform:
        translateX(3px);

    border-color:
        rgba(244, 91, 32, .42);

    background:
        rgba(244, 91, 32, .08);
}


.gccb-action--primary {

    border-color:
        transparent;

    background:
        linear-gradient(
            135deg,
            var(--gccb-orange),
            var(--gccb-orange-2)
        );

    box-shadow:
        0 10px 30px
        rgba(244, 91, 32, .23);
}


.gccb-action--primary:hover {

    background:
        linear-gradient(
            135deg,
            var(--gccb-orange-dark),
            var(--gccb-orange)
        );
}


.gccb-action__icon {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, .08);
}


.gccb-action span:not(
    .gccb-action__icon
) {

    text-align: left;

    font-size: 15px;
    font-weight: 700;
}


.gccb-action b {

    font-size: 20px;
    font-weight: 400;
}


/* ==========================================================================
   WHATSAPP CARD
   ========================================================================== */

.gccb-whatsapp-card {

    display: grid;

    grid-template-columns:
        48px
        1fr;

    align-items: center;

    gap: 12px;

    margin-top: 18px;

    padding: 15px;

    border:
        1px solid
        rgba(56, 193, 114, .28);

    border-radius: 17px;

    color: #fff;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            rgba(23, 164, 83, .11),
            rgba(255, 255, 255, .025)
        );
}


.gccb-whatsapp-card__icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    color: #fff;

    background:
        #25d366;
}


.gccb-whatsapp-card small,
.gccb-whatsapp-card strong,
.gccb-whatsapp-card em {

    display: block;
}


.gccb-whatsapp-card small {

    color: #b7c7d3;

    font-size: 14px;
}


.gccb-whatsapp-card strong {

    margin:
        2px
        0;

    color: #fff;

    font-size: 19px;
}


.gccb-whatsapp-card em {

    color: #a9bac8;

    font-size: 14px;

    font-style: normal;
}


/* ==========================================================================
   BUSINESS CARD
   ========================================================================== */

.gccb-business-card {

    width: 100%;

    display: grid;

    grid-template-columns:
        42px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    margin-top: 12px;

    margin-bottom: 6px;

    padding: 14px;

    border:
        1px solid
        var(--gccb-border);

    border-radius: 17px;

    color: #fff;

    background:
        rgba(255, 255, 255, .03);
}


.gccb-business-card__icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color:
        var(--gccb-orange);

    background:
        rgba(244, 91, 32, .09);
}


.gccb-business-card >
span:nth-child(2) {

    text-align: left;
}


.gccb-business-card strong,
.gccb-business-card small {

    display: block;
}


.gccb-business-card strong {
    font-size: 15px;
}


.gccb-business-card small {

    margin-top: 2px;

    color:
        var(--gccb-muted);

    font-size: 14px;
}


/* ==========================================================================
   MAIN CHAT

   IMPORTANTE:
   min-height: 0 + overflow:hidden evita que los mensajes hagan crecer
   el panel y empujen el input fuera de pantalla.
   ========================================================================== */

.gccb-main {

    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 0%,
            rgba(244, 91, 32, .075),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #071a2c,
            #041321
        );
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.gccb-header {

    position: relative;

    z-index: 10;

    flex:
        0
        0
        auto;

    min-height: 88px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        14px
        18px;

    border-bottom:
        1px solid
        var(--gccb-border);

    background:
        rgba(5, 24, 40, .96);
}


.gccb-header__assistant {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 12px;
}


.gccb-avatar {

    flex:
        0
        0
        58px;

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 5px;

    border:
        2px solid
        rgba(244, 91, 32, .6);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(244, 91, 32, .16),
            rgba(0, 0, 0, .28)
        );
}


.gccb-avatar img {

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.gccb-header__assistant > div {
    min-width: 0;
}


.gccb-header__title {

    display: flex;

    align-items: center;

    gap: 8px;
}


.gccb-header__title strong {

    color: #fff;

    font-size: 18px;
    font-weight: 800;
}


.gccb-header__title i {

    width: 10px;
    height: 10px;

    display: inline-block;

    border-radius: 50%;

    background:
        #41d276;

    box-shadow:
        0 0 12px
        rgba(65, 210, 118, .7);
}


.gccb-header__assistant >
div > span {

    display: block;

    color: #bdcbd6;

    font-size: 14px;
}


.gccb-header__assistant small {

    display: inline-block;

    margin-top: 5px;

    padding:
        5px
        9px;

    border:
        1px solid
        rgba(82, 153, 205, .24);

    border-radius: 50px;

    color: #d6e5f0;

    font-size: 14px;

    background:
        rgba(20, 87, 139, .22);
}


.gccb-header__controls {

    flex:
        0
        0
        auto;

    display: flex;

    gap: 8px;
}


.gccb-header__controls button {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--gccb-border);

    border-radius: 12px;

    color: #d6e2eb;

    background:
        rgba(255, 255, 255, .035);
}


.gccb-header__controls button:hover {

    border-color:
        rgba(244, 91, 32, .4);

    color: #fff;

    background:
        rgba(244, 91, 32, .1);
}


/* ==========================================================================
   MESSAGES

   ESTA ES LA ZONA QUE AHORA HACE SCROLL
   ========================================================================== */

.gccb-messages {

    position: relative;

    flex:
        1
        1
        auto;

    width: 100%;

    min-width: 0;
    min-height: 0;

    padding:
        22px
        20px
        20px;

    overflow-x: hidden;

    /*
     * Scroll independiente.
     */

    overflow-y: auto;

    overscroll-behavior:
        contain;

    -webkit-overflow-scrolling:
        touch;

    touch-action:
        pan-y;

    scrollbar-gutter:
        stable;

    scrollbar-width:
        thin;

    scrollbar-color:
        rgba(244, 91, 32, .42)
        rgba(255, 255, 255, .03);
}


.gccb-messages::-webkit-scrollbar {
    width: 7px;
}


.gccb-messages::-webkit-scrollbar-track {

    border-radius: 100px;

    background:
        rgba(255, 255, 255, .02);
}


.gccb-messages::-webkit-scrollbar-thumb {

    border-radius: 100px;

    background:
        rgba(244, 91, 32, .42);
}


.gccb-messages::-webkit-scrollbar-thumb:hover {

    background:
        rgba(244, 91, 32, .72);
}


/* ==========================================================================
   MESSAGE
   ========================================================================== */

.gccb-message {

    width: 100%;

    display: flex;

    align-items: flex-end;

    gap: 10px;

    margin-bottom: 18px;
}


.gccb-message--user {

    justify-content:
        flex-end;
}


.gccb-message__avatar {

    flex:
        0
        0
        40px;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 4px;

    border:
        1px solid
        rgba(244, 91, 32, .42);

    border-radius: 50%;

    background:
        #07192a;
}


.gccb-message__avatar img {

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.gccb-message__user-icon {

    flex:
        0
        0
        38px;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, .15);

    border-radius: 50%;

    color: #dce7ef;

    background:
        #263a50;
}


.gccb-message__bubble {

    position: relative;

    max-width:
        min(
            650px,
            82%
        );

    padding:
        13px
        15px;

    border:
        1px solid
        var(--gccb-border);

    border-radius:
        16px
        16px
        16px
        5px;

    color: #edf4fa;

    font-size: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(35, 60, 84, .96),
            rgba(25, 47, 68, .96)
        );

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, .12);
}


.gccb-message--user
.gccb-message__bubble {

    border-color:
        rgba(244, 91, 32, .28);

    border-radius:
        16px
        16px
        5px
        16px;

    background:
        linear-gradient(
            135deg,
            rgba(142, 55, 22, .9),
            rgba(105, 46, 26, .9)
        );
}


.gccb-message__bubble p {

    margin: 0;

    font-size: 15px;
}


.gccb-message__bubble p + p {
    margin-top: 8px;
}


.gccb-message__bubble strong {
    color: #fff;
}


.gccb-message__bubble ul {

    margin:
        9px
        0
        0;

    padding: 0;

    list-style: none;
}


.gccb-message__bubble li {

    position: relative;

    margin:
        5px
        0;

    padding-left: 18px;

    font-size: 15px;
}


.gccb-message__bubble li::before {

    content: "";

    position: absolute;

    left: 0;
    top: .62em;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--gccb-orange);
}


.gccb-message__time {

    display: block;

    margin-top: 7px;

    color: #91a4b5;

    font-size: 14px;

    text-align: right;
}


/* ==========================================================================
   MESSAGE ACTIONS
   ========================================================================== */

.gccb-message__actions {

    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 12px;
}


.gccb-message__actions a,
.gccb-message__actions button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding:
        7px
        12px;

    border:
        1px solid
        rgba(244, 91, 32, .3);

    border-radius: 10px;

    color: #fff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 750;

    background:
        rgba(244, 91, 32, .12);
}


.gccb-message__actions a:hover,
.gccb-message__actions button:hover {

    background:
        var(--gccb-orange);
}


/* ==========================================================================
   TYPING
   ========================================================================== */

.gccb-typing {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    min-width: 58px;
}


.gccb-typing i {

    width: 7px;
    height: 7px;

    display: block;

    border-radius: 50%;

    background: #a9bbc9;

    animation:
        gccbTyping
        1.1s
        infinite
        ease-in-out;
}


.gccb-typing i:nth-child(2) {
    animation-delay: .14s;
}


.gccb-typing i:nth-child(3) {
    animation-delay: .28s;
}


@keyframes gccbTyping {

    0%,
    60%,
    100% {

        transform:
            translateY(0);

        opacity: .5;
    }

    30% {

        transform:
            translateY(-4px);

        opacity: 1;
    }

}


/* ==========================================================================
   COUNTRY BAR

   Nunca debe crecer ni empujar el composer.
   ========================================================================== */

.gccb-country-bar {

    position: relative;

    z-index: 8;

    flex:
        0
        0
        auto;

    width: 100%;

    padding:
        11px
        18px;

    border-top:
        1px solid
        var(--gccb-border);

    background:
        rgba(2, 14, 24, .96);
}


.gccb-country-bar > span {

    display: block;

    margin-bottom: 8px;

    color: #d7e3ec;

    font-size: 14px;
    font-weight: 700;
}


.gccb-country-bar__items {

    width: 100%;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


.gccb-country-bar button {

    min-height: 36px;

    padding:
        6px
        10px;

    border:
        1px solid
        var(--gccb-border);

    border-radius: 10px;

    color: #e6eff5;

    font-size: 14px;

    background:
        rgba(255, 255, 255, .035);
}


.gccb-country-bar button:hover {

    border-color:
        rgba(244, 91, 32, .5);

    background:
        rgba(244, 91, 32, .1);
}


/* ==========================================================================
   COMPOSER

   Siempre visible al fondo del panel.
   ========================================================================== */

.gccb-composer {

    position: relative;

    z-index: 10;

    flex:
        0
        0
        auto;

    width: 100%;

    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        50px;

    align-items: end;

    gap: 8px;

    margin: 0;

    padding:
        11px
        14px
        14px;

    border-top:
        1px solid
        var(--gccb-border);

    background:
        #041321;
}


.gccb-composer__utility,
.gccb-send {

    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;
}


.gccb-composer__utility {

    border:
        1px solid
        var(--gccb-border);

    color: #cbd9e3;

    background:
        rgba(255, 255, 255, .035);
}


.gccb-send {

    border: 0;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--gccb-orange),
            var(--gccb-orange-2)
        );

    box-shadow:
        0 8px 24px
        rgba(244, 91, 32, .25);
}


.gccb-composer textarea {

    display: block;

    width: 100%;

    min-width: 0;

    min-height: 46px;
    max-height: 112px;

    resize: none;

    padding:
        11px
        14px;

    border:
        1px solid
        var(--gccb-border);

    border-radius: 13px;

    outline: none;

    color: #fff;

    font-size: 15px;

    line-height: 1.45;

    background:
        rgba(255, 255, 255, .035);

    overflow-y: auto;
}


.gccb-composer textarea::placeholder {
    color: #8296a7;
}


.gccb-composer textarea:focus {

    border-color:
        rgba(244, 91, 32, .58);

    box-shadow:
        0 0 0 3px
        rgba(244, 91, 32, .08);
}


/* ==========================================================================
   NOTEBOOK / SMALL DESKTOP

   Aquí reducimos altura visual del header y sidebar para pantallas
   como la de tu captura.
   ========================================================================== */

@media
(
    max-height: 800px
)
and
(
    min-width: 761px
) {

    .gccb-app {

        height:
            calc(100dvh - 24px);

        max-height:
            calc(100dvh - 24px);
    }


    .gccb {

        bottom: 12px;
    }


    .gccb-header {

        min-height: 72px;

        padding:
            9px
            16px;
    }


    .gccb-avatar {

        flex-basis: 48px;

        width: 48px;
        height: 48px;
    }


    .gccb-sidebar {

        padding: 14px;
    }


    .gccb-sidebar__intro {

        padding:
            16px
            2px
            12px;
    }


    .gccb-action {

        min-height: 52px;
    }


    .gccb-messages {

        padding:
            16px
            18px;
    }


    .gccb-country-bar {

        padding:
            8px
            16px;
    }


    .gccb-country-bar > span {

        margin-bottom: 5px;
    }


    .gccb-composer {

        padding:
            8px
            12px
            10px;
    }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media
(
    max-width: 1100px
) {

    .gccb {

        right: 12px;
        bottom: 12px;
    }


    .gccb-app {

        width:
            calc(100vw - 24px);

        height:
            calc(100dvh - 24px);

        max-width:
            calc(100vw - 24px);

        max-height:
            calc(100dvh - 24px);

        grid-template-columns:
            250px
            minmax(0, 1fr);

        border-radius: 22px;
    }


    .gccb-sidebar {

        padding: 15px;
    }


    .gccb-sidebar__brand img {

        width: 48px;
        height: 42px;
    }


    .gccb-sidebar__brand span {
        display: none;
    }


    .gccb-sidebar__intro {

        padding:
            16px
            2px
            12px;
    }


    .gccb-sidebar__intro h3 {

        font-size: 18px;
    }


    .gccb-action {

        min-height: 52px;
    }


    .gccb-whatsapp-card {

        grid-template-columns:
            40px
            1fr;

        padding: 12px;
    }


    .gccb-whatsapp-card__icon {

        width: 40px;
        height: 40px;
    }


    .gccb-whatsapp-card strong {

        font-size: 16px;
    }

}


/* ==========================================================================
   TABLET PORTRAIT
   ========================================================================== */

@media
(
    min-width: 761px
)
and
(
    max-width: 900px
) {

    .gccb-app {

        grid-template-columns:
            210px
            minmax(0, 1fr);
    }


    .gccb-sidebar {

        padding: 12px;
    }


    .gccb-sidebar__brand {

        gap: 7px;
    }


    .gccb-sidebar__brand strong {

        font-size: 14px;
    }


    .gccb-action {

        grid-template-columns:
            36px
            1fr
            auto;

        padding:
            7px
            9px;
    }


    .gccb-action__icon {

        width: 36px;
        height: 36px;
    }


    .gccb-action span:not(
        .gccb-action__icon
    ) {

        font-size: 14px;
    }


    .gccb-whatsapp-card {

        display: block;

        text-align: center;
    }


    .gccb-whatsapp-card__icon {

        margin:
            0
            auto
            8px;
    }


    .gccb-business-card {

        grid-template-columns:
            36px
            1fr;

        padding: 10px;
    }


    .gccb-business-card > b {
        display: none;
    }


    .gccb-business-card__icon {

        width: 36px;
        height: 36px;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media
(
    max-width: 760px
) {

    html.gccb-lock,
    body.gccb-lock {

        overflow: hidden !important;

        overscroll-behavior:
            none;
    }


    .gccb {

        position: fixed;

        inset: auto 10px 10px auto;

        width: auto;
        height: auto;

        z-index: 999999;
    }


    /* ----------------------------------------------------------------------
       LAUNCHER
       ---------------------------------------------------------------------- */

    .gccb-launcher {

        min-width: 0;

        width: 64px;
        height: 64px;

        min-height: 64px;

        padding: 6px;

        border-radius: 20px;
    }


    .gccb-launcher__logo {

        flex-basis: 52px;

        width: 52px;
        height: 52px;
    }


    .gccb-launcher__copy,
    .gccb-launcher__arrow {

        display: none;
    }


    .gccb-launcher__pulse {

        left: auto;

        right: 4px;
        top: 4px;
    }


    /* ----------------------------------------------------------------------
       FULLSCREEN APP
       ---------------------------------------------------------------------- */

    .gccb-app {

        position: fixed;

        inset: 0;

        width: 100vw !important;

        height: 100dvh !important;

        max-width: 100vw !important;

        max-height: 100dvh !important;

        min-width: 0;
        min-height: 0;

        display: flex;

        flex-direction: column;

        border: 0;

        border-radius: 0;

        overflow: hidden;
    }


    .gccb-sidebar {
        display: none;
    }


    .gccb-main {

        flex:
            1
            1
            auto;

        width: 100%;

        height: 100%;

        min-width: 0;
        min-height: 0;

        overflow: hidden;
    }


    /* ----------------------------------------------------------------------
       HEADER
       ---------------------------------------------------------------------- */

    .gccb-header {

        flex:
            0
            0
            auto;

        min-height: 70px;

        padding:
            max(
                8px,
                env(safe-area-inset-top)
            )
            10px
            8px;
    }


    .gccb-avatar {

        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }


    .gccb-header__title strong {
        font-size: 16px;
    }


    .gccb-header__assistant >
    div > span {

        font-size: 14px;
    }


    .gccb-header__assistant small {
        display: none;
    }


    .gccb-header__controls button {

        width: 38px;
        height: 38px;
    }


    #gccbExpand,
    #gccbMinimize {

        display: none;
    }


    /* ----------------------------------------------------------------------
       MESSAGES
       ---------------------------------------------------------------------- */

    .gccb-messages {

        flex:
            1
            1
            0;

        min-height: 0;

        padding:
            14px
            10px
            12px;

        overflow-x: hidden;
        overflow-y: auto;

        overscroll-behavior:
            contain;

        -webkit-overflow-scrolling:
            touch;

        touch-action:
            pan-y;
    }


    .gccb-message {

        gap: 7px;

        margin-bottom: 14px;
    }


    .gccb-message__avatar,
    .gccb-message__user-icon {

        flex-basis: 34px;

        width: 34px;
        height: 34px;
    }


    .gccb-message__bubble {

        max-width:
            calc(100% - 42px);

        padding:
            11px
            12px;

        font-size: 14px;
    }


    .gccb-message__bubble p,
    .gccb-message__bubble li {

        font-size: 14px;
    }


    /* ----------------------------------------------------------------------
       COUNTRY BAR
       ---------------------------------------------------------------------- */

    .gccb-country-bar {

        flex:
            0
            0
            auto;

        width: 100%;

        padding:
            8px
            9px;

        overflow: hidden;
    }


    .gccb-country-bar > span {

        margin-bottom: 6px;

        font-size: 14px;
    }


    .gccb-country-bar__items {

        width: 100%;

        display: flex;

        flex-wrap: nowrap;

        gap: 6px;

        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 2px;

        overscroll-behavior-x:
            contain;

        -webkit-overflow-scrolling:
            touch;

        scrollbar-width:
            none;
    }


    .gccb-country-bar__items::-webkit-scrollbar {
        display: none;
    }


    .gccb-country-bar button {

        flex:
            0
            0
            auto;

        white-space: nowrap;
    }


    /* ----------------------------------------------------------------------
       COMPOSER
       ---------------------------------------------------------------------- */

    .gccb-composer {

        position: relative;

        flex:
            0
            0
            auto;

        width: 100%;

        grid-template-columns:
            38px
            minmax(0, 1fr)
            46px;

        padding:
            8px
            9px
            max(
                9px,
                env(safe-area-inset-bottom)
            );

        background:
            #041321;
    }


    .gccb-composer__utility,
    .gccb-send {

        height: 44px;
    }


    .gccb-composer textarea {

        min-height: 44px;

        max-height: 92px;

        padding:
            10px
            11px;

        font-size: 16px;
    }

}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media
(
    max-width: 380px
) {

    .gccb-header__assistant >
    div > span {

        display: none;
    }


    .gccb-header__title strong {

        font-size: 15px;
    }


    .gccb-message__avatar,
    .gccb-message__user-icon {

        display: none;
    }


    .gccb-message__bubble {

        max-width: 92%;
    }


    .gccb-country-bar > span {

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }

}


/* ==========================================================================
   LANDSCAPE MOBILE
   ========================================================================== */

@media
(
    max-width: 900px
)
and
(
    max-height: 500px
) {

    .gccb-header {

        min-height: 58px;

        padding:
            6px
            10px;
    }


    .gccb-avatar {

        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    .gccb-header__assistant >
    div > span,
    .gccb-header__assistant small {

        display: none;
    }


    .gccb-country-bar {

        padding:
            6px
            8px;
    }


    .gccb-country-bar > span {

        display: none;
    }


    .gccb-messages {

        padding:
            10px;
    }


    .gccb-composer {

        padding:
            6px
            8px;
    }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media
(
    prefers-reduced-motion: reduce
) {

    .gccb-app,
    .gccb-launcher,
    .gccb-action,
    .gccb-typing i {

        animation: none !important;

        transition: none !important;
    }

}