#wcd-lc-root {
    position: fixed;
    z-index: 999999;
    bottom: 20px;
    right: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.wcd-lc-position-left {
    left: 20px;
    right: auto;
}
.wcd-lc-bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0f9d58;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
}
.wcd-lc-bubble span {
    font-size: 26px;
    line-height: 1;
}
.wcd-lc-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
}
.wcd-lc-position-left .wcd-lc-panel {
    left: 20px;
    right: auto;
}
.wcd-lc-panel-header {
    background: #0f9d58;
    color: #fff;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wcd-lc-panel-header h4 {
    margin: 0;
    font-size: 14px;
}
.wcd-lc-panel-header button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}
.wcd-lc-panel-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}
.wcd-lc-prechat label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.wcd-lc-prechat input,
.wcd-lc-prechat textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}
.wcd-lc-prechat button {
    margin-top: 8px;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: none;
    background: #0f9d58;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}
.wcd-lc-messages {
    flex: 1;
    min-height: 140px;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 6px;
    border: 1px solid #eee;
    padding: 6px;
    background: #fafafa;
}
.wcd-lc-message {
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    max-width: 90%;
    clear: both;
}
.wcd-lc-message img {
    max-width: 50% !important;
}
.wcd-lc-message-visitor {
    background: #e1f5fe;
    margin-right: auto;
}
.wcd-lc-message-admin {
    background: #c8e6c9;
    margin-left: auto;
}
.wcd-lc-input-row {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.wcd-lc-input-row input {
    flex: 1;
    padding: 0 10px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.wcd-lc-input-row button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 4px;
    border: none;
    background: #0f9d58;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wcd-lc-small {
    font-size: 11px;
    color: #777;
}
.wcd-lc-typing {
    display: none;
    font-size: 11px;
    color: #888;
    margin: 0 0 5px 10px;
    font-style: italic;
}
.wcd-lc-message-system {
    background: transparent;
    color: #999;
    text-align: center;
    font-size: 12px;
    max-width: 100%;
    margin: 10px 0;
    padding: 0;
    box-shadow: none;
}
.wcd-lc-message-visitor.wcd-lc-read::after {
    content: '✓ Read';
    display: block;
    font-size: 9px;
    color: #888;
    text-align: right;
    margin-top: 2px;
}
#wcd-lc-upload {
    background: #f1f1f1;
    color: #555;
    border: 1px solid #ccc;
    margin-right: 0;
    font-size: 16px;
    padding: 0;
}
.wcd-lc-postchat {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}
.wcd-lc-postchat button {
    margin-top: 15px;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    background: #0f9d58;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}