/* =========================================================
   CRYPTODROP — EXCHANGES (CELP)
   Universal CSS for all single exchange pages
   ========================================================= */

/* =========================================================
   PAGE WIDTH / WRAPPERS
   ========================================================= */

.celp-container-advanced-design,
.celp-container-advanced-design #celp-tabbed-area,
.celp-container-advanced-design .currecies-pairs {
  position: relative;
}

#primary > .container {
  width: 100%;
  max-width: 1280px !important;
}

#main.site-main {
  width: 100%;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* =========================================================
   MAIN LAYOUT — SAFE FLEX
   ========================================================= */

.celp-container-advanced-design {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

@media (min-width: 992px) {
  .celp-container-advanced-design {
    display: flex !important;
    align-items: flex-start !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .celp-container-advanced-design .ex_details {
    flex: 0 0 360px !important;
    width: 360px !important;
    max-width: 360px !important;
    margin: 0 !important;
    z-index: 2;
  }

  .celp-container-advanced-design #celp-tabbed-area,
  .celp-container-advanced-design .currecies-pairs {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 991px) {
  #primary > .container {
    max-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  .celp-container-advanced-design {
    display: block !important;
  }

  .celp-container-advanced-design .ex_details {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
  }

  .celp-container-advanced-design #celp-tabbed-area,
  .celp-container-advanced-design .currecies-pairs {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* =========================================================
   LEFT EXCHANGE CARD
   ========================================================= */

.celp-container-advanced-design .ex_details {
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.12) 0%, rgba(59,130,246,0) 38%),
    linear-gradient(135deg, #0f172a 0%, #111827 58%, #0b1220 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 18px !important;
  box-shadow:
    0 14px 34px rgba(2,6,23,.32),
    inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}

/* Logo */
.ex_logo_section {
  margin-bottom: 18px;
}

.ex_logo_top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ex_logo_top img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  padding: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}

.ex_logo_top .ex_name {
  display: inline-block;
  color: #f8fafc !important;
  font-size: 30px !important;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* =========================================================
   START TRADING BUTTON
   ========================================================= */

.ex_details a.trading-button,
.ex_details a.start-trading,
.ex_details .btn,
.ex_details a.btn,
a.celp-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg,#1d4ed8,#3b82f6) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 6px 16px rgba(37,99,235,.30);
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  transition: all .18s ease;
}

.ex_details a.trading-button:hover,
.ex_details a.start-trading:hover,
.ex_details .btn:hover,
.ex_details a.btn:hover,
a.celp-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg,#2563eb,#60a5fa) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(37,99,235,.35);
}

/* =========================================================
   LEFT DETAILS TABLE
   ========================================================= */

.ex_details table {
  width: 100%;
  margin-top: 18px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.ex_details table,
.ex_details table tbody,
.ex_details table tr {
  background: transparent !important;
}

.ex_details table th,
.ex_details table td {
  padding: 15px 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
  vertical-align: middle !important;
  background: #0f172a !important;
}

.ex_details table tr:nth-child(even) th,
.ex_details table tr:nth-child(even) td {
  background: #111827 !important;
}

.ex_details table tr:hover th,
.ex_details table tr:hover td {
  background: #162033 !important;
}

.ex_details table tr:last-child th,
.ex_details table tr:last-child td {
  border-bottom: 0 !important;
}

.ex_details table th:last-child,
.ex_details table td:last-child {
  border-right: 0 !important;
}

.ex_details table th {
  width: 54%;
  color: #f8fafc !important;
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
  letter-spacing: 0;
}

.ex_details table td {
  color: #e5e7eb !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
}

/* icons */
.ex_details table th i,
.ex_details table td i,
.ex_details .fa,
.ex_details .fas,
.ex_details .fab,
.ex_details table th [class^="cmc_icon-"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 15px !important;
  border-radius: 8px !important;
  background: #334155 !important;
  color: #93c5fd !important;
  margin-right: 10px !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

/* =========================================================
   LEFT CARD LINKS / SOCIAL / WEBSITE BUTTONS
   ========================================================= */

.ex_details table td a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  max-width: 100%;
  padding: 4px 10px !important;
  border-radius: 8px;
  background: rgba(59,130,246,.12) !important;
  border: 1px solid rgba(59,130,246,.28) !important;
  color: #93c5fd !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  transition: all .18s ease;
}

.ex_details table td a:hover {
  transform: translateY(-1px);
  background: rgba(59,130,246,.22) !important;
  border-color: rgba(96,165,250,.4) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* =========================================================
   TABS
   ========================================================= */

#celp-tabbed-area {
  width: 100%;
  min-width: 0;
  margin: 0 0 18px !important;
}

#celp-tabbed-area .celp-tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px !important;
  padding: 0;
  list-style: none;
  border: 0 !important;
}

#celp-tabbed-area .celp-tab-group li {
  margin: 0;
  padding: 0;
}

#celp-tabbed-area .celp-tabsBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(15,23,42,.78);
  border: 1px solid rgba(255,255,255,.08);
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

#celp-tabbed-area .celp-tabsBtn:hover,
#celp-tabbed-area .celp-tabsBtn.active {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(37,99,235,.24);
}

/* =========================================================
   DATATABLE WRAPPER / CONTROLS
   ========================================================= */

#celp_currency_pairs_wrapper {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 10px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.12) 0%, rgba(59,130,246,0) 35%),
    linear-gradient(135deg, #0f172a 0%, #111827 60%, #0b1220 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 12px 30px rgba(2,6,23,.35),
    inset 0 1px 0 rgba(255,255,255,.04);
}

#celp_currency_pairs_wrapper .dataTables_length,
#celp_currency_pairs_wrapper .dataTables_filter {
  margin-bottom: 14px;
}

#celp_currency_pairs_wrapper .dataTables_length label,
#celp_currency_pairs_wrapper .dataTables_filter label,
#celp_currency_pairs_wrapper .dataTables_info {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
}

#celp_currency_pairs_wrapper .dataTables_length select,
#celp_currency_pairs_wrapper .dataTables_filter input[type="search"] {
  height: 42px;
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(15,23,42,.92) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  outline: none;
  box-shadow: none !important;
}

#celp_currency_pairs_wrapper .dataTables_filter input[type="search"]:focus,
#celp_currency_pairs_wrapper .dataTables_length select:focus {
  border-color: rgba(59,130,246,.35) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12) !important;
}

#celp_currency_pairs_wrapper .dataTables_paginate {
  margin-top: 14px;
}

#celp_currency_pairs_wrapper .paginate_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 40px;
  margin-left: 8px;
  padding: 0 14px !important;
  border-radius: 12px;
  background: rgba(255,255,255,.04) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  text-decoration: none !important;
  transition: all .2s ease;
}

#celp_currency_pairs_wrapper .paginate_button:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 18px rgba(37,99,235,.28);
}

#celp_currency_pairs_wrapper .paginate_button.disabled {
  opacity: .45;
  cursor: not-allowed !important;
}

#celp_currency_pairs_wrapper .dataTables_processing {
  background: #0f172a !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px;
}

/* Scrollbar */
#celp_currency_pairs_wrapper::-webkit-scrollbar {
  height: 8px;
}

#celp_currency_pairs_wrapper::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 999px;
}

#celp_currency_pairs_wrapper::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 999px;
}

/* =========================================================
   TABLE
   ========================================================= */

#celp_currency_pairs thead th,
#celp_currency_pairs tbody td,
#celp_currency_pairs thead th[style],
#celp_currency_pairs tbody td[style] {
  position: static !important;
  left: auto !important;
  z-index: auto !important;
  transform: none !important;
  box-shadow: none !important;
}

#celp_currency_pairs,
#celp_currency_pairs[style],
#celp_currency_pairs.celp-datatable,
#celp_currency_pairs.table,
#celp_currency_pairs.table-bordered,
#celp_currency_pairs.dataTable {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  color: #e5e7eb;
  border: 0 !important;
}

/* Header */
#celp_currency_pairs thead th {
  background: #172554 !important;
  background-color: #172554 !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 11px 9px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#celp_currency_pairs thead th:first-child {
  border-left: 1px solid rgba(255,255,255,.08) !important;
  border-top-left-radius: 18px;
}

#celp_currency_pairs thead th:last-child {
  border-top-right-radius: 18px;
}

/* Body */
#celp_currency_pairs tbody td,
#celp_currency_pairs tbody td[style] {
  padding: 11px 9px !important;
  font-size: 13px !important;
  color: #e5e7eb !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  vertical-align: middle !important;
  background: #334155 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1 !important;
}

#celp_currency_pairs tbody tr:nth-child(even) td,
#celp_currency_pairs tbody tr:nth-child(even) td[style] {
  background: #3c4a60 !important;
}

#celp_currency_pairs tbody tr:hover td,
#celp_currency_pairs tbody tr:hover td[style] {
  background: #44536a !important;
  color: #ffffff !important;
}

#celp_currency_pairs tbody tr td:first-child,
#celp_currency_pairs tbody tr td:first-child[style] {
  border-left: 1px solid rgba(255,255,255,.06) !important;
  text-align: center !important;
  color: #e5e7eb !important;
}

#celp_currency_pairs tbody td:nth-child(2),
#celp_currency_pairs tbody td:nth-child(2)[style] {
  background: #334155 !important;
  color: #f8fafc !important;
}

#celp_currency_pairs tbody tr:nth-child(even) td:nth-child(2),
#celp_currency_pairs tbody tr:nth-child(even) td:nth-child(2)[style] {
  background: #3c4a60 !important;
}

#celp_currency_pairs tbody tr:hover td:nth-child(2),
#celp_currency_pairs tbody tr:hover td:nth-child(2)[style],
#celp_currency_pairs tbody tr:hover td:first-child,
#celp_currency_pairs tbody tr:hover td:first-child[style] {
  background: #44536a !important;
  color: #ffffff !important;
}

#celp_currency_pairs tbody td:nth-child(2) .celp-coin_name,
#celp_currency_pairs tbody td:nth-child(2) .celp_ex_name {
  color: #f8fafc !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  background: transparent !important;
}

#celp_currency_pairs .celp-price .cmc-formatted-price,
#celp_currency_pairs .celp-volume_24h,
#celp_currency_pairs .celp-trust_score {
  color: #e5e7eb !important;
}

#celp_currency_pairs .celp-updated {
  color: #93c5fd !important;
  font-size: 13px;
}

#celp_currency_pairs .celp-trust_score {
  font-weight: 600;
}

/* column widths */
#celp_currency_pairs thead th:nth-child(1),
#celp_currency_pairs tbody td:nth-child(1) {
  width: 42px !important;
}

#celp_currency_pairs thead th:nth-child(2),
#celp_currency_pairs tbody td:nth-child(2) {
  width: 130px !important;
}

#celp_currency_pairs thead th:nth-child(3),
#celp_currency_pairs tbody td:nth-child(3) {
  width: 110px !important;
}

#celp_currency_pairs thead th:nth-child(4),
#celp_currency_pairs tbody td:nth-child(4) {
  width: 105px !important;
}

#celp_currency_pairs thead th:nth-child(5),
#celp_currency_pairs tbody td:nth-child(5) {
  width: 170px !important;
}

#celp_currency_pairs thead th:nth-child(6),
#celp_currency_pairs tbody td:nth-child(6) {
  width: 140px !important;
}

#celp_currency_pairs thead th:nth-child(7),
#celp_currency_pairs tbody td:nth-child(7) {
  width: 90px !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991px) {
  #celp_currency_pairs_wrapper {
    border-radius: 18px !important;
  }

  #celp_currency_pairs {
    min-width: 760px !important;
    table-layout: auto !important;
  }

  .ex_logo_top .ex_name {
    font-size: 26px !important;
  }

  .ex_details table th {
    width: 42%;
    white-space: normal;
  }

  .ex_details table td {
    text-align: left;
  }

  .ex_details table td a {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  #celp_currency_pairs_wrapper .dataTables_length,
  #celp_currency_pairs_wrapper .dataTables_filter,
  #celp_currency_pairs_wrapper .dataTables_info,
  #celp_currency_pairs_wrapper .dataTables_paginate {
    float: none !important;
    width: 100%;
    text-align: left !important;
  }

  #celp_currency_pairs_wrapper .dataTables_filter input[type="search"] {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 8px;
  }

  #celp_currency_pairs {
    min-width: 640px !important;
  }
}
.ex_details table th i,
.ex_details table th svg,
.ex_details table th img,
.ex_details table td i,
.ex_details table td svg,
.ex_details table td img {
  vertical-align: middle;
}

.ex_details table th span,
.ex_details table td span {
  vertical-align: middle;
}