/* ==========================================================================
   Ice Card 信任组件（v7.6.0 板块 E）
   三板：三步流程 / 承诺图标带 / 收款方式图标带
   视觉：品牌蓝 #0284c7 体系，白底 + 浅灰卡片；手机 390px 优先
   ========================================================================== */

.icecard-trust {
    --ict-blue: #0284c7;
    --ict-blue-light: #0ea5e9;
    --ict-ink: #0f172a;
    --ict-muted: #64748b;
    --ict-line: #e2e8f0;
    --ict-card: #f8fafc;
    --ict-card-line: #eef2f7;
    color: var(--ict-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    border-top: 1px solid var(--ict-line);
    margin-top: 10px;
    padding: 18px 0 8px;
}
.icecard-trust *,
.icecard-trust *::before,
.icecard-trust *::after { box-sizing: border-box; }

/* 板块小标题 */
.icecard-trust-title {
    margin: 0 0 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ict-ink);
}

/* ---------- 三板①：三步流程 ---------- */
.icecard-trust-steps { margin-bottom: 22px; }
.ict-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}
.ict-step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    position: relative;
}
.ict-step-num {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ict-blue-light), var(--ict-blue));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(2, 132, 199, .28);
}
.ict-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    border-top: 2px dashed #bae6fd;
}
.ict-step-t {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ict-ink);
    margin-bottom: 3px;
}
.ict-step-d {
    display: block;
    font-size: 10.5px;
    line-height: 1.45;
    color: var(--ict-muted);
    padding: 0 2px;
}

/* ---------- 三板②：承诺图标带 ---------- */
.icecard-trust-promises {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}
.ict-promise {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--ict-card);
    border: 1px solid var(--ict-card-line);
    border-radius: 14px;
    padding: 12px 10px;
}
.ict-promise-ic {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f0f9ff;
    color: var(--ict-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ict-promise-ic svg { width: 18px; height: 18px; display: block; }
.ict-promise-body { min-width: 0; }
.ict-promise-t {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ict-ink);
}
.ict-promise-d {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--ict-muted);
}

/* ---------- 三板③：收款方式图标带 ---------- */
.icecard-trust-payments { margin-bottom: 6px; }
.ict-pay-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 12px;
    color: var(--ict-muted);
}
.ict-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.ict-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--ict-line);
    border-radius: 10px;
    padding: 7px 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.ict-chip-mark,
.ict-chip-img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ict-chip-mark svg { width: 21px; height: 21px; display: block; }
.ict-chip-img { object-fit: contain; }
.ict-chip-t {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 内置品牌色徽标 */
.ict-mark-usdt { border-radius: 0; color: #50AF95; }
.ict-mark-opay { background: #14B866; }
.ict-mark-mpesa { background: #5C9E32; }
.ict-mark-momo {
    background: #FFCE00;
    /* momo 是 4 字母词标，20px 方盒会裁切：放宽为自适应胶囊 */
    flex: 0 0 auto;
    width: auto;
    min-width: 20px;
    padding: 0 4px;
}
.ict-mark-letter {
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
}
.ict-mark-momo .ict-mark-letter { color: #1a1a1a; }
.ict-mark-letter-sm { font-size: 8.5px; letter-spacing: -.3px; }

/* ---------- 显示范围（CDN 安全：纯 CSS，不走 wp_is_mobile） ---------- */
@media (min-width: 922px) {
    .icecard-trust-scope-mobile { display: none !important; }
}
@media (max-width: 921px) {
    .icecard-trust-scope-desktop { display: none !important; }
}

/* ---------- 手机核价屏：底部留白 + 安全区 ----------
   实测（390×844 断言板，全滚动位置扫描）：吸底 Contact Support 钮的 sticky 包含块是
   .icecard-card，信任组件在其外，按钮在信任板块进入视口时即随包含块滚走，任何静止位置
   都不与三板重叠，故无需为其预留 84px；这里只留呼吸空间 + iOS Home 指示条安全区。 */
@media (max-width: 921px) {
    .isp-main .icecard-trust {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ---------- 较宽视口：收款 chip 一行四个 ---------- */
@media (min-width: 480px) {
    .ict-chips { grid-template-columns: repeat(4, minmax(0, auto)); justify-content: center; }
    .ict-chip { padding: 7px 12px; }
}
