/* Pin Messages CSS - Tambahkan ke dx-livechat.css */

/* Pinned Messages Area */
.dx-livechat-pinned-area {
    background: #fff3cd;
    border-bottom: 1px solid #ffd88a;
}

.dx-livechat-pinned-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.dx-livechat-pinned-header:hover {
    background: #ffe9a8;
}

.dx-pin-icon {
    width: 18px;
    height: 18px;
    color: #856404;
    flex-shrink: 0;
}

.dx-pinned-count {
    font-weight: 600;
    color: #856404;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.dx-pinned-label {
    font-size: 13px;
    color: #856404;
    font-weight: 500;
    flex: 1;
}

.dx-pinned-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

.dx-pinned-toggle:hover {
    background: rgba(133, 100, 4, 0.1);
}

.dx-pinned-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.dx-livechat-pinned-messages {
    max-height: 200px;
    overflow-y: auto;
    background: #fffbf0;
    border-top: 1px solid #ffd88a;
}

.dx-pinned-message-item {
    padding: 10px 16px;
    border-bottom: 1px solid #ffedb3;
    cursor: pointer;
    transition: background 0.2s;
}

.dx-pinned-message-item:hover {
    background: #fff3cd;
}

.dx-pinned-message-item:last-child {
    border-bottom: none;
}

.dx-pinned-message-user {
    font-size: 12px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 4px;
}

.dx-pinned-message-content {
    font-size: 13px;
    color: #111b21;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dx-pinned-sticker {
    height: 32px;
    width: auto;
    vertical-align: middle;
    border-radius: 4px;
}

.dx-pinned-text {
    display: block;
}

.dx-pinned-message-by {
    font-size: 11px;
    color: #9c7506;
    font-style: italic;
}

/* Pin Button in Messages */
.dx-lc-pin-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: #667781;
    font-size: 12px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dx-lc-pin-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.dx-lc-pin-btn:hover {
    color: #856404;
    background: rgba(133, 100, 4, 0.1);
}

.dx-lc-pin-btn.pinned {
    color: #856404;
}

.dx-lc-pin-btn.pinned svg {
    fill: currentColor;
}

/* Pinned Message Bubble Indicator */
.dx-lc-bubble-pinned {
    border-left: 3px solid #ffc107 !important;
    padding-left: 9px !important;
}

/* Scrollbar for Pinned Messages */
.dx-livechat-pinned-messages::-webkit-scrollbar {
    width: 6px;
}

.dx-livechat-pinned-messages::-webkit-scrollbar-track {
    background: transparent;
}

.dx-livechat-pinned-messages::-webkit-scrollbar-thumb {
    background: rgba(133, 100, 4, 0.3);
    border-radius: 3px;
}

.dx-livechat-pinned-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(133, 100, 4, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
    .dx-livechat-pinned-messages {
        max-height: 150px;
    }
    
    .dx-pinned-message-item {
        padding: 8px 12px;
    }
}

/* Unpin Button in Pinned Area */
.dx-lc-unpin-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.dx-lc-unpin-btn:hover {
    background: rgba(133, 100, 4, 0.15);
    color: #5a4303;
}

/* Pin Button in Actions Menu */
.dx-lc-pin-msg-btn {
    display: block;
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s;
}

.dx-lc-pin-msg-btn:hover {
    background: rgba(133, 100, 4, 0.1);
    color: #856404;
}

.dx-lc-pin-msg-btn.pinned {
    color: #856404;
    font-weight: 600;
}