/* Small manual launcher; never place it over an open header menu. */
.hp-chat-control {
    position: fixed;
    right: 20px;
    bottom: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 900;
    max-width: calc(100vw - 40px);
    text-align: right;
}

.hp-chat-control[hidden],
.hp-chat-control [hidden] {
    display: none !important;
}

.hp-chat-control button.hp-chat-control__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #075c9b;
    box-shadow: 0 4px 14px rgba(0, 38, 70, 0.2);
    font: 600 14px/1.4 Poppins, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.hp-chat-control button.hp-chat-control__button:hover {
    color: #fff;
    background: #064775;
}

.hp-chat-control a:focus-visible,
.hp-chat-control button:focus-visible {
    outline: 3px solid #075c9b;
    outline-offset: 3px;
}

.hp-chat-control .hp-chat-control__status,
.hp-chat-control a.hp-chat-control__fallback,
.hp-chat-control a.hp-chat-control__noscript {
    display: block;
    max-width: 260px;
    margin: 0 0 8px auto;
    padding: 8px 12px;
    color: #16314a;
    background: #fff;
    border-radius: 8px;
    font: 14px/1.45 Arial, sans-serif;
}

.hp-chat-control a.hp-chat-control__fallback,
.hp-chat-control a.hp-chat-control__noscript {
    text-decoration: underline;
}

.hp-whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
    box-shadow: 0 6px 18px rgba(0, 70, 35, 0.25);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hp-whatsapp-float:hover {
    color: #fff;
    background: #1ebd5a;
    transform: translateY(-2px);
}

.hp-whatsapp-float:focus-visible {
    outline: 3px solid #128c4b;
    outline-offset: 3px;
}

.hp-whatsapp-float svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hp-mobile-action-bar {
    display: none;
}

@media (max-width: 600px) {
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom)) !important;
    }

    .hp-chat-control {
        display: none !important;
    }
    .hp-chat-control button.hp-chat-control__button {
        padding: 9px 14px;
        font-size: 13px;
    }

    .hp-whatsapp-float {
        display: none !important;
    }

    .hp-mobile-action-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 950;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: calc(58px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid #d8e4ee;
        background: #fff;
        box-shadow: 0 -5px 18px rgba(8, 34, 58, 0.12);
    }

    .hp-mobile-action-bar a,
    .hp-mobile-action-bar button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        border-top: 0;
        border-bottom: 0;
        border-left: 0;
        border-right: 1px solid #e1e9f0;
        color: #072b47;
        background: #fff;
        border-radius: 0;
        box-shadow: none;
        font: 700 11px/1.1 Poppins, Arial, sans-serif;
        text-decoration: none;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    .hp-mobile-action-bar > :last-child {
        border-right: 0;
    }

    .hp-mobile-action-bar a svg,
    .hp-mobile-action-bar button svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .hp-mobile-action-bar__quote {
        color: #fff !important;
        background: #1677ff !important;
    }

    .hp-mobile-action-bar__chat {
        color: #fff !important;
        background: #075c9b !important;
    }

    .hp-mobile-action-bar a[href*="whatsapp"] {
        color: #fff !important;
        background: #25d366 !important;
    }
}
