/* Built from mockup-v2/market.css — edit that, then run build-plugin.sh */
/* FxPay home «ابزارهای معاملاتی» tables ([fxp_market]). Design: mockup-v2/tools-section.html, crypto shape 1 + fx shape 1 (owner, 2026-12-04). */
.fxp-market { --m-brand: #262db6; --m-tx1: #0f0f12; --m-tx2: #505053; --m-muted: #787b86; --m-frame: #e3e3eb; --m-line: #eceef2; --m-up: #089981; --m-down: #f23645;
	container-type: inline-size; width: 100%; direction: rtl; text-align: right; color: var(--m-tx1); font-family: inherit; }
.fxp-market * { box-sizing: border-box; }
.fxm-wait { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 120px; padding-bottom: 40px; }
.fxm-wait i { width: 8px; height: 30px; border-radius: 2px; background: #c3c5cc; animation: fxm-w 1s ease-in-out infinite; }
.fxm-wait i:nth-child(2) { animation-delay: .12s; } .fxm-wait i:nth-child(3) { animation-delay: .24s; } .fxm-wait i:nth-child(4) { animation-delay: .36s; } .fxm-wait i:nth-child(5) { animation-delay: .48s; }
@keyframes fxm-w { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.fxm-live { display: flex; justify-content: space-between; align-items: center; font-size: 12px; line-height: 20px; color: var(--m-muted); margin: 0 0 8px; }
.fxm-live .d { display: inline-flex; align-items: center; gap: 6px; }
.fxm-live .d::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--m-up); animation: fxm-lv 2s ease-in-out infinite; }
.fxp-market.is-stale .fxm-live .d::before { background: #c3c5cc; animation: none; }
@keyframes fxm-lv { 50% { opacity: .3; } }
.fxm-pill { display: inline-block; direction: ltr; font-size: 13px; font-weight: 600; line-height: 22px; padding: 0 8px; border-radius: 12px; white-space: nowrap; }
.fxm-pill.up { color: var(--m-up); background: #e6f5f2; } .fxm-pill.down { color: var(--m-down); background: #fdecee; }

/* crypto table */
.fxm-ct { border: 1px solid var(--m-frame); border-radius: 6px; overflow: hidden; background: #fff; }
.fxp-market .fxm-tr { display: grid; grid-template-columns: 36px minmax(150px, 1.6fr) 1fr 110px 1fr 130px; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-top: 1px solid var(--m-line); color: inherit; text-decoration: none; }
.fxm-tr:first-child { border-top: 0; }
.fxp-market a.fxm-tr:hover { background: #f7f7fb; color: inherit; }
.fxm-th { height: 40px !important; background: #f7f7fb; font-size: 12px; color: var(--m-muted); }
.fxm-th > *:nth-child(n+3) { text-align: left; }
.fxm-i { color: var(--m-muted); font-size: 13px; }
.fxm-nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fxm-nm img { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; object-fit: contain; }
.fxm-nm b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxm-nm span { font-size: 12px; color: var(--m-muted); white-space: nowrap; }
.fxm-pc { display: contents; }
.fxm-p { font-size: 14px; font-weight: 600; text-align: left; direction: ltr; }
.fxm-c { text-align: left; }
.fxm-v { font-size: 13px; color: var(--m-tx2); text-align: left; white-space: nowrap; }
.fxm-s svg { display: block; width: 120px; height: 32px; margin-inline-start: auto; }
@container (max-width: 640px) {
	.fxp-market .fxm-tr { grid-template-columns: minmax(0, 1fr) auto; height: 60px; padding: 0 12px; }
	.fxm-tr > .fxm-i, .fxm-tr > .fxm-v, .fxm-tr > .fxm-s, .fxm-th { display: none !important; }
	.fxm-pc { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
}

/* fx tables */
.fxm-mx { overflow-x: auto; direction: ltr; border: 1px solid var(--m-frame); border-radius: 6px; background: #fff; }
.fxm-mx table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0; direction: ltr; font-size: 12px; border: 0; }
.fxm-mx th, .fxm-mx td { height: 38px; padding: 0 6px; text-align: center; vertical-align: middle; line-height: 18px; border: 0; border-bottom: 1px solid var(--m-line); white-space: nowrap; background: #fff; }
.fxm-mx tr:last-child td, .fxm-mx tr:last-child th { border-bottom: 0; }
.fxm-mx thead th, .fxm-mx tbody th { background: #f7f7fb; color: var(--m-tx2); font-weight: 600; }
.fxm-mx tbody th, .fxm-mx thead th:first-child { position: sticky; left: 0; z-index: 1; }
.fxm-mx td.self { background: #f7f7fb; color: #c3c5cc; }
.fxm-hm td { font-weight: 600; color: #fff; }
.fxm-cur { display: inline-flex; align-items: center; gap: 5px; }
.fxm-cur svg { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
@container (max-width: 520px) { .fxm-mx table { width: auto; } .fxm-mx th, .fxm-mx td { min-width: 62px; } }
@media (prefers-reduced-motion: reduce) { .fxm-wait i, .fxm-live .d::before { animation: none !important; } }
