/* ── CMC Metals Futures  [cmc_metals_futures] ───────────────────────────── */

.cmc-mf-wrap {
    width: 100%;
    font-family: inherit;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    direction: rtl;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.cmc-mf-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px 8px;
    direction: rtl;
}

.cmc-mf-header-ico {
    width: 16px;
    height: 12px;
    flex-shrink: 0;
    fill: #fbbf24;
}

.cmc-mf-header-inner { fill: rgba(12, 12, 12, 0.45); }

.cmc-mf-title {
    font-size: 12px;
    font-weight: 700;
    color: #0C0C0C;
    white-space: nowrap;
}

/* ── Item list ───────────────────────────────────────────────────────────── */

.cmc-mf-list {
    display: flex;
    flex-direction: column;
}

.cmc-mf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 8px;
    border-bottom: 1px solid #f1f5f9;
    direction: rtl;
    min-width: 0;
}

.cmc-mf-item:last-child { border-bottom: none; }

/* ── Body: icon + label (rightmost in RTL) ── */

.cmc-mf-body {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.cmc-mf-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmc-mf-icon--gold     { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.cmc-mf-icon--silver   { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); }
.cmc-mf-icon--copper   { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); }
.cmc-mf-icon--platinum { background: linear-gradient(135deg, #64748b 0%, #334155 100%); }
.cmc-mf-icon--oil      { background: linear-gradient(135deg, #475569 0%, #1e293b 100%); }
.cmc-mf-icon--gas      { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }

/* ── Icon SVGs ── */

.cmc-mf-ico {
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.92);
}

.cmc-mf-ico--wide { width: 14px; height: 10px; }
.cmc-mf-ico--tall { width: 12px; height: 16px; }

.cmc-mf-ico-inner { fill: rgba(255, 255, 255, 0.35); }

.cmc-mf-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cmc-mf-name {
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.cmc-mf-code {
    font-size: 9px;
    color: #94a3b8;
    direction: ltr;
    font-family: 'Courier New', monospace;
    line-height: 1.3;
}

/* ── Meta: price + change (leftmost in RTL) ── */

.cmc-mf-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    min-width: 88px;
}

.cmc-mf-price {
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
    direction: ltr;
    white-space: nowrap;
    line-height: 1.3;
}

.cmc-mf-unit {
    font-size: 8px;
    font-weight: 400;
    color: #64748b;
}

.cmc-mf-chg {
    font-size: 10px;
    font-weight: 700;
    direction: ltr;
    white-space: nowrap;
    line-height: 1.4;
}

.cmc-mf-chg--pos { color: #16a34a; }
.cmc-mf-chg--neg { color: #dc2626; }

/* ── Footer with legend ──────────────────────────────────────────────────── */

.cmc-mf-footer {
    padding: 6px 12px 7px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cmc-mf-disclaimer {
    font-size: 9px;
    color: #94a3b8;
}

.cmc-mf-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.cmc-mf-leg-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cmc-mf-leg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cmc-mf-leg-dot--pos { background: #16a34a; }
.cmc-mf-leg-dot--neg { background: #dc2626; }

.cmc-mf-leg-lbl {
    font-size: 9px;
    color: #64748b;
}
