.wpsc-widget-root {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.wpsc-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.wpsc-bubble:hover { background: #2c5282; }

.wpsc-panel {
    display: none;
    flex-direction: column;
    width: 320px;
    height: 440px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.22);
    overflow: hidden;
    position: absolute;
    bottom: 0;
    right: 0;
}
.wpsc-panel.wpsc-open { display: flex; }

.wpsc-header {
    background: #2b6cb0;
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wpsc-header-title { font-weight: 600; }
.wpsc-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    opacity: .9;
}
.wpsc-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a0aec0; }
.wpsc-status-dot.wpsc-online { background: #48bb78; }
.wpsc-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }

.wpsc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wpsc-contact-form {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wpsc-contact-intro { font-size: 13px; color: #4a5568; margin-bottom: 2px; }
.wpsc-form-error { color: #c53030; font-size: 12px; min-height: 14px; }
.wpsc-contact-form .wpsc-input { border: 1px solid #cbd5e0; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.wpsc-contact-form .wpsc-send { align-self: flex-start; padding: 8px 16px; }
.wpsc-turnstile-box { margin: 2px 0; }

.wpsc-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wpsc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f7f9fb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpsc-msg {
    max-width: 80%;
    padding: 8px 11px;
    border-radius: 10px;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.wpsc-msg-visitor { align-self: flex-end; background: #2b6cb0; color: #fff; border-bottom-right-radius: 2px; }
.wpsc-msg-admin { align-self: flex-start; background: #e6ebf1; color: #1a202c; border-bottom-left-radius: 2px; }
.wpsc-msg a { color: inherit; text-decoration: underline; word-break: break-all; }

.wpsc-empty {
    color: #718096;
    font-size: 13px;
    text-align: center;
    margin-top: 20px;
}

.wpsc-input-row {
    display: flex;
    border-top: 1px solid #e2e8f0;
    padding: 8px;
    gap: 6px;
}
.wpsc-input {
    flex: 1;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 8px 10px;
    resize: none;
    font-family: inherit;
    font-size: 13px;
    max-height: 80px;
}
.wpsc-send {
    background: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 600;
}
.wpsc-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 480px) {
    .wpsc-widget-root { bottom: 12px; right: 12px; }
    .wpsc-panel { width: calc(100vw - 24px); height: 70vh; }
}
