/* ── CMC Agricultural Futures  [cmc_agri_futures] ──────────────────────────── */

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

.cmc-af-header-ico {
    width: 12px;
    height: 16px;
    flex-shrink: 0;
    fill: #22c55e;
}

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

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

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

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

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

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

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

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

.cmc-af-icon--coffee { background: linear-gradient(135deg, #d97706 0%, #92400e 100%); }
.cmc-af-icon--soy    { background: linear-gradient(135deg, #16a34a 0%, #14532d 100%); }
.cmc-af-icon--sugar  { background: linear-gradient(135deg, #db2777 0%, #9d174d 100%); }
.cmc-af-icon--cotton { background: linear-gradient(135deg, #0284c7 0%, #075985 100%); }
.cmc-af-icon--wheat  { background: linear-gradient(135deg, #ca8a04 0%, #b45309 100%); }
.cmc-af-icon--corn   { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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