/* ── CMC Index Futures  [cmc_index_futures] ──────────────────────────────── */

.cmc-if-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-if-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px 8px;
    direction: rtl;
}

.cmc-if-header-ico {
    width: 18px;
    height: 14px;
    flex-shrink: 0;
}

.cmc-if-hline {
    fill: none;
    stroke: #6ee7b7;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cmc-if-hdot { fill: #6ee7b7; }

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

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

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

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

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

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

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

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

.cmc-if-icon--sp500   { background: #dc2626; }
.cmc-if-icon--dow     { background: #2563eb; }
.cmc-if-icon--dax     { background: #0369a1; }
.cmc-if-icon--nasdaq  { background: #16a34a; }
.cmc-if-icon--russell { background: #7c3aed; }
.cmc-if-icon--ftse    { background: #ea580c; }

/* Text badge inside the circle */
.cmc-if-badge {
    font-size: 9px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-align: center;
    direction: ltr;
    letter-spacing: -0.02em;
    font-family: Arial, sans-serif;
}

.cmc-if-badge--xl { font-size: 14px; letter-spacing: 0; }
.cmc-if-badge--lg { font-size: 11px; }
.cmc-if-badge--md { font-size: 9.5px; }
.cmc-if-badge--sm { font-size: 7px; letter-spacing: -0.04em; }

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

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

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

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

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

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

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

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

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

/* ── Footer ──────────────────────────────────────────────────────────────── */

.cmc-if-footer {
    padding: 7px 12px 8px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cmc-if-link {
    font-size: 10.5px;
    font-weight: 600;
    color: #4D5B72;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cmc-if-link:hover { color: #1e293b; }

.cmc-if-link-arr {
    font-size: 14px;
    line-height: 1;
    direction: ltr;
    display: inline-block;
}

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