.olisa-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
    --olisa-chat-primary: #3f3f3f;
    --olisa-chat-header: #1b6ef3;
    --olisa-chat-panel: #ffffff;
    --olisa-chat-surface: #f7f8fb;
    --olisa-chat-border: #e2e5ee;
    --olisa-chat-text: #111827;
    --olisa-chat-bubble: #1f1f1f;
}

.olisa-chat__toggle {
    background: var(--olisa-chat-header);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.olisa-chat.is-open .olisa-chat__toggle {
    display: none;
}

.olisa-chat__panel {
    width: 320px;
    background: var(--olisa-chat-panel);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.olisa-chat__panel.is-open {
    display: flex;
}

.olisa-chat__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--olisa-chat-header);
    color: #fff;
}

.olisa-chat__header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.olisa-chat__logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    background: #fff;
}

.olisa-chat__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.olisa-chat__messages {
    padding: 12px 16px;
    height: 240px;
    overflow-y: auto;
    background: var(--olisa-chat-surface);
}

.olisa-chat__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.olisa-chat__prechat {
    display: block;
}

.olisa-chat__label {
    font-size: 13px;
    color: var(--olisa-chat-text);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.olisa-chat__input-field {
    width: 100%;
    border: 1px solid var(--olisa-chat-border);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 14px;
    background: var(--olisa-chat-panel);
    box-sizing: border-box;
}

.olisa-chat__radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--olisa-chat-text);
}

.olisa-chat__radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.olisa-chat__radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.olisa-chat__radio-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--olisa-chat-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.olisa-chat__radio-indicator::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--olisa-chat-primary);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.olisa-chat__radio-option input:checked + .olisa-chat__radio-indicator::after {
    opacity: 1;
    transform: scale(1);
}

.olisa-chat__start {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    background: var(--olisa-chat-primary);
    color: #fff;
    cursor: pointer;
}

.olisa-chat__conversation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.olisa-chat__message {
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 14px;
    background: #fff;
    color: #111827;
    border: 1px solid #e2e5ee;
}

.olisa-chat__message.is-visitor {
    margin-left: auto;
}

.olisa-chat__message.is-agent {
    margin-right: auto;
}

.olisa-chat__message-label {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.olisa-chat__input {
    padding: 12px 16px;
    background: var(--olisa-chat-panel);
}

.olisa-chat__input textarea {
    width: 100%;
    resize: none;
    padding: 8px 10px;
    border: 1px solid var(--olisa-chat-border);
    border-radius: 8px;
    font-size: 14px;
}

.olisa-chat__actions {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.olisa-chat__actions button {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
}

.olisa-chat__send {
    background: var(--olisa-chat-header);
    color: #fff;
}

.olisa-chat__end {
    background: #f1f3f8;
    color: var(--olisa-chat-text);
}

@media (max-width: 480px) {
    .olisa-chat__panel {
        width: calc(100vw - 40px);
    }
}
.olisa-chat__launcher {
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.olisa-chat__launcher.is-visible {
    display: flex;
}

.olisa-chat__launcher-title {
    font-weight: 700;
    font-size: 18px;
    padding: 16px;
    background: #f8f8f8;
    color: #111827;
}

.olisa-chat__launcher-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: #fff;
    text-align: left;
    font-size: 16px;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    border-top: 1px solid #eef0f5;
}

.olisa-chat__launcher-item:hover {
    background: #f6f7fb;
}

.olisa-chat__launcher-icon {
    font-size: 20px;
}
