.cb-launcher {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fa8507;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 20px 14px 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
}
.cb-launcher:hover { background: #e07600; }
.cb-launcher svg { width: 22px; height: 22px; flex: none; }
.cb-launcher.cb-hidden { display: none; }

.cb-panel {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 10001;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Open Sans', Arial, sans-serif;
}
.cb-panel.cb-open { display: flex; }

.cb-header {
    background: #fa8507;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
}
.cb-header-title { font-weight: 700; font-size: 15px; }
.cb-header-sub { font-size: 11px; opacity: 0.9; margin-top: 2px; }
.cb-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.cb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #faf8f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cb-msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.cb-msg.cb-bot { align-self: flex-start; background: #fff; border: 1px solid #eee; color: #222; border-bottom-left-radius: 3px; }
.cb-msg.cb-user { align-self: flex-end; background: #fa8507; color: #fff; border-bottom-right-radius: 3px; }
.cb-msg.cb-bot .cb-md-h {
    font-family: var(--title-font, inherit);
    font-weight: 700;
    font-size: 14.5px;
    color: #d9720a;
    margin: 10px 0 5px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f4dfc4;
}
.cb-msg.cb-bot .cb-md-h:first-child { margin-top: 0; }
.cb-msg.cb-bot .cb-md-gap { height: 6px; }
.cb-msg.cb-bot ul, .cb-msg.cb-bot ol { margin: 3px 0 8px; padding-left: 19px; }
.cb-msg.cb-bot li { margin-bottom: 4px; line-height: 1.45; }
.cb-msg.cb-bot li::marker { color: #fa8507; }
.cb-msg.cb-bot div { line-height: 1.5; }
.cb-msg.cb-bot strong { color: #1a1a1a; font-weight: 700; }
.cb-msg.cb-bot em { color: #8a6d4f; font-style: italic; }
.cb-msg.cb-error { align-self: center; background: #fdecea; color: #b02a2a; border: 1px solid #f5c6c2; font-size: 12.5px; }

.cb-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 13px; }
.cb-typing span { width: 6px; height: 6px; border-radius: 50%; background: #bbb; animation: cb-bounce 1.2s infinite; }
.cb-typing span:nth-child(2) { animation-delay: 0.15s; }
.cb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cb-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.cb-input-row {
    flex: none;
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}
.cb-input-row input[type="text"] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: inherit;
}
.cb-input-row input[type="text"]:focus { outline: none; border-color: #fa8507; }
.cb-send {
    background: #fa8507;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}
.cb-send:disabled { opacity: 0.5; cursor: not-allowed; }

.cb-footnote {
    flex: none;
    font-size: 10px;
    color: #999;
    text-align: center;
    padding: 5px 10px 8px;
    background: #fff;
}

.cb-contact-form {
    align-self: stretch;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cb-contact-form .cb-cf-urgent { font-size: 13px; font-weight: 700; color: #b02a2a; }
.cb-contact-form .cb-cf-urgent a { color: #b02a2a; text-decoration: underline; }
.cb-contact-form .cb-cf-urgent-note { font-size: 11.5px; font-style: italic; color: #8a6d4f; margin-bottom: 8px; }
.cb-contact-form .cb-cf-title { font-size: 13px; font-weight: 700; color: #222; margin-bottom: 2px; }
.cb-contact-form input {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
}
.cb-contact-form input:focus { outline: none; border-color: #fa8507; }
.cb-cf-website { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.cb-cf-submit {
    background: #1a7a3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
}
.cb-cf-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.cb-cf-note { font-size: 10.5px; color: #999; }

@media (max-width: 480px) {
    .cb-panel { width: calc(100vw - 24px); right: 12px; bottom: 12px; height: calc(100vh - 24px); max-height: calc(100vh - 24px); }
    .cb-launcher { right: 12px; bottom: 80px; }
}
