/**
 * Floating Contact VDW - Clean Sidebar
 * Nút tròn cam với ảnh transparent từ admin
 */

/* === Sidebar Container === */
.fcv-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    background: #ffffff;
    border-radius: 22px 0 0 22px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        -5px 0 28px rgba(0, 0, 0, 0.09),
        -2px 0 6px rgba(0, 0, 0, 0.05);
}

/* === Nút tròn cam === */
.fcv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f97316;
    border: none;
    outline: none;
    text-decoration: none;
    margin: 4px 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.fcv-btn:hover {
    background: #ea580c;
    transform: scale(1.12) translateX(-4px);
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.45);
}

.fcv-btn:active {
    transform: scale(0.94);
}

/* Ảnh icon bên trong */
.fcv-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

.fcv-btn i {
    color: #ffffff;
    font-size: 20px;
}

/* === PHONE: thêm vòng pulse === */
.fcv-btn-phone {
    /* inherits .fcv-btn styles */
}

.fcv-btn-phone .fcv-pulse {
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(249, 115, 22, 0.55);
    border-radius: 50%;
    animation: fcv-ring 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes fcv-ring {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* === TOOLTIP === */
.fcv-btn::before {
    content: attr(data-tooltip);
    position: fixed;
    right: 70px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all 0.2s ease;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.fcv-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Ẩn phần cũ */
.fcv-fab,
.fcv-overlay-bg,
.fcv-overlay-menu {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .fcv-sidebar {
        border-radius: 16px 0 0 16px;
        padding: 8px 0;
    }

    .fcv-btn {
        width: 44px;
        height: 44px;
        margin: 3px 8px;
    }

    .fcv-btn img {
        width: 22px;
        height: 22px;
    }

    .fcv-btn .fcv-pulse {
        display: none;
    }

    .fcv-btn::before {
        display: none;
    }
}
