/**
 * 云信IM - 微信风格确认对话框样式
 * 完全按照微信的确认弹窗设计
 */

.wechat-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wechat-confirm-overlay.show {
    opacity: 1;
}

.wechat-confirm-dialog {
    background: #FFFFFF;
    border-radius: 12px;
    width: 280px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wechat-confirm-overlay.show .wechat-confirm-dialog {
    transform: scale(1);
}

.wechat-confirm-title {
    padding: 20px 20px 10px;
    font-size: 17px;
    font-weight: 500;
    color: #000000;
    text-align: center;
    line-height: 1.4;
}

.wechat-confirm-content {
    padding: 20px;
    font-size: 15px;
    color: #000000;
    text-align: center;
    line-height: 1.6;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 如果有标题，内容的上内边距减少 */
.wechat-confirm-title + .wechat-confirm-content {
    padding-top: 10px;
}

.wechat-confirm-buttons {
    display: flex;
    border-top: 1px solid #E5E5E5;
}

.wechat-confirm-btn {
    flex: 1;
    height: 48px;
    border: none;
    background: none;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s ease;
    outline: none;
}

.wechat-confirm-btn:active {
    background: #ECECEC;
}

.wechat-confirm-btn-cancel {
    color: #000000;
    border-right: 1px solid #E5E5E5;
}

.wechat-confirm-btn-confirm {
    color: #07C160;  /* ✅ 使用微信绿色，更清晰可见 */
    font-weight: 500;
}

.wechat-confirm-btn-confirm.danger {
    color: #FA5151;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .wechat-confirm-dialog {
        width: 270px;
    }
    
    .wechat-confirm-title {
        font-size: 16px;
    }
    
    .wechat-confirm-content {
        font-size: 14px;
        padding: 16px;
    }
    
    .wechat-confirm-btn {
        font-size: 16px;
        height: 44px;
    }
}

