.sqcp-widget {
    position: fixed;
    right: var(--sqcp-right, 24px);
    bottom: var(--sqcp-bottom, 24px);
    z-index: 99999;
    font-family: Arial, sans-serif;
}
.sqcp-launcher {
    width: var(--sqcp-button-size, 62px);
    height: var(--sqcp-button-size, 62px);
    border: none;
    border-radius: 999px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
}
.sqcp-launcher img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 999px;
}
.sqcp-window {
    width: 360px;
    max-width: calc(100vw - 24px);
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    bottom: calc(var(--sqcp-button-size, 62px) + 12px);
}
.sqcp-window[hidden] { display: none !important; }
.sqcp-header {
    background: var(--sqcp-color, #111827);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sqcp-header-actions {
    display: flex;
    align-items: center;
}
.sqcp-close,
.sqcp-restart {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}
.sqcp-close {
    font-size: 30px;
    line-height: 1;
}
.sqcp-restart {
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
    opacity: .95;
}
.sqcp-restart:hover,
.sqcp-close:hover { opacity: .85; }
.sqcp-messages {
    flex: 1;
    background: #f8fafc;
    padding: 14px;
    overflow: auto;
}
.sqcp-message {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    max-width: 86%;
    line-height: 1.4;
    white-space: pre-wrap;
}
.sqcp-bot { background: #fff; border: 1px solid #e5e7eb; color: #111827; }
.sqcp-user { background: var(--sqcp-color, #111827); color: #fff; margin-left: auto; }
.sqcp-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.sqcp-choice {
    border: 1px solid var(--sqcp-color, #111827);
    color: var(--sqcp-color, #111827);
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}
.sqcp-input-form, .sqcp-contact-form {
    border-top: 1px solid #e5e7eb;
    padding: 12px;
    background: #fff;
}
.sqcp-input-form[hidden], .sqcp-contact-form[hidden] {
    display: none !important;
}
.sqcp-input-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sqcp-contact-form { display: grid; gap: 8px; }
.sqcp-input-form input,
.sqcp-contact-form input,
.sqcp-contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font: inherit;
    box-sizing: border-box;
}
.sqcp-input-form button,
.sqcp-contact-form button {
    border: none;
    background: var(--sqcp-color, #111827);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
}
.sqcp-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}
@media (max-width: 640px) {
    .sqcp-window { width: min(100vw - 18px, 360px); height: 70vh; }
}
