.clc-widget {
    bottom: 24px;
    font-family: Inter, Arial, sans-serif;
    position: fixed;
    right: 24px;
    z-index: 99999;
}

.clc-toggle,
.clc-send,
.clc-close {
    cursor: pointer;
    font-family: inherit;
}

.clc-toggle {
    align-items: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    color: #ffffff;
    display: flex;
    height: 62px !important;
    justify-content: center;
    line-height: 1 !important;
    min-height: 62px !important;
    min-width: 62px !important;
    overflow: hidden;
    padding: 0 !important;
    width: 62px !important;
}

.clc-toggle::before {
    content: none !important;
}

.clc-chat-icon {
    align-items: center;
    color: #ffffff !important;
    display: flex !important;
    height: 34px !important;
    justify-content: center;
    width: 34px !important;
}

.clc-chat-icon svg {
    color: #ffffff !important;
    display: block !important;
    fill: none !important;
    height: 34px !important;
    stroke: #ffffff !important;
    width: 34px !important;
}

.clc-chat-icon svg path {
    fill: none !important;
    stroke: #ffffff !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.clc-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    bottom: 62px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    position: absolute;
    right: 0;
    width: min(340px, calc(100vw - 32px));
}

.clc-header {
    align-items: flex-start;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #ffffff;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 16px;
}

.clc-header strong {
    display: block;
    font-size: 16px;
    line-height: 1.3;
}

.clc-header p {
    color: #d1d5db;
    font-size: 13px;
    line-height: 1.35;
    margin: 4px 0 0;
}

.clc-close {
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.clc-form {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.clc-messages {
    display: grid;
    gap: 9px;
    max-height: 310px;
    overflow-y: auto;
    padding: 2px 2px 4px;
}

.clc-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 4px;
}

.clc-choice {
    background: #ffffff;
    border: 1px solid #f97316;
    border-radius: 999px;
    color: #111827;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 11px;
}

.clc-choice:hover {
    background: #fff7ed;
}

.clc-message {
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.35;
    max-width: 86%;
    padding: 10px 12px;
}

.clc-message-bot {
    background: #f3f4f6;
    color: #111827;
    justify-self: start;
}

.clc-message-user {
    background: #2563eb;
    color: #ffffff;
    justify-self: end;
}

.clc-input-row {
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 42px;
    padding: 5px;
}

.clc-form input {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    box-sizing: border-box;
    font: inherit;
    font-size: 14px;
    padding: 11px 12px;
    width: 100%;
}

.clc-input-row input {
    border: 0;
    outline: 0;
}

.clc-send {
    align-items: center;
    background: #111827;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.clc-send:disabled {
    cursor: wait;
    opacity: 0.65;
}

.clc-status {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    min-height: 18px;
}

.clc-status[data-type="success"] {
    color: #15803d;
}

.clc-status[data-type="error"] {
    color: #b91c1c;
}

@media (max-width: 768px) {
    .clc-widget {
        bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
    }

    .clc-toggle {
        border-radius: 50% !important;
        height: 62px !important;
        max-height: 62px !important;
        max-width: 62px !important;
        min-height: 62px !important;
        min-width: 62px !important;
        width: 62px !important;
    }
}
