:root {
    --mh-dock-gold: #b99a63;
    --mh-dock-dark: #1d1d1d;
    --mh-dock-green: #25d366;
}

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

.mh-support-dock {
    position: relative;
    z-index: 10000;
    font-family: "Duru Sans", sans-serif;
}

.mh-support-dock__desktop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.mh-support-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 216px;
    min-height: 58px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(29, 29, 29, 0.96);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
    color: #fff !important;
    text-decoration: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: mhSupportSlideIn 520ms cubic-bezier(.22, .8, .32, 1) both;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.mh-support-action:nth-child(2) {
    animation-delay: 100ms;
}

.mh-support-action:hover {
    border-color: rgba(185, 154, 99, 0.7);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    color: #fff !important;
    transform: translateX(-5px);
}

.mh-support-action:focus-visible,
.mh-support-mobile-item:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px var(--mh-dock-gold);
}

.mh-support-action__copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-end;
    padding: 9px 14px 9px 18px;
    line-height: 1.2;
}

.mh-support-action__copy small {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mh-support-action__copy strong {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mh-support-action__icon {
    position: relative;
    display: grid;
    width: 58px;
    min-width: 58px;
    align-self: stretch;
    place-items: center;
    background: var(--mh-dock-gold);
    color: #fff;
}

.mh-support-action__icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.mh-support-action--whatsapp .mh-support-action__icon {
    background: var(--mh-dock-green);
}

.mh-support-action--whatsapp .mh-support-action__icon::before {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    content: "";
    animation: mhSupportPulse 2.2s ease-out infinite;
}

.mh-support-dock__mobile {
    display: none;
}

@keyframes mhSupportSlideIn {
    from {
        opacity: 0;
        transform: translateX(42px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mhSupportPulse {
    0%, 45% {
        opacity: 0.7;
        transform: scale(0.8);
    }
    80%, 100% {
        opacity: 0;
        transform: scale(1.65);
    }
}

@media (max-width: 921px) {
    body.has-whatsapp-float {
        padding-bottom: calc(67px + env(safe-area-inset-bottom));
    }

    .mh-support-dock__desktop {
        display: none;
    }

    .mh-support-dock__mobile {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10000;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: calc(67px + env(safe-area-inset-bottom));
        padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
        border-top: 1px solid rgba(185, 154, 99, 0.34);
        background: rgba(24, 24, 24, 0.98);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        animation: mhSupportRise 420ms cubic-bezier(.22, .8, .32, 1) both;
    }

    .mh-support-mobile-item {
        display: flex;
        min-width: 0;
        min-height: 67px;
        margin: 0;
        padding: 9px 6px 7px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: rgba(255, 255, 255, 0.9) !important;
        font: inherit;
        text-align: center;
        text-decoration: none !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 180ms ease, color 180ms ease;
    }

    .mh-support-mobile-item:last-child {
        border-right: 0;
    }

    .mh-support-mobile-item:hover,
    .mh-support-mobile-item:active {
        background: rgba(255, 255, 255, 0.06);
        color: var(--mh-dock-gold) !important;
    }

    .mh-support-mobile-item--whatsapp {
        color: #fff !important;
    }

    .mh-support-mobile-item--whatsapp svg {
        color: var(--mh-dock-green);
    }

    .mh-support-mobile-item svg {
        width: 21px;
        height: 21px;
        fill: currentColor;
    }

    .mh-support-mobile-item span {
        overflow: hidden;
        max-width: 100%;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.08em;
        line-height: 1;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    @keyframes mhSupportRise {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 360px) {
    .mh-support-mobile-item span {
        font-size: 9px;
        letter-spacing: 0.04em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-support-action,
    .mh-support-action--whatsapp .mh-support-action__icon::before,
    .mh-support-dock__mobile {
        animation: none;
    }

    .mh-support-action,
    .mh-support-mobile-item {
        transition: none;
    }
}

@media print {
    body.has-whatsapp-float {
        padding-bottom: 0;
    }

    .mh-support-dock {
        display: none;
    }
}
