.wpfcb-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

.wpfcb-details {
    position: relative;
}

.wpfcb-details > summary::-webkit-details-marker {
    display: none;
}

.wpfcb-details > summary {
    list-style: none;
}

.wpfcb-toggle {
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--wpfcb-main-color, #ff4e21);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: wpfcbpulse-main 2.2s infinite;
}

.wpfcb-toggle-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--wpfcb-main-color, #ff4e21);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-right: 8px;
    position: relative;
}

.wpfcb-toggle-photo {
    background: #ffffff;
    overflow: visible;
}

.wpfcb-toggle-photo-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.wpfcb-toggle-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpfcb-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.wpfcb-toggle-text {
    display: inline-block;
    line-height: 1.2;
}

.wpfcb-toggle:hover,
.wpfcb-toggle:focus {
    background: var(--wpfcb-main-color, #ff4e21);
    filter: brightness(0.92);
    outline: none;
}

.wpfcb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.wpfcb-details[open] .wpfcb-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wpfcb-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-radius: 999px;
    padding: 8px 12px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.wpfcb-item:hover,
.wpfcb-item:focus,
.wpfcb-item:active,
.wpfcb-item:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.wpfcb-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.wpfcb-icon svg,
.wpfcb-toggle-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.wpfcb-text {
    font-size: 14px;
    font-weight: 600;
}

.wpfcb-phone {
    background: #22a559;
}

.wpfcb-telegram {
    background: #27a7e7;
}

.wpfcb-whatsapp {
    background: #25d366;
}

.wpfcb-viber {
    background: #7360f2;
}

.wpfcb-max {
    background: #3e4bff;
}

@keyframes wpfcbpulse-main {
    0% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(var(--wpfcb-main-rgb, 255, 78, 33), 0.55);
    }
    70% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 18px rgba(var(--wpfcb-main-rgb, 255, 78, 33), 0);
    }
    100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(var(--wpfcb-main-rgb, 255, 78, 33), 0);
    }
}

@media (max-width: 640px) {
    .wpfcb-widget {
        right: 12px;
        bottom: 12px;
    }
}
