/**
 * Quota Modal Styles
 * 配额弹窗样式 — quota-interceptor.js 使用
 */

/* 模态框容器 */
.quota-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 12020;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

/* 背景遮罩 */
.quota-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    z-index: 0;
}

/* 内容卡片 */
.quota-modal-card {
    position: relative;
    z-index: 1;
    margin: auto;
    pointer-events: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .18);
}

.quota-modal-card--sm { width: min(560px, 100%); }
.quota-modal-card--md { width: min(720px, 100%); }

/* 头部 */
.quota-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quota-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 内容区 */
.quota-modal-body {
    padding: 18px 20px;
    color: #334155;
    line-height: 1.7;
}

/* 底部 */
.quota-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.quota-modal-footer--end {
    justify-content: flex-end;
}

/* 提示块 */
.quota-info-block {
    margin: 0 0 14px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}

.quota-info-block--blue {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.quota-info-block--yellow {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.quota-info-block--gray {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.quota-info-block__title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

/* 次卡选项列表 */
.quota-credit-options {
    max-height: min(42vh, 320px);
    overflow: auto;
    padding-right: 4px;
}

/* 推荐徽章 */
.quota-recommend-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 600;
}

/* 推荐原因 */
.quota-priority-reason {
    color: #92400e;
}

/* 右侧按钮组 */
.quota-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex: 1 1 auto;
}
