.alpsoft-chatbot-panel {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 99999;
    width: min(400px, calc(100vw - 48px));
    height: min(600px, calc(100vh - 144px));
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

:root {
    --alpsoft-chatbot-color: #1864ab;
}

.alpsoft-chatbot-panel[hidden] {
    display: none;
}

.alpsoft-chatbot-panel__header {
    display: flex;
    height: 52px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 18px;
    color: #fff;
    background: var(--alpsoft-chatbot-color);
}

.alpsoft-chatbot-panel__title {
    font-size: 16px;
    font-weight: 600;
}

.alpsoft-chatbot-panel__close {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.alpsoft-chatbot-panel__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.alpsoft-chatbot-panel__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

.alpsoft-chatbot-panel__iframe {
    display: block;
    width: 100%;
    height: calc(100% - 52px);
    background: #fff;
    border: 0;
}

.alpsoft-chatbot-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: var(--alpsoft-chatbot-color);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.alpsoft-chatbot-button:hover {
    color: #fff;
    background: var(--alpsoft-chatbot-color);
    filter: brightness(0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.alpsoft-chatbot-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.alpsoft-chatbot-button__icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .alpsoft-chatbot-panel {
        right: 16px;
        bottom: 88px;
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
    }

    .alpsoft-chatbot-button {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }
}
