/* Reset inside widget */
.chz-widget-wrap {
    position: fixed;
    right: 20px;
    bottom: calc(20px + var(--chz-padding-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.chz-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.chz-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Optional pulse effect for desktop */
.chz-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    animation: chz-pulse 2s infinite;
    z-index: 0;
}

@keyframes chz-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.chz-btn img,
.chz-btn svg {
    width: 26px;
    height: 26px;
    object-fit: contain;
    z-index: 1;
    position: relative;
}

.chz-btn svg {
    fill: #fff;
}

.chz-btn span {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    margin-top: 2px;
    z-index: 1;
    position: relative;
    line-height: 1;
}

.chz-zalo {
    background-color: var(--chz-color-zalo, #0068ff);
}

.chz-phone {
    background-color: var(--chz-color-phone, #22c55e);
}

/* Mobile Modern UI */
@media (max-width: 768px) {
    .chz-widget-wrap {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-width: none;
        transform: none;
        flex-direction: row;
        gap: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .chz-btn {
        width: 50%;
        height: 48px;
        border-radius: 0;
        flex: 1;
        flex-direction: row;
        gap: 6px;
        box-shadow: none;
    }

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

    .chz-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .chz-btn img,
    .chz-btn svg {
        width: 20px;
        height: 20px;
    }

    .chz-btn span {
        margin-top: 0;
        font-size: 13px;
    }
}