/* Contact Buttons FAB Wheel CSS */
#contact-buttons-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: visible !important;
    position: relative;
}

.cb-fab-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999999;
    overflow: visible !important;
    width: auto;
    height: auto;
}

.cb-fab-checkbox {
    display: none !important;
}


.cb-fab {
    width: auto;
    min-width: 60px;
    height: 60px;
    padding: 0 20px;
    background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%);
    border-radius: 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(201, 42, 42, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    animation: cbPulseRing 2s ease-out infinite;
    text-decoration: none;
    position: absolute;
    right: 0;
    bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Override CSS làm chạy khung */
input[type=checkbox].cb-fab-checkbox + label.cb-fab,
input[type=radio] + label.cb-fab {
    display: flex !important;
}

.cb-fab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: inherit;
    z-index: -1;
    animation: cbRipple 2s ease-out infinite;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}

.cb-fab-checkbox:checked ~ .cb-fab {
    transform: rotate(0deg);
    background: linear-gradient(135deg, #C92A2A 0%, #FF6B6B 100%);
    box-shadow: 0 4px 20px rgba(201, 42, 42, 0.4);
    animation: none;
}

.cb-fab-checkbox:checked ~ .cb-fab::before {
    animation: none;
}

.cb-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(201, 42, 42, 0.5);
}

.cb-fab-checkbox:checked ~ .cb-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(201, 42, 42, 0.5);
}

.cb-fab:active {
    transform: scale(0.95);
}

.cb-fab-checkbox:checked ~ .cb-fab:active {
    transform: scale(0.95);
}

.cb-fab-text {
    color: white;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

@keyframes cbRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

@keyframes cbPulseRing {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(201, 42, 42, 0.4), 0 0 0 0 rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 4px 20px rgba(201, 42, 42, 0.4), 0 0 0 25px rgba(255, 107, 107, 0);
    }
}

.cb-fab-icon,
.cb-fab-close {
    font-size: 26px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: relative;
    width: 22px;
    height: 22px;
    color: #fff;
}

.cb-fab-icon svg {
    width: 100%;
    height: 100%;
    color: white;
    fill: currentColor;
}


.cb-fab-close {
    opacity: 0;
    transform: rotate(-45deg);
    display: none;
    position: relative;
}


.cb-fab-checkbox:checked ~ .cb-fab .cb-fab-close {
    opacity: 1;
    transform: rotate(0deg);
    display: block;
}


.cb-fab-wheel {
    position: absolute;
    bottom: 80px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    transform: translateY(20px) scale(0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 12;
    pointer-events: none;
    overflow: visible !important;
    min-width: 200px;
}

.cb-fab-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    width: 100%;
}

.cb-fab-checkbox:checked ~ .cb-fab-wheel {
    transform: translateY(0) scale(1);
    opacity: 1 !important;
    pointer-events: auto;
    visibility: visible !important;
}

.cb-fab-wheel .cb-fab-action {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    position: relative;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-direction: row;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    min-width: fit-content;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
    padding: 12px 16px;
    border-radius: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(15px);
    border: none;
}

.cb-fab-checkbox:checked ~ .cb-fab-wheel .cb-fab-action {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto;
}

.cb-fab-wheel .cb-fab-action:nth-child(1) {
    transition-delay: 0.05s;
}

.cb-fab-wheel .cb-fab-action:nth-child(2) {
    transition-delay: 0.1s;
}

.cb-fab-wheel .cb-fab-action:nth-child(3) {
    transition-delay: 0.15s;
}

.cb-fab-wheel .cb-fab-action:nth-child(4) {
    transition-delay: 0.2s;
}

.cb-fab-wheel .cb-fab-action:nth-child(5) {
    transition-delay: 0.25s;
}

.cb-fab-checkbox:checked ~ .cb-fab-wheel .cb-fab-action:hover {
    transform: translateX(8px) scale(1.02) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 100%);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cb-fab-wheel .cb-fab-action:hover .cb-fab-button {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.12);
}

.cb-fab-title {
    margin: 0 12px 0 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.98) 0%, rgba(35, 45, 62, 0.98) 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    position: relative;
    z-index: 10;
    transform: translateX(-10px);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.cb-fab-title::before {
    content: '';
    position: absolute;
    left: calc(100% - 1px);
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: rgba(45, 55, 72, 0.98);
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.1));
    z-index: -1;
}

.cb-fab-checkbox:checked ~ .cb-fab-wheel .cb-fab-title {
    opacity: 1;
    transform: translateX(0);
}

.cb-fab-button {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    flex-shrink: 0;
    position: relative;
    visibility: inherit;
    opacity: 1;
}

.cb-fab-wheel .cb-fab-action:hover .cb-fab-button {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cb-fab-wheel .cb-fab-action:active .cb-fab-button {
    transform: scale(0.95);
}

.cb-fab-button svg {
    width: 20px;
    height: 20px;
    color: white;
    fill: currentColor;
}

.cb-fab-button-5 svg {
    width: 20px;
    height: 20px;
}

.cb-fab-button-1 {
    background: linear-gradient(135deg, #0068ff 0%, #0084ff 100%);
}

.cb-fab-button-2 {
    background: linear-gradient(135deg, #00d084 0%, #00e396 100%);
}

.cb-fab-button-3 {
    background: linear-gradient(135deg, #0068ff 0%, #0084ff 100%);
}

.cb-fab-button-4 {
    background: linear-gradient(135deg, #00d084 0%, #00e396 100%);
}

.cb-fab-button-5 {
    background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%);
}


/* Responsive */
@media (max-width: 768px) {
    .cb-fab-wrapper {
        bottom: 15px;
        right: 15px;
    }
    
    .cb-fab {
        min-width: 56px;
        height: 56px;
        padding: 0 16px 0 40px;
        gap: 8px;
    }
    
    .cb-fab-text {
        font-size: 13px;
        padding-right: 0;
        margin-right: 0;
    }
    
    .cb-fab-icon,
    .cb-fab-close {
        font-size: 22px;
    }
    
    
    .cb-fab-wheel {
        bottom: 80px;
        gap: 12px;
        min-width: 180px;
    }
    
    .cb-fab-button {
        width: 45px;
        height: 45px;
    }
    
    .cb-fab-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .cb-fab-wrapper {
        bottom: 10px;
        right: 10px;
    }
    
    .cb-fab {
        min-width: 52px;
        height: 52px;
        padding: 0 14px;
    }
    
    .cb-fab-text {
        font-size: 12px;
    }
    
    .cb-fab-icon,
    .cb-fab-close {
        font-size: 20px;
    }
    
    .cb-fab-wheel {
        bottom: 75px;
        gap: 10px;
        min-width: 160px;
    }
    
    .cb-fab-button {
        width: 40px;
        height: 40px;
    }
    
    .cb-fab-button svg {
        width: 16px;
        height: 16px;
    }
}
