.live-support {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 140;
    display: grid;
    justify-items: end;
    gap: 12px;
    font-family: Poppins, sans-serif;
}

.live-support__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 7px 16px 7px 7px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #212e69;
    box-shadow: 0 15px 40px rgba(22, 31, 76, .3);
    font: inherit;
    font-size:0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.live-support__trigger-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #212e69;
    background: #fff;
}

.live-support__trigger-icon svg { width: 19px; height: 19px; }
.live-support__trigger > i { width: 7px; height: 7px; border-radius: 50%; background: #62d69a; box-shadow: 0 0 0 4px rgba(98, 214, 154, .18); }

.live-support__panel {
    display: grid;
    grid-template-rows: auto minmax(72px, 1fr) minmax(60px, 1fr) auto;
    width: min(390px, calc(100vw - 30px));
    max-height: min(620px, calc(100dvh - 105px));
    overflow: hidden;
    border: 1px solid rgba(33, 46, 105, .12);
    border-radius: 22px;
    color: #20243a;
    background: #fff;
    box-shadow: 0 25px 70px rgba(22, 31, 76, .24);
}

.live-support__panel[hidden] { display: none; }

.live-support__header {
    display: grid;
    grid-template-columns: 44px 1fr 34px;
    align-items: center;
    gap: 10px;
    padding: 16px;
    color: #fff;
    background: #212e69;
}

.live-support__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #d6a285; font-size:1.1875rem; font-weight: 700; }
.live-support__header strong { display: block; font-size:0.9375rem; }
.live-support__header small { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: rgba(255,255,255,.78); font-size:0.9375rem; }
.live-support__header small i { width: 6px; height: 6px; border-radius: 50%; background: #62d69a; }
.live-support__close { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); font-size:1.5rem; line-height: 1; cursor: pointer; }

.live-support__conversation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 16px 10px;
    background: #faf9f6;
}

.live-support__message { max-width: 88%; margin: 0; padding: 11px 13px; border-radius: 15px; font-size:0.9375rem; line-height: 1.6; }
.live-support__message--bot { align-self: flex-start; border-bottom-left-radius: 4px; background: #fff; box-shadow: 0 5px 20px rgba(33,46,105,.07); }
.live-support__message--user { align-self: flex-end; border-bottom-right-radius: 4px; color: #fff; background: #85553a; }

.live-support__choices { display: grid; min-height: 0; gap: 7px; overflow-y: auto; padding: 12px 16px; }
.live-support__choice, .live-support__restart, .live-support__whatsapp { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; font: inherit; font-size:0.9375rem; font-weight: 600; text-align: left; cursor: pointer; }
.live-support__choice { border: 1px solid rgba(33,46,105,.14); color: #212e69; background: #fff; }
.live-support__choice:hover, .live-support__choice:focus-visible { border-color: #85553a; background: #fbf7f3; }
.live-support__whatsapp { display: grid; place-items: center; color: #fff; background: #117a46; text-align: center; text-decoration: none; }
.live-support__restart { border: 0; color: #555b72; background: #f0f1f5; text-align: center; }
.live-support__privacy { margin: 0; padding: 0 16px 14px; color: #626678; font-size:0.9375rem; line-height: 1.5; text-align: center; }

.live-support :is(button, a):focus-visible { outline: 3px solid #d6a285; outline-offset: 2px; }

@media (max-width: 520px) {
    .live-support {
        right: max(15px, env(safe-area-inset-right));
        bottom: max(15px, env(safe-area-inset-bottom));
    }
    .live-support__panel { max-height: calc(100dvh - 92px - env(safe-area-inset-bottom)); border-radius: 18px; }
    .live-support__trigger { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .live-support *, .live-support *::before, .live-support *::after { scroll-behavior: auto !important; transition: none !important; }
}

.live-support__message{font-size:1rem;line-height:1.65}.live-support__choice,.live-support__restart,.live-support__whatsapp,.live-support__trigger,.live-support__header strong{font-size:1rem;line-height:1.5;min-height:44px}.live-support__header strong{min-height:0}.live-support__header small{font-size:.9375rem;color:#e4ebf8}.live-support__privacy{font-size:.9375rem;line-height:1.6;color:#435367}.live-support__panel{width:min(420px,calc(100vw - 30px));max-height:min(720px,calc(100dvh - 105px))}.live-support__choice:hover,.live-support__choice:focus-visible{color:#17375f;border-color:#0075a8;background:#eaf4fb}.live-support__restart:hover{background:#dce7f1;color:#17375f}.live-support__close{min-width:44px;min-height:44px}.live-support__header{grid-template-columns:44px 1fr 44px}.live-support__trigger:hover{color:#fff;background:#102948}
