/* Widget flutuante (botão + painel deslizante) — resources/views/components/webchat-vendedor-widget.blade.php */
.wcv-trigger {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 58px;
    height: 58px;
    background: #98D037;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,.4);
    cursor: pointer;
    z-index: 9999;
    transition: all .3s cubic-bezier(.175,.885,.32,1.275);
    border: none;
    outline: none;
}
.wcv-trigger:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0,0,0,.5); }

.wcv-panel {
    position: fixed;
    top: 0;
    right: -560px;
    width: 540px;
    max-width: 100%;
    height: 100%;
    background: #0e0e0e;
    box-shadow: -5px 0 25px rgba(0,0,0,.4);
    z-index: 10000;
    transition: right .4s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,.07);
}
.wcv-panel.active { right: 0; }

.wcv-panel-head {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
    background: #111;
    color: #fff;
    font-family: 'Inter', sans-serif;
}
.wcv-panel-body { flex: 1 1 auto; min-height: 0; }

.wcv-close-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}
.wcv-close-btn:hover { background: rgba(255,255,255,.12); }

.wcv-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .3s ease;
}
.wcv-overlay.active { display: block; opacity: 1; }

@media (max-width: 600px) {
    .wcv-panel { width: 100%; right: -100%; }
}

/* Tela de atendimento do vendedor — resources/views/livewire/webchat-vendedor.blade.php */
.wcv-wrap { display: flex; flex-direction: column; height: 100%; background: #0e0e0e; font-family: 'Inter', sans-serif; color: #fff; }

.wcv-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.wcv-back { background: none; border: none; color: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.wcv-back:hover { color: #98D037; }
.wcv-title { font-weight: 600; font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcv-subtitle { color: rgba(255,255,255,.35); font-size: .75em; margin-top: 2px; }

.wcv-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wcv-msg-row { display: flex; align-items: flex-end; gap: 6px; max-width: 78%; }
.wcv-msg-row.wcv-msg-me { flex-direction: row-reverse; margin-left: auto; }
.wcv-msg-col { display: flex; flex-direction: column; min-width: 0; }
.wcv-msg-row.wcv-msg-me .wcv-msg-col { align-items: flex-end; }
.wcv-msg-sender { color: rgba(255,255,255,.35); font-size: .68em; font-weight: 600; margin-bottom: 2px; }
.wcv-msg-bubble { padding: 9px 13px; border-radius: 12px; font-size: .85em; line-height: 1.5; word-break: break-word; }
.wcv-bubble-other { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); border-bottom-left-radius: 4px; }
.wcv-bubble-me { background: rgba(152,208,55,.16); color: #fff; border-bottom-right-radius: 4px; }
.wcv-msg-time { color: rgba(255,255,255,.2); font-size: .65em; margin-top: 3px; }
.wcv-msg-buttons { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; width: 100%; }
.wcv-msg-button { background: transparent; border: 1px solid rgba(152,208,55,.5); color: #98D037; border-radius: 10px; padding: 6px 10px; font-size: .78em; font-weight: 600; cursor: pointer; }
.wcv-msg-button:hover { background: rgba(152,208,55,.12); }
.wcv-msg-button:disabled { opacity: .4; cursor: not-allowed; }
.wcv-empty-msg { text-align: center; color: rgba(255,255,255,.25); font-size: .8em; margin-top: 12px; }

.wcv-media { margin-bottom: 4px; border-radius: 12px; overflow: hidden; max-width: 220px; }
.wcv-media img, .wcv-media video { max-width: 220px; max-height: 220px; object-fit: cover; display: block; }
.wcv-media audio { max-width: 196px; }
.wcv-media-bubble { padding: 8px 12px; }
.wcv-media-bubble.wcv-bubble-other { border-bottom-left-radius: 4px; }
.wcv-media-bubble.wcv-bubble-me { border-bottom-right-radius: 4px; }
.wcv-media-file { display: flex; align-items: center; gap: 8px; color: inherit; font-size: .82em; text-decoration: none; }
.wcv-media-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }

.wcv-composer-wrap { border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0; padding: 10px 12px; }
.wcv-attachment-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; margin-bottom: 8px; background: rgba(255,255,255,.06); border-radius: 8px; font-size: .75em; color: rgba(255,255,255,.7); }
.wcv-attachment-chip button { background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.wcv-attachment-chip button:hover { color: #ff5555; }
.wcv-error { color: #ff6b6b; font-size: .72em; margin: 0 0 6px; }
.wcv-composer { display: flex; align-items: center; gap: 8px; }
.wcv-btn-icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: rgba(255,255,255,.6); cursor: pointer; font-size: .85em; }
.wcv-btn-icon:hover { background: rgba(255,255,255,.1); color: #fff; }
.wcv-input { flex: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 8px 11px; color: #fff; font-size: .85em; outline: none; }
.wcv-input:focus { border-color: #98D037; }
.wcv-input::placeholder { color: rgba(255,255,255,.2); }
.wcv-btn-send { flex-shrink: 0; width: 36px; height: 36px; background: #98D037; color: #000; border: none; border-radius: 8px; font-size: .9em; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wcv-spinner { width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.3); border-top-color: #000; border-radius: 50%; display: inline-block; animation: wcv-spin .6s linear infinite; }
@keyframes wcv-spin { to { transform: rotate(360deg); } }

.wcv-new { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.wcv-label { color: rgba(255,255,255,.4); font-size: .72em; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; display: block; margin-bottom: 6px; }

.wcv-list { flex: 1; overflow-y: auto; }
.wcv-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.04); cursor: pointer; transition: background .12s; }
.wcv-item:hover { background: rgba(255,255,255,.03); }
.wcv-item-title { font-weight: 600; font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcv-item-subtitle { color: rgba(255,255,255,.3); font-size: .75em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcv-badge-unread { background: #25d366; color: #fff; font-size: .68em; font-weight: 700; border-radius: 100px; padding: 2px 7px; flex-shrink: 0; }

.wcv-empty { padding: 40px 16px; text-align: center; color: rgba(255,255,255,.2); font-size: .82em; }
