.pl-floating-contact {
    --pl-floating-brand: var(--pl-brand, #fe2e46);
    --pl-floating-ink: var(--pl-ink, #41496d);
    --pl-floating-text: var(--pl-text, #1e293b);
    --pl-floating-line: var(--pl-line, #e8eaf0);
    --pl-floating-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    pointer-events: none;
}

.pl-floating-contact *,
.pl-floating-contact *::before,
.pl-floating-contact *::after {
    box-sizing: border-box;
}

.pl-floating-contact__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transform-origin: bottom right;
    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 180ms ease;
    pointer-events: none;
}

.pl-floating-contact.is-open .pl-floating-contact__actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.pl-floating-contact__item,
.pl-floating-contact__toggle {
    width: 60px;
    min-width: 60px;
    height: 60px;
    border: 1px solid rgba(232, 234, 240, 0.96);
    border-radius: 999px;
    background: #ffffff;
    color: var(--pl-floating-ink);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.pl-floating-contact__item svg,
.pl-floating-contact__toggle svg {
    width: 26px;
    height: 26px;
    display: block;
}

.pl-floating-contact__item img {
    width: 34px;
    height: 34px;
    display: block;
}

.pl-floating-contact__item:hover,
.pl-floating-contact__toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--pl-floating-shadow);
    border-color: rgba(254, 46, 70, 0.28);
    color: var(--pl-floating-brand);
}

.pl-floating-contact__item:focus-visible,
.pl-floating-contact__toggle:focus-visible {
    outline: none;
    border-color: var(--pl-floating-brand);
    box-shadow: 0 0 0 4px rgba(254, 46, 70, 0.16), var(--pl-floating-shadow);
}

.pl-floating-contact__item--telegram {
    color: #229ed9;
}

.pl-floating-contact__item--whatsapp {
    color: #20b358;
}

.pl-floating-contact__item--max {
    background: #ffffff;
}

.pl-floating-contact__toggle {
    width: auto;
    min-width: 52px;
    height: 52px;
    gap: 10px;
    padding: 0 15px 0 14px;
    border: 0;
    background: linear-gradient(135deg, var(--pl-floating-brand), #ff6475);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 16px 30px rgba(254, 46, 70, 0.32);
}

.pl-floating-contact__toggle:hover {
    color: #ffffff;
    border-color: transparent;
}

.pl-floating-contact__toggle-icon,
.pl-floating-contact__toggle-close {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.pl-floating-contact__toggle-close {
    position: relative;
    display: none;
}

.pl-floating-contact__toggle-close::before,
.pl-floating-contact__toggle-close::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.pl-floating-contact__toggle-close::before {
    transform: rotate(45deg);
}

.pl-floating-contact__toggle-close::after {
    transform: rotate(-45deg);
}

.pl-floating-contact.is-open .pl-floating-contact__toggle-icon {
    display: none;
}

.pl-floating-contact.is-open .pl-floating-contact__toggle-close {
    display: inline-flex;
}

.pl-floating-contact__toggle-label {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .pl-floating-contact {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .pl-floating-contact__toggle {
        width: 50px;
        min-width: 50px;
        height: 50px;
        padding: 0;
    }

    .pl-floating-contact__toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pl-floating-contact__actions,
    .pl-floating-contact__item,
    .pl-floating-contact__toggle,
    .pl-floating-contact__toggle-icon,
    .pl-floating-contact__toggle-close {
        transition: none;
    }
}
