#dtptips-livechat-bubble {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #2563eb;
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 9999;
}

#dtptips-livechat-bubble:hover {
    background: #1d4ed8;
}

#dtptips-livechat-panel {
    position: fixed;
    left: 20px;
    bottom: 70px;
    width: 320px;
    max-height: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    z-index: 9999;
    display: none;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#dtptips-livechat-panel.dtptips-livechat-open {
    display: block;
}

.dtptips-livechat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2563eb;
    color: #fff;
    padding: 8px 12px;
}

.dtptips-livechat-title {
    font-weight: 600;
    font-size: 14px;
}

.dtptips-livechat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.dtptips-livechat-body {
    display: flex;
    flex-direction: column;
    height: 360px;
}

.dtptips-livechat-messages {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    background: #f3f4f6;
}

.dtptips-livechat-message {
    margin-bottom: 6px;
    display: flex;
}

.dtptips-livechat-message .dtptips-livechat-bubble-inner {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    max-width: 90%;
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-wrap;
}

.dtptips-livechat-user {
    justify-content: flex-end;
}

.dtptips-livechat-user .dtptips-livechat-bubble-inner {
    background: #2563eb;
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.dtptips-livechat-assistant {
    justify-content: flex-start;
}

.dtptips-livechat-assistant .dtptips-livechat-bubble-inner {
    background: #e5e7eb;
    color: #111827;
    border-bottom-left-radius: 2px;
}

.dtptips-livechat-footer {
    padding: 8px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dtptips-livechat-input {
    width: 100%;
    resize: none;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    font-family: inherit;
}

.dtptips-livechat-send,
.dtptips-livechat-ask-expert {
    margin-top: 4px;
    width: 100%;
    padding: 6px 8px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.dtptips-livechat-send {
    background: #2563eb;
    color: #ffffff;
}

.dtptips-livechat-send[disabled] {
    opacity: 0.7;
    cursor: default;
}

.dtptips-livechat-ask-expert {
    background: #f97316;
    color: #ffffff;
}
