.widget-chat-button {
    width: var(--button-size, 60px);
    height: var(--button-size, 60px);
    border-radius: 50%;
    background: var(--theme-color, #4285f4);
    background: var(--theme-gradient, var(--theme-color, #4285f4));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    position: fixed;
    bottom: var(--button-position-bottom, 20px);
    right: var(--button-position-right, 20px);
    padding: 0;
    color: white;
    gap: 8px;
    min-width: var(--button-size, 60px);
    overflow: hidden;
    aspect-ratio: 1/1;
}

.widget-chat-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.widget-chat-button svg {
    width: calc(var(--button-size, 60px) * 0.4);
    height: calc(var(--button-size, 60px) * 0.4);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.widget-chat-button.with-text {
    width: auto;
    aspect-ratio: auto;
    border-radius: 100px;
    padding: calc(var(--button-size, 60px) * 0.13) calc(var(--button-size, 60px) * 0.4);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: calc(var(--button-size, 60px) * 0.27);
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.widget-chat-button.with-text img {
    width: calc(var(--button-size, 60px) * 0.53);
    height: calc(var(--button-size, 60px) * 0.53);
    border-radius: 50%;
}

.widget-chat-button img {
    width: calc(var(--button-size, 60px) * 0.4);
    height: calc(var(--button-size, 60px) * 0.4);
    object-fit: cover;
}

.widget-chat-button img.full-button {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.kanduai-mask-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.5);
    z-index: 1000000000;
    display: none;
    pointer-events: auto;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.kanduai-mask-overlay.show {
    opacity: 1;
}

.kanduai-iframe-centered {
    position: fixed;
    left: 50%;
    top: 60px;
    width: 1370px;
    height: calc(100vh - 120px);
    transform: translateX(-50%);
    border: none;
    border-radius: 10px;
    z-index: 1000000001 ;
}

@media (max-width: 1400px) {
    .kanduai-iframe-centered {
        width: calc(100vw - 40px);
        max-width: 1370px;
    }
}

@media (max-width: 768px) {
    .kanduai-iframe-centered {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }
}
