.contact-launcher {
    position: fixed;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 990;
    max-width: calc(100vw - 32px);
}

.contact-launcher[hidden],
.contact-launcher [hidden] {
    display: none;
}

#main .contact-launcher__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 28px;
    background: #122f39;
    color: #fff;
    font-family: var(--theme-font-family, "Golos Text", Arial, sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgb(18 47 57 / 20%);
    animation: contact-launcher-float 4s ease-in-out infinite;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.contact-launcher__icon {
    flex: none;
    color: #b9ee75;
}

#main .contact-launcher__button:hover,
#main .contact-launcher__button:focus-visible {
    animation-play-state: paused;
    border-color: #b9ee75;
    box-shadow: 0 8px 28px rgb(18 47 57 / 30%);
}

#main .contact-launcher__button:focus-visible {
    outline: 2px solid #b9ee75;
    outline-offset: 4px;
}

#main .contact-launcher__button:disabled {
    animation: none;
    cursor: wait;
}

.contact-launcher__status:not(:empty),
.contact-launcher__fallback {
    display: block;
    max-width: 270px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    color: #122f39;
    font-size: 13px;
    line-height: 19px;
}

.contact-launcher__fallback {
    text-decoration: underline;
}

@keyframes contact-launcher-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 767px) {
    .contact-launcher {
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    #main .contact-launcher__button {
        min-height: 48px;
        padding: 10px 16px;
        gap: 8px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #main .contact-launcher__button {
        animation: none;
        transition: none;
    }
}
