/* ============================================================
   Kantor Rates Table — pixel-perfect match to whitemoney theme
   Scoped to .cx__rates-col
   ============================================================ */

.cx__rates-col {
  width: 100%;
  font-family: inherit;
}

/* ── Tabs ── */
.cx__rates-col .cx__tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8edf3;
  margin-bottom: 0;
}

.cx__rates-col .cx__tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7a99;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
  font-family: inherit;
}

.cx__rates-col .cx__tab:hover {
  color: #188de7;
}

.cx__rates-col .cx__tab--active {
  /* color: #188de7; */
  /* border-bottom-color: #188de7; */
  font-weight: 600;
  background: #63718C;
  color: #fff;
  margin-bottom: 20px;
}

/* ── Panels ── */
.cx__rates-col .cx__panel {
  display: none;
}

.cx__rates-col .cx__panel--active {
  display: block;
}

/* ── Column header ── */
.cx__rates-col .cx__col-header {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr 1fr;
  align-items: center;
  padding: 10px 16px;
  background: #f4f7fb;
  border-bottom: 1px solid #e8edf3;
  border-top: 1px solid #e8edf3;
  font-size: 12px;
  font-weight: 600;
  color: #8c9ab5;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Row ── */
.cx__rates-col .cx__row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr 1fr;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f3f8;
  transition: background .12s;
}

.cx__rates-col .cx__row:hover {
  background: #f8fafd;
}

.cx__rates-col .cx__row:last-child {
  border-bottom: none;
}

/* Left cell: flag + code */
.cx__rates-col .cx__row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cx__rates-col .cx__row-left img {
  width: 32px;
  height: 24px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.cx__rates-col .cx__row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cx__rates-col .cx__code {
  font-size: 14px;
  font-weight: 700;
  color: #1a2340;
  text-decoration: none;
  line-height: 1;
}

.cx__rates-col .cx__code:hover {
  color: #188de7;
}

/* Name cell */
.cx__rates-col .cx__rate-cell {
  font-size: 13px;
}

.cx__rates-col .cx__name {
  font-size: 13px;
  color: #6b7a99;
  font-weight: 400;
}

/* Rate value */
.cx__rates-col .cx__rate-val {
  font-size: 15px;
  font-weight: 700;
  color: #1a2340;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Arrow indicators */
.cx__rates-col .cx__arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  flex-shrink: 0;
  vertical-align: middle;
}

.cx__rates-col .cx__arrow--up {
  border-bottom: 5px solid #22c55e;
}

.cx__rates-col .cx__arrow--down {
  border-top: 5px solid #ef4444;
}

/* ── Bottom bar ── */
.cx__rates-col .bottom-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #f0f3f8;
  gap: 12px;
  flex-wrap: wrap;
}

.cx__rates-col .cx__updated {
  font-size: 12px;
  color: #b0bac9;
  margin-left: auto;
}

/* ── More / Collapse button ── */
.cx__rates-col .cx__more-btn {
  background: none;
  border: 1.5px solid #188de7;
  border-radius: 6px;
  color: #188de7;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}

.cx__rates-col .cx__more-btn:hover {
  background: #188de7;
  color: #fff;
}

/* ── Crypto flag fallback ── */
.cx__rates-col .cx__flag--crypto {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.cx__rates-col .cx__flag--btc  { background: #f7931a; }
.cx__rates-col .cx__flag--eth  { background: #627eea; }
.cx__rates-col .cx__flag--usdt { background: #26a17b; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .cx__rates-col .cx__col-header,
  .cx__rates-col .cx__row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .cx__rates-col .cx__col-header span:nth-child(2),
  .cx__rates-col .cx__row .cx__rate-cell:first-of-type {
    display: none;
  }
  .cx__rates-col .cx__tab {
    padding: 10px 12px;
    font-size: 13px;
  }
}


/* ── Crypto flag ── */
.cx__rates-col .cx__flag--crypto {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}