#parkchat-root {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #1a1a1a;
}

.parkchat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--parkchat-primary, #2a7de1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: none;
    transition: transform 0.15s ease;
}
.parkchat-bubble:hover {
    transform: scale(1.05);
}
.parkchat-bubble svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.parkchat-panel {
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 100px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.parkchat-header {
    background: var(--parkchat-primary, #2a7de1);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.parkchat-header strong { font-size: 16px; }
.parkchat-langs {
    display: flex;
    gap: 4px;
}
.parkchat-lang-btn {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}
.parkchat-lang-btn.active {
    background: #fff;
    color: var(--parkchat-primary, #2a7de1);
}
.parkchat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 8px;
}

.parkchat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f6f8fb;
}
.parkchat-msg {
    margin-bottom: 10px;
    display: flex;
}
.parkchat-msg-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.parkchat-msg.user {
    justify-content: flex-end;
}
.parkchat-msg.user .parkchat-msg-bubble {
    background: var(--parkchat-primary, #2a7de1);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.parkchat-msg-bubble a {
    color: inherit;
    text-decoration: underline;
}
.parkchat-msg.ai .parkchat-msg-bubble a,
.parkchat-msg.system .parkchat-msg-bubble a {
    color: var(--parkchat-primary, #2a7de1);
}
.parkchat-msg.ai .parkchat-msg-bubble,
.parkchat-msg.system .parkchat-msg-bubble {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e2e6ec;
    border-bottom-left-radius: 4px;
}
.parkchat-msg.system .parkchat-msg-bubble {
    background: #fff8e1;
    border-color: #f0d878;
}

.parkchat-thinking {
    display: inline-flex;
    gap: 4px;
}
.parkchat-thinking span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: parkchat-blink 1.2s infinite ease-in-out;
}
.parkchat-thinking span:nth-child(2) { animation-delay: 0.2s; }
.parkchat-thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes parkchat-blink {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

.parkchat-input {
    border-top: 1px solid #e2e6ec;
    padding: 10px;
    display: flex;
    gap: 8px;
    background: #fff;
}
.parkchat-input textarea {
    flex: 1;
    border: 1px solid #ccd2da;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    outline: none;
    height: 40px;
    max-height: 100px;
}
.parkchat-input textarea:focus {
    border-color: var(--parkchat-primary, #2a7de1);
}
.parkchat-input button {
    background: var(--parkchat-primary, #2a7de1);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 500;
}
.parkchat-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.parkchat-email-form,
.parkchat-newsletter {
    background: #fff;
    border: 1px solid #e2e6ec;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 14px;
    font-size: 13px;
}
.parkchat-email-form .pc-title,
.parkchat-newsletter .pc-title {
    font-weight: 600;
    margin-bottom: 4px;
}
.parkchat-email-form .pc-purpose,
.parkchat-newsletter .pc-purpose {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}
.parkchat-email-form .pc-row,
.parkchat-newsletter .pc-row {
    display: flex;
    gap: 6px;
}
.parkchat-email-form input,
.parkchat-newsletter input {
    flex: 1;
    border: 1px solid #ccd2da;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    outline: none;
}
.parkchat-email-form input:focus,
.parkchat-newsletter input:focus {
    border-color: var(--parkchat-primary, #2a7de1);
}
.parkchat-email-form button,
.parkchat-newsletter button {
    background: var(--parkchat-primary, #2a7de1);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    cursor: pointer;
}
.parkchat-email-form .pc-skip,
.parkchat-newsletter .pc-skip {
    background: transparent;
    color: #666;
    text-decoration: underline;
    margin-top: 4px;
    padding: 0;
    font-size: 12px;
    border: none;
    cursor: pointer;
}
.parkchat-email-form .pc-thanks,
.parkchat-newsletter .pc-thanks {
    color: #0a7d2c;
    font-weight: 500;
}
