/*
 * ==========================================================
 * COMUNIK RESTART CONVERSATION - bouton livechat visiteur
 * ==========================================================
 */

.sb-bar-icons > div.sb-btn-restart-conv {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 22px 22px;
    opacity: 0.85;
    transition: opacity .2s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566069' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 4 1 10 7 10'/><path d='M3.51 15a9 9 0 1 0 2.13-9.36L1 10'/></svg>");
}
.sb-bar-icons > div.sb-btn-restart-conv:hover { opacity: 1; }

/* Modal de confirmation */
.sb-restart-conv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2147483640;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sb-restart-fade-in 0.18s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@keyframes sb-restart-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.sb-restart-conv-modal {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    width: 360px;
    max-width: 92vw;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    animation: sb-restart-slide 0.2s ease-out;
}
@keyframes sb-restart-slide {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.sb-restart-conv-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.sb-restart-conv-icon svg {
    width: 22px;
    height: 22px;
    color: #c08400;
}
.sb-restart-conv-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1f2c;
    margin-bottom: 6px;
}
.sb-restart-conv-text {
    font-size: 13.5px;
    color: #5a6470;
    line-height: 1.5;
    margin-bottom: 18px;
}
.sb-restart-conv-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.sb-restart-conv-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.15s, transform 0.05s;
    font-family: inherit;
}
.sb-restart-conv-btn-cancel {
    background: #eef0f3;
    color: #1a1f2c;
}
.sb-restart-conv-btn-cancel:hover { background: #e1e5ea; }
.sb-restart-conv-btn-confirm {
    background: #25d366;
    color: #fff;
}
.sb-restart-conv-btn-confirm:hover { background: #1fb556; }
.sb-restart-conv-btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dark mode */
.sb-dark-mode .sb-restart-conv-modal,
[data-sb-dark="true"] .sb-restart-conv-modal {
    background: #1f2630;
    color: #d0d6dd;
}
.sb-dark-mode .sb-restart-conv-title,
[data-sb-dark="true"] .sb-restart-conv-title { color: #fff; }
.sb-dark-mode .sb-restart-conv-text,
[data-sb-dark="true"] .sb-restart-conv-text { color: #b8c0c8; }
.sb-dark-mode .sb-restart-conv-btn-cancel,
[data-sb-dark="true"] .sb-restart-conv-btn-cancel {
    background: #2f3742;
    color: #d0d6dd;
}
.sb-dark-mode .sb-restart-conv-btn-cancel:hover,
[data-sb-dark="true"] .sb-restart-conv-btn-cancel:hover { background: #3a4452; }
