/* ===== Chat Widget — WhatsApp-style floating ===== */
:root {
    --cw-bg-header: #1e1e2d;
    --cw-bubble-out: #3b82f6;
    --cw-bubble-in: #f1f5f9;
    --cw-text-out: #fff;
    --cw-text-in: #1e293b;
    --cw-bg-panel: #f8fafc;
    --cw-bg-chat: #efeae2;
    --cw-border: #e2e8f0;
    --cw-fab-size: 60px;
}

/* ===== FAB button ===== */
.ocBtConv {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    width: var(--cw-fab-size);
    height: var(--cw-fab-size);
    border-radius: 50%;
    background: var(--cw-bubble-out);
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-animation: none;
    animation: none;
}
.ocBtConv:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.ocBtConv svg {
    width: 28px;
    height: 28px;
}
.ocBtConv svg path {
    fill: #fff;
}
.ocBtConv i {
    color: #fff;
    font-size: 28px;
    margin: 0;
}

/* FAB unread badge */
.ocBtConv .cw-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 22px;
}
.ocBtConv.cw-has-unread .cw-fab-badge {
    display: flex;
}
@keyframes cw-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
    50% { box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 0 10px rgba(59,130,246,0.25); }
}
.ocBtConv.cw-has-unread {
    animation: cw-pulse 2s infinite;
}

/* ===== Main panel ===== */
.oclstConv {
    position: fixed;
    bottom: 96px;
    left: 24px;
    right: auto;
    width: 380px;
    height: 520px;
    border-radius: 16px;
    background: var(--cw-bg-panel);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    padding: 0;
}
.oclstConv.cw-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ===== Header (dark) ===== */
.chatZone .ongletChat .ocHead {
    height: 60px;
    background: var(--cw-bg-header);
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}
.chatZone .ongletChat .ocHead img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    position: static;
    left: auto;
    top: auto;
    border: 2px solid rgba(255,255,255,0.2);
}
.chatZone .ongletChat .ocHead .cw-header-info {
    flex: 1;
    min-width: 0;
}
.chatZone .ongletChat .ocHead .cw-header-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}
.chatZone .ongletChat .ocHead .cw-header-name strong {
    font-weight: 600;
    color: #fff;
}
.chatZone .ongletChat .ocHead .cw-header-status {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}
.cw-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    display: inline-block;
}
.cw-status-dot.cw-online {
    background: #22c55e;
    box-shadow: 0 0 4px rgba(34,197,94,0.5);
}
.chatZone .ongletChat .ocHead i.ocClose {
    position: static;
    right: auto;
    top: auto;
    cursor: pointer;
    color: #94a3b8;
    font-size: 18px;
    padding: 6px;
    flex-shrink: 0;
    transition: color 0.15s;
    border-radius: 50%;
}
.chatZone .ongletChat .ocHead i.ocClose:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.chatZone .ongletChat .ocHead i.ocMinimize {
    display: none;
}

/* Salon header override */
.ocHead[data-dest=salon] {
    font-size: 14px;
    padding: 0 12px;
}
.ocHead[data-dest=salon] img {
    display: block;
}
.ocHead[data-dest=salon] span {
    font-size: 20px;
}

/* ===== Conversation avatar bar ===== */
.oclstConv .oclstConvZone {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    float: none;
    height: auto;
    margin-bottom: 0;
    border-radius: 0;
}
.oclstConv .oclstConvList {
    width: 100%;
    float: none;
    height: 56px;
    background: var(--cw-bg-header);
    margin-bottom: 0;
    border-radius: 16px 16px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.oclstConv .oclstConvList::-webkit-scrollbar {
    display: none;
}
.oclstConv .oclstConvList .oclstConvListConv {
    cursor: pointer;
    padding: 4px;
    margin: 0;
    position: relative;
    flex-shrink: 0;
    border-radius: 50%;
    transition: background 0.15s, transform 0.15s;
}
.oclstConv .oclstConvList .oclstConvListConv:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.08);
}
.oclstConv .oclstConvList .oclstConvListConv.cw-active {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 2px var(--cw-bubble-out);
}
.oclstConv .oclstConvList .oclstConvListConv img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
}
.oclstConv .oclstConvList .oclstConvListConv.cw-active img {
    border-color: var(--cw-bubble-out);
}
.oclstConvListConv.disabled {
    filter: grayscale(1);
    opacity: 0.33;
}

/* Online dot on conversation avatar */
.oclstConvListConv .cw-conv-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--cw-bg-header);
    display: none;
}
.oclstConvListConv.cw-conv-online .cw-conv-online-dot {
    display: block;
}

/* Unread badge on conversation avatars */
.oclstConvAlert {
    background-color: #ef4444;
    color: white;
    position: absolute;
    right: -2px;
    top: -2px;
    width: 18px;
    height: 18px;
    font-size: 10px;
    border-radius: 50%;
    font-weight: 700;
    text-align: center;
    line-height: 18px;
    border: 2px solid var(--cw-bg-header);
}

/* ===== Chat tab (fills convZone) ===== */
.chatZone {
    height: auto;
    position: static;
    bottom: auto;
    right: auto;
    z-index: 9998;
}
.chatZone .ongletChat {
    width: 100%;
    height: 100%;
    float: none;
    margin-left: 0;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ===== Messages area (WhatsApp wallpaper) ===== */
.chatZone .ongletChat .ocBody {
    flex: 1;
    background-color: var(--cw-bg-chat);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' opacity='0.06'%3E%3Cpath d='M20 10c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S20 15.5 20 10z' fill='%23000'/%3E%3Cpath d='M70 40c0-3.3 2.7-6 6-6s6 2.7 6 6-2.7 6-6 6-6-2.7-6-6z' fill='%23000'/%3E%3Cpath d='M130 20l8 14H122z' fill='%23000'/%3E%3Cpath d='M160 70c0-4.4 3.6-8 8-8s8 3.6 8 8-3.6 8-8 8-8-3.6-8-8z' fill='%23000'/%3E%3Cpath d='M30 80l6 10H24z' fill='%23000'/%3E%3Cpath d='M90 90c0-5 4-9 9-9s9 4 9 9-4 9-9 9-9-4-9-9z' fill='%23000'/%3E%3Cpath d='M10 140c0-3 2.4-5.5 5.5-5.5s5.5 2.4 5.5 5.5-2.4 5.5-5.5 5.5S10 143 10 140z' fill='%23000'/%3E%3Cpath d='M70 130l7 12H63z' fill='%23000'/%3E%3Cpath d='M140 120c0-6 4.9-11 11-11s11 4.9 11 11-4.9 11-11 11-11-4.9-11-11z' fill='%23000'/%3E%3Cpath d='M180 160c0-3.5 2.8-6.5 6.5-6.5s6.5 2.8 6.5 6.5-2.8 6.5-6.5 6.5-6.5-2.8-6.5-6.5z' fill='%23000'/%3E%3Cpath d='M50 170l5 9H45z' fill='%23000'/%3E%3Cpath d='M120 175c0-4 3.3-7 7-7s7 3.3 7 7-3.3 7-7 7-7-3.3-7-7z' fill='%23000'/%3E%3C/svg%3E");
    border: 0;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: static;
}
.chatZone .ocBody::-webkit-scrollbar { width: 5px; }
.chatZone .ocBody::-webkit-scrollbar-track { background: transparent; }
.chatZone .ocBody::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

/* Day separator */
.cw-day-separator {
    text-align: center;
    margin: 12px 0 8px;
    font-size: 11px;
    color: #667781;
    position: relative;
}
.cw-day-separator span {
    background: #fff;
    padding: 4px 14px;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    font-weight: 500;
}
.cw-day-separator::before {
    content: none;
}

/* ===== Message bubbles ===== */
.chatZone .ongletChat .ocBody .ocMsgRec,
.chatZone .ongletChat .ocBody .ocMsgEnv {
    max-width: 78%;
    padding: 6px 10px 6px 6px;
    font-size: 13.5px;
    line-height: 1.45;
    word-wrap: break-word;
    animation: cw-msg-appear 0.2s ease;
    float: none;
    clear: none;
    width: auto;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.chatZone .ongletChat .ocBody .ocMsgRec {
    align-self: flex-start;
    background: #fff;
    color: var(--cw-text-in);
    border-radius: 0 10px 10px 10px;
    margin-left: 6px;
}
.chatZone .ongletChat .ocBody .ocMsgRec::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    width: 0; height: 0;
    border-top: 6px solid #fff;
    border-left: 6px solid transparent;
}

.chatZone .ongletChat .ocBody .ocMsgEnv {
    align-self: flex-end;
    background: var(--cw-bubble-out);
    color: var(--cw-text-out);
    border-radius: 10px 0 10px 10px;
    margin-right: 6px;
}
.chatZone .ongletChat .ocBody .ocMsgEnv::before {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 0; height: 0;
    border-top: 6px solid var(--cw-bubble-out);
    border-right: 6px solid transparent;
}

.chatZone .ongletChat .ocBody .ocMsgRec img,
.chatZone .ongletChat .ocBody .ocMsgEnv img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    margin-right: 0;
    flex-shrink: 0;
    object-fit: cover;
}
.cw-msg-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 2px;
    display: block;
}

/* File/voice links inside messages */
.chatZone .ongletChat .ocBody .ocMsgRec a.fdl,
.chatZone .ongletChat .ocBody .ocMsgEnv a.fdl {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    margin-left: 0;
    background-color: rgba(0,0,0,0.06);
    border: none;
    border-radius: 8px;
    font-size: 12px;
}
.chatZone .ongletChat .ocBody .ocMsgEnv a.fdl {
    background-color: rgba(255,255,255,0.15);
}
.chatZone .ongletChat .ocBody .ocMsgRec a.fdl::before,
.chatZone .ongletChat .ocBody .ocMsgEnv a.fdl::before {
    content: '\f0c6';
    font-family: 'FontAwesome';
    font-size: 14px;
}
.chatZone .ongletChat .ocBody .ocMsgRec a:not(.fdl):not(.voice-msg),
.chatZone .ongletChat .ocBody .ocMsgEnv a:not(.fdl):not(.voice-msg) {
    color: inherit;
    text-decoration: underline;
}
.chatZone .ongletChat .ocBody .ocMsgRec a.voice-msg,
.chatZone .ongletChat .ocBody .ocMsgEnv a.voice-msg {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: rgba(0,0,0,0.06);
    border-radius: 20px;
    font-size: 12px;
}
.chatZone .ongletChat .ocBody .ocMsgEnv a.voice-msg {
    background-color: rgba(255,255,255,0.15);
}
.chatZone .ongletChat .ocBody .ocMsgRec a.voice-msg::before,
.chatZone .ongletChat .ocBody .ocMsgEnv a.voice-msg::before {
    content: '\f130';
    font-family: 'FontAwesome';
    font-size: 16px;
}

@keyframes cw-msg-appear {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Typing indicator ===== */
#cw-typing-indicator {
    align-self: flex-start;
    background: #fff;
    border-radius: 0 10px 10px 10px;
    padding: 10px 16px;
    display: none;
    gap: 4px;
    align-items: center;
    margin-left: 6px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
    position: relative;
}
#cw-typing-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    width: 0; height: 0;
    border-top: 6px solid #fff;
    border-left: 6px solid transparent;
}
#cw-typing-indicator.cw-visible {
    display: flex;
}
.cw-typing-dot {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    border-radius: 50%;
    animation: cw-typing-bounce 1.2s infinite;
}
.cw-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.cw-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes cw-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ===== Input area ===== */
.chatZone .ongletChat .ocMsgInput {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    gap: 0;
    border-top: 1px solid var(--cw-border);
    background: #fff;
    flex-shrink: 0;
    position: static;
    width: auto;
    bottom: auto;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--cw-border);
}
.cw-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.chatZone .ongletChat .ocMsgInput .cw-emoji-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    color: #94a3b8;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.chatZone .ongletChat .ocMsgInput .cw-emoji-btn:hover { color: #64748b; }

form.ocMsgSend {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    background-color: transparent !important;
    min-width: 0;
}
.chatZone .ongletChat .ocMsgInput input {
    flex: 1;
    border: 1px solid var(--cw-border);
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13.5px;
    outline: none;
    background: #f8fafc;
    margin: 0 !important;
    width: auto;
    min-width: 0;
    opacity: 1 !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.chatZone .ongletChat .ocMsgInput input:focus {
    border-color: var(--cw-bubble-out);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
}
.chatZone .ongletChat .ocMsgInput input:disabled {
    background: #e2e8f0;
    cursor: not-allowed;
    -webkit-text-fill-color: #64748b !important;
}
.chatZone .ongletChat .ocMsgInput i {
    position: static;
    bottom: auto;
}
.cw-send-btn {
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cw-bubble-out);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}
.cw-send-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}
.cw-send-btn i.fa {
    color: #fff;
    font-size: 15px;
    line-height: 1;
}

/* ===== Microphone button ===== */
.cw-mic-btn {
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #e7faf4;
    color: #00a884;
    cursor: pointer;
    flex-shrink: 0;
    flex-grow: 0;
    transition: all 0.2s;
}
.cw-mic-btn:hover {
    background: #00a884;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,168,132,0.35);
    transform: scale(1.08);
}
.cw-mic-btn i.fa {
    font-size: 16px;
    line-height: 1;
}

/* ===== Voice recording UI ===== */
.cw-voice-record-ui {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px 0;
}
.cw-voice-record-ui.cw-visible {
    display: flex;
}
.cw-voice-cancel-btn {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #fef2f2;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}
.cw-voice-cancel-btn:hover { background: #fee2e2; }
.cw-voice-rec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: cw-voice-pulse 1s infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes cw-voice-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.cw-voice-timer {
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    min-width: 36px;
    flex-shrink: 0;
}
.cw-voice-wave-canvas {
    flex: 1;
    min-width: 60px;
    height: 28px;
}
.cw-voice-send-btn {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--cw-bubble-out);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}
.cw-voice-send-btn:hover { background: #2563eb; transform: scale(1.05); }

/* ===== Voice player (in message bubbles) ===== */
.voice-player {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    min-width: 160px;
}
.voice-play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--cw-bubble-out);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.ocMsgEnv .voice-play-btn {
    background: rgba(255,255,255,0.25);
}
.voice-play-btn i.fa {
    font-size: 12px;
    line-height: 1;
    color: #333;
}
.ocMsgEnv .voice-play-btn i.fa {
    color: #fff;
}
.voice-play-btn:hover { opacity: 0.85; }
.voice-wave-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 28px;
    flex: 1;
    cursor: pointer;
}
.voice-wave-bars .bar {
    width: 3px;
    border-radius: 2px;
    background: #c4c9d1;
    transition: background 0.15s;
}
.ocMsgEnv .voice-wave-bars .bar {
    background: rgba(255,255,255,0.35);
}
.voice-wave-bars .bar.played {
    background: var(--cw-bubble-out);
}
.ocMsgEnv .voice-wave-bars .bar.played {
    background: #fff;
}
.voice-duration {
    font-size: 11px;
    color: #6b7785;
    min-width: 32px;
    text-align: right;
    flex: 0 0 auto;
}
.ocMsgEnv .voice-duration {
    color: rgba(255,255,255,0.7);
}

/* ===== Emoji picker ===== */
#cw-emoji-picker {
    display: none;
    position: absolute;
    bottom: 56px;
    left: 12px;
    width: 280px;
    height: 250px;
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    flex-direction: column;
    z-index: 10;
}
#cw-emoji-picker.cw-visible {
    display: flex;
}
.cw-emoji-tabs {
    display: flex;
    border-bottom: 1px solid var(--cw-border);
    padding: 4px 4px 0;
}
.cw-emoji-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 6px 2px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    text-align: center;
    transition: background 0.15s;
}
.cw-emoji-tab:hover {
    background: #f1f5f9;
}
.cw-emoji-tab.active {
    border-bottom-color: var(--cw-bubble-out);
}
.cw-emoji-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 6px;
}
.cw-emoji-grid span {
    font-size: 22px;
    text-align: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    line-height: 1.2;
    transition: background 0.1s;
}
.cw-emoji-grid span:hover {
    background: #f1f5f9;
}

/* ===== Blink animation (kept for compat) ===== */
.blink {
    animation: blinker 1s linear infinite;
}
@keyframes blinker {
    50% { opacity: 0; }
}

/* Transform FAB into close button when panel is open */
.oclstConv.cw-open ~ .ocBtConv {
    background: #ef4444;
}
.oclstConv.cw-open ~ .ocBtConv svg {
    transform: rotate(0deg);
    transition: transform 0.2s;
}
.oclstConv.cw-open ~ .ocBtConv .cw-fab-badge {
    display: none !important;
}

/* Legacy title (hidden but kept for compat) */
.oclstConv .oclstConvTitle {
    display: none;
}

/* ===== Mobile fullscreen ===== */
@media only screen and (max-width: 768px) {
    .oclstConv {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    .oclstConv .oclstConvList {
        border-radius: 0;
    }
    .ocBtConv {
        left: 16px;
        bottom: 16px;
    }
    .chatZone .ongletChat .ocHead {
        border-radius: 0;
    }
    .chatZone .ongletChat .ocMsgInput {
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
    }
    i.ocMinimize { display: none; }
}
