.ast-support,
.ast-support * {
    box-sizing: border-box;
}

.ast-support {
    --ast-green: #16864b;
    --ast-green-dark: #16864b;
    --ast-ink: #25222d;
    position: fixed;
    right: 24px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    z-index: 100000;
    font-family: Arial, Helvetica, sans-serif;
    transition: transform .28s cubic-bezier(.2, .75, .3, 1), opacity .2s ease;
}

.ast-support.is-docked:not(.is-open) {
    opacity: .54;
    transform: translateX(47px) scale(.94);
}

.ast-support.is-docked:not(.is-open) .ast-support__tooltip {
    display: none;
}

.ast-support__trigger {
    position: relative;
    display: grid;
    align-items: center;
    justify-content: flex-start;
    width: 124px;
    height: 68px;
    padding: 0 0 0 7px;
    color: #fff;
    background: rgba(255, 255, 255, .94);
    border: 2px solid var(--ast-green);
    border-radius: 36px;
    box-shadow: 0 8px 24px rgba(13, 92, 50, .32);
    cursor: pointer;
    transform: translateX(55px);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ast-support__trigger:hover {
    transform: translateX(55px) translateY(-3px) scale(1.03);
    box-shadow: 0 12px 29px rgba(13, 92, 50, .4);
}

.ast-support__trigger:focus-visible,
.ast-support__close:focus-visible,
.ast-support__whatsapp:focus-visible {
    outline: 3px solid #f4b13f;
    outline-offset: 3px;
}

.ast-support__trigger-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    background: var(--ast-green);
    border-radius: 50%;
}

.ast-support__panel svg,
.ast-support__avatar svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.ast-support__trigger-icon svg {
    display: block;
    width: 58px;
    height: 58px;
}

.ast-support__whatsapp-disc {
    fill: var(--ast-green);
}

.ast-support__whatsapp-mark {
    fill: #fff;
}

.ast-support__tooltip {
    position: absolute;
    right: 130px;
    top: 50%;
    width: max-content;
    padding: 9px 12px;
    color: #fff;
    background: var(--ast-green);
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(13, 92, 50, .24);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(8px, -50%);
    transition: opacity .16s ease, transform .16s ease;
}

.ast-support__tooltip::after {
    position: absolute;
    top: 50%;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--ast-green);
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.ast-support__trigger:hover .ast-support__tooltip,
.ast-support__trigger:focus-visible .ast-support__tooltip {
    opacity: 1;
    transform: translate(0, -50%);
}

.ast-support__panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(360px, calc(100vw - 32px));
    padding: 24px;
    color: var(--ast-ink);
    background: #fff;
    border: 1px solid #e7e3ea;
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(28, 22, 36, .24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.ast-support.is-open .ast-support__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ast-support__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #625d68;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font: 30px/34px Arial, sans-serif;
    cursor: pointer;
}

.ast-support__close:hover {
    background: #f3f0f4;
}

.ast-support__avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    color: #fff;
    background: var(--ast-green);
    border-radius: 16px;
}

.ast-support__eyebrow {
    margin: 0 0 5px;
    color: var(--ast-green-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ast-support__panel h2 {
    margin: 0 38px 10px 0;
    color: #2d2332;
    font-size: 22px;
    line-height: 1.2;
}

.ast-support__panel p:not(.ast-support__eyebrow) {
    margin: 0 0 18px;
    color: #514b55;
    font-size: 15px;
    line-height: 1.55;
}

.ast-support__panel p.ast-support__notice {
    margin: -4px 0 18px;
    padding: 10px 12px;
    color: #503719;
    background: #fff5d8;
    border-left: 4px solid #e6a31c;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.45;
}

.ast-support__desktop-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    padding: 10px;
    background: #f7f5f8;
    border: 1px solid #e7e3ea;
    border-radius: 12px;
}

.ast-support__desktop-contact > img {
    width: 108px;
    height: 108px;
    flex: 0 0 108px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.ast-support__desktop-contact > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.ast-support__desktop-contact strong {
    color: #34263d;
    font-size: 14px;
}

.ast-support__desktop-contact span {
    color: #6e6871;
    font-size: 12px;
    line-height: 1.35;
}

.ast-support__desktop-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ast-green-dark) !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
}

.ast-support__desktop-contact a:hover {
    text-decoration: underline !important;
}

.ast-support__desktop-contact a svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: var(--ast-green);
}

.ast-support__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 16px;
    color: #fff !important;
    background: var(--ast-green);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
}

.ast-support__whatsapp:hover {
    color: #fff !important;
    background: var(--ast-green-dark);
}

.ast-support__whatsapp svg {
    width: 22px;
    height: 22px;
}

.ast-support__panel > small {
    display: block;
    margin-top: 9px;
    color: #77717a;
    font-size: 11px;
    text-align: center;
}

.ast-support__backdrop {
    display: none;
}

.ast-dev-label {
    position: fixed;
    top: 30px;
    left: 0;
    z-index: 100001;
    padding: 5px 9px;
    color: #fff;
    background: #8a1854;
    font: 700 10px/1 Arial, sans-serif;
    letter-spacing: .08em;
}

@media (max-width: 767px) {
    .ast-support {
        right: 16px;
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        left: auto;
    }

    .ast-support.is-docked:not(.is-open) {
        opacity: .58;
        transform: translateX(44px) scale(.92);
    }

    .ast-support__trigger {
        width: 110px;
        height: 62px;
        padding-left: 5px;
        transform: translateX(50px);
    }

    .ast-support__trigger-icon {
        width: 52px;
        height: 52px;
    }

    .ast-support__trigger-icon svg {
        width: 52px;
        height: 52px;
    }

    .ast-support__tooltip {
        display: none;
    }

    .ast-support__desktop-contact {
        display: none;
    }

    .ast-support__panel {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 28px);
        padding: 26px 20px calc(22px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        border: 0;
        border-radius: 22px 22px 0 0;
        transform: translateY(105%);
        transform-origin: bottom center;
    }

    .ast-support.is-open .ast-support__panel {
        transform: translateY(0);
    }

    .ast-support__backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(24, 19, 27, .48);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s;
    }

    .ast-support.is-open .ast-support__backdrop {
        opacity: 1;
        visibility: visible;
    }

    .ast-support.is-open .ast-support__trigger {
        visibility: hidden;
    }

    body.ast-support-open {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ast-support,
    .ast-support__trigger,
    .ast-support__panel,
    .ast-support__backdrop {
        transition: none;
    }
}
