.cwb-logout-dialog {
    width: 440px;
    max-width: calc(100vw - 32px);
    padding: 0;
    margin: auto;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 20px 60px rgba(30, 20, 60, .25);
    font-family: inherit;
}
.cwb-logout-dialog::backdrop { background: rgba(15, 23, 42, .6); }
.cwb-logout-dialog__header { padding: 24px; background: #6c39ed; color: #fff; }
.cwb-logout-dialog__header h2 { margin: 0; color: inherit; font-size: 20px; line-height: 1.4; text-align: center; }
.cwb-logout-dialog__body { padding: 24px; }
.cwb-logout-dialog__actions { display: flex; gap: 12px; }
.cwb-logout-dialog__actions button {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #6c39ed;
    border-radius: 12px;
    background: #fff;
    color: #6c39ed;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}
.cwb-logout-dialog__actions [data-logout-confirm] { background: #6c39ed; color: #fff; }
.cwb-logout-dialog__actions button:hover { background: #f2ecff; }
.cwb-logout-dialog__actions [data-logout-confirm]:hover { background: #572bc9; }
.cwb-logout-dialog__actions button:focus-visible { outline: 3px solid #cbb8fb; outline-offset: 3px; }
.cwb-logout-dialog__actions button:disabled { opacity: .6; cursor: wait; }
.cwb-logout-dialog__error { margin: 0 0 16px; color: #dc2626; font-size: 14px; }

/* ========================================================
   ВЫПАДАЮЩЕЕ МЕНЮ ЛИЧНОГО КАБИНЕТА (ШАПКА САЙТА)
   ======================================================== */
/* Обертка (иконка + имя) */
.cwb-cabinet-dropdown-wrapper { 
    position: relative; 
    display: inline-flex; 
    align-items: center; 
    cursor: pointer; 
    z-index: 99999; 
}
.cwb-cab-text { margin-left: 6px; }

/* Само выпадающее меню */
.cwb-cab-dropdown {
    position: absolute; 
    top: calc(100% + 5px); 
    right: 0;
    transform: translateY(10px); 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 220px; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.2s ease; 
    z-index: 100000; 
    padding: 8px 0; 
    display: flex; 
    flex-direction: column;
}

/* Показ при наведении (ТОЛЬКО ДЛЯ ПК) */
.cwb-cabinet-dropdown-wrapper:hover .cwb-cab-dropdown { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

/* Невидимый мостик, чтобы меню не пропадало при движении мышки */
.cwb-cab-dropdown::before { 
    content: ''; position: absolute; top: -15px; left: 0; right: 0; height: 15px; 
}

/* Элементы меню */
.cwb-cab-dropdown-item {
    padding: 12px 20px; 
    color: #334155; 
    font-size: 15px; 
    font-weight: 500;
    text-decoration: none; 
    cursor: pointer; 
    transition: background 0.2s, color 0.2s; 
    text-align: left;
    display: block; 
    line-height: 1.4;
}
.cwb-cab-dropdown-item:hover { background: #f8fafc; color: #6c39ed; }

/* Кнопка "Выйти" */
.cwb-cab-dropdown-item.cwb-logout { 
    border-top: 1px solid #f1f5f9; 
    margin-top: 4px; 
    font-weight: 600; 
    color: #ef4444; 
}
.cwb-cab-dropdown-item.cwb-logout:hover { background: #fef2f2; color: #dc2626; }

/* === АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ И ПЛАНШЕТОВ === */
@media(max-width: 980px) { 
    /* Полностью скрываем выпадающее меню */
    .cwb-cab-dropdown { 
        display: none !important; 
    } 
}
