.cpp-table {
	border-collapse: collapse;

}
.cpp-table td, .cpp-table th{
	padding: 15px;
}
.cpp-table thead td, .cpp-table th {
	font-weight: 500;
	border: 1px solid #dddfe1;
}
.cpp-table tbody td {
	color: #636363;
	border: 1px solid #dddfe1;
}
.cpp-table tbody tr:hover, .cpp-table tbody tr:nth-child(odd):hover {
  background-color: #f3f3f3;
}
.cpp-table tbody tr {
	background-color: #f9fafb;
}
.cpp-table tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

.cpp-chart-selector.active {
  /* background-color: #21978d; */
  color: #fff;
}

.chart-time-period{
  background-color: #853a93;
  padding: 5px 10px;
  font-size: 14px;
}
.graph-container{
  position: relative;
}
.chart-buttons{
  right: 1px;
  position: absolute;
}

.cpp-crypto-chart {
  position: relative;
  margin-bottom: 20px;
}

.cpp-chart-container {
  width: 100%;
  height: 320px;
  margin-top: 10px;
}

.cpp-chart-selectors {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.cpp-chart-selector {
  background: none;
  border: none;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  margin-right: 0;
}

.cpp-chart-selector:hover {
  color: #333;
}

.cpp-chart-selector.active {
  color: #333;
  border-bottom-color: var(--cpp-main-color, #36b3b3);
  font-weight: 500;
}

.cpp-chart-selector:last-child {
  margin-right: 0;
}

.cpp-chart-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

.cpp-chart-header-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
  display: block;
}

.cpp-chart-price,
.cpp-chart-change {
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.cpp-chart-change {
  font-size: 14px;
}

.cpp-crypto-chart-99btc .cpp-chart-price{
  margin-right: 0px !important;
}

.cpp-chart-price {
  margin-right: 0px;
}

.cpp-positive-change {
  color: #348837;
}

.cpp-negative-change {
  color: #DD1C36;
}


span.changered {
  background-color: #F7C9CF;
  padding: 5px;
  color: #DD1C36;
}

span.changegreen {
  background-color: #D2F9D3;
  padding: 5px;
  color: #348837;
}

span.changegreen i, span.changered i {
  transform: scaleX(1) scaleY(0.6) translate(0px, -4px);
display: inline-block;
}

.cpp-chart-price sub{
font-size: calc(100% - 6px);
vertical-align: bottom;
}

@media (max-width: 480px) {
  .cpp-chart-selectors{
    position: absolute;
    right: 5px;
    top: 5px;
    gap: 8px;
  }
  .cpp-chart-selector{
    font-size: 12px;
    padding: 3px 0;
  }
  
  .cpp-chart-header {
    font-size: 18px;
    gap: 8px;
    margin-bottom: 8px;
    line-height: 1;
  }
  
  .cpp-chart-header-logo {
    width: 24px;
    height: 24px;
  }
  
  .cpp-chart-price,
  .cpp-chart-change {
    font-size: 16px;
    line-height: 1;
  }
}


/*2nd table style*/

.cpp-table-2 td:first-child, .cpp-table td:first-child{
  font-weight: 600;
}

.cpp-table-2 {
  margin: 0 auto;
  font-size: 1em;
  margin-bottom: 10px;
    border-collapse: collapse;
}

.cpp-table-2 td, .cpp-table-2 th {
  border: 1px solid #cfcfcf; 
}


.cpp-table-2 thead {

}
.cpp-table-2 thead tr th { 
  font-weight: bold;
  padding: 12px 13px;
  padding-left: 42px;
}


.cpp-table-2 tbody tr { 
  color: #555;
}
.cpp-table-2 tbody tr td {
  text-align: center;
  padding: 8px 7px;
}
.cpp-table-2 tbody tr td.lalign {
  text-align: left;
}

.cpp-table-2 tr:first-child td {
  border-top: 0;
}
.cpp-table-2 tr td:first-child {
  border-left: 0;
}
.cpp-table-2 tr:last-child td {
  border-bottom: 0;
}
.cpp-table-2 tr td:last-child {
  border-right: 0;
}
.cpp-table-2 tr:first-child th {
  border-top: 0;
}
.cpp-table-2 tr th:first-child {
  border-left: 0;
}
.cpp-table-2 tr:last-child th {

}
.cpp-table-2 tr th:last-child {
  border-right: 0;
}

.cpp-table-2 tbody tr:hover, .cpp-table-2 tbody tr:nth-child(odd):hover {
  background-color: #f3f3f3;
}

.cpp-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cpp-table-fw {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: none;
}

.cpp-table-fw th,
.cpp-table-fw td {
  padding: 12px;
  text-align: left;
  border: none;
}

.cpp-table-fw th {
  font-weight: 600;
  background-color: #f2f2f2;
}

.cpp-table-fw td:first-child {
  font-weight: 600;
}

.cpp-table-fw tr:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.cpp-table-fw tr:hover {
  background-color: #f9f9f9;
}

.cpp-text-coin img{
  vertical-align: middle;
  max-width: 30px;
  max-height: 17px;
  margin-bottom: 0px !important;
}

.cpp-text-coin{
  background-color: #f3f3f3ab;
  color: #343434 !important;
  padding: 3px 9px;
  font-size: small;
  font-weight: 600;
  border-radius: 5px;
}

/* .cpp-chart-container  {
         min-height: 250px; 
         max-height: 500px !important;
     }  */

     .cpp-manual-chart {
      width: 100%;
      height: 400px;
      margin-bottom: 20px;
  }
  .cpp-manual-chart-container {
    width: 100%;
    margin-bottom: 20px;
}

/*Custom table cryptnews */
.cryptonews-cpp {
  border-collapse: separate;
  border-spacing: 0;
  margin: 25px 0;
  width: 100%;
  overflow-x: auto;
  min-width: 400px;
  border: 1px solid #211B2E;

}

.cryptonews-cpp th, .cryptonews-cpp td {
  border: none;
  font-weight: 400;
}

/* Header styles */
.cryptonews-cpp thead tr {
  background-color: #211B2E; 
  color: #ffffff;
  text-align: left;
}

/* Cell padding */
.cryptonews-cpp th,
.cryptonews-cpp td {
  padding: 8px 15px;
}

/* Body rows */
.cryptonews-cpp tbody td {
  border-bottom: 0.5px solid #E8E8E8;
}

/* Zebra striping */
.cryptonews-cpp tbody tr:nth-of-type(even) {
  /* background-color: #F7F5F9; */
}

/* Last row border */
.cryptonews-cpp tbody tr:last-of-type {
  border-bottom: 2px solid var(--cpp-main-color, #7a2197);
}

/* Active row styling */
.cryptonews-cpp tbody tr.active-row {
  font-weight: bold;
  color: var(--cpp-main-color, #7a2197);
}

/* Hover effect */
.cryptonews-cpp tbody tr:hover {
background-color: #F7F5F9;
  transition: background-color 0.3s ease;
}

/* Responsive design */
@media screen and (max-width: 600px) {
  .cryptonews-cpp {
      min-width: 100%;
      font-size: 0.8em;
  }
  
  .cryptonews-cpp th,
  .cryptonews-cpp td {
      padding: 8px 10px;
  }
}

.inactive-coin {
    background-color: #ffebee; /* Light red background */
    color: #d32f2f; /* Darker red text for contrast */
}

/* 99btc Chart Style */
.cpp-crypto-chart-99btc {
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #d0d0d0;
  padding: 15px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cpp-chart-top-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.cpp-chart-info-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.cpp-chart-logo {
  flex-shrink: 0;
}

.cpp-chart-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cpp-chart-coin-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cpp-chart-labels-row,
.cpp-chart-values-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Column alignment for labels and values */
.cpp-chart-coin-name,
.cpp-chart-coin-symbol {
  width: 80px;
  flex-shrink: 0;
}

.cpp-chart-price-info,
.cpp-chart-price {
  width: 80px;
  flex-shrink: 0;
}

.cpp-chart-market-cap,
.cpp-chart-market-cap-value {
  width: 100px;
  flex-shrink: 0;
}

.cpp-chart-coin-name,
.cpp-chart-price-info,
.cpp-chart-market-cap {
  font-size: 14px;
  color: #666;
  line-height: 1.3;
}

.cpp-chart-coin-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.cpp-chart-coin-symbol,
.cpp-chart-price,
.cpp-chart-market-cap-value {
  font-size: 14px;
  color: #666;
  line-height: 1.3;
  font-weight: 500;
}

.cpp-chart-selectors-99btc {
  display: flex;
  gap: 5px;
  margin-right: 10px;
  align-items: center;
}

.cpp-crypto-chart-99btc .cpp-chart-selector {
  background: none;
  border: none;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.cpp-crypto-chart-99btc .cpp-chart-selector:hover {
  color: #333;
}

.cpp-crypto-chart-99btc .cpp-chart-selector.active {
  color: #333;
  border-bottom-color: var(--cpp-main-color, #7a2197);
  font-weight: 500;
}

.cpp-chart-container-99btc {
  width: 100%;
  height: 320px;
  position: relative;
}

/* Responsive adjustments for 99btc style */
@media (max-width: 768px) {
  .cpp-chart-top-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
  }
  
  .cpp-chart-selectors-99btc {
    gap: 8px;
    justify-content: flex-end;
    flex-shrink: 0;
  }
  
  .cpp-chart-info-section {
    gap: 15px;
  }
  
  .cpp-chart-labels-row,
  .cpp-chart-values-row {
    gap: 15px;
  }
  
  /* Adjust column widths for tablet */
  .cpp-chart-coin-name,
  .cpp-chart-coin-symbol {
    width: 70px;
  }
  
  .cpp-chart-price-info,
  .cpp-chart-price {
    width: 70px;
  }
  
  .cpp-chart-market-cap,
  .cpp-chart-market-cap-value {
    width: 50px;
  }
}

@media (max-width: 480px) {
  .cpp-crypto-chart-99btc {
    padding: 10px;
  }
  
  .cpp-chart-top-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  
  .cpp-chart-selectors-99btc {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    flex-shrink: 0;
    margin-right: 0;
  }
  
  .cpp-crypto-chart-99btc .cpp-chart-selector {
    font-size: 12px;
    padding: 3px 0;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .cpp-chart-logo img {
    width: 32px;
    height: 32px;
  }
  
  .cpp-chart-coin-name {
    font-size: 14px;
  }
  
  .cpp-chart-price-info,
  .cpp-chart-market-cap,
  .cpp-chart-coin-symbol,
  .cpp-chart-price,
  .cpp-chart-market-cap-value {
    font-size: 13px;
  }
  
  .cpp-chart-info-section {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
  }
  
  .cpp-chart-labels-row,
  .cpp-chart-values-row {
    gap: 10px;
  }
  
  /* Adjust column widths for mobile */
  .cpp-chart-coin-name,
  .cpp-chart-coin-symbol {
    width: 50px;
    font-size: 12px;
  }
  
  .cpp-chart-price-info,
  .cpp-chart-price {
    width: 70px;
    font-size: 12px;
  }
  
  .cpp-chart-market-cap,
  .cpp-chart-market-cap-value {
    width: 65px;
    font-size: 12px;
  }
  
  .cpp-chart-container-99btc {
    height: 250px;
  }
}

.inactive-coin {
  color: #e74c3c;
}

/* Watermark styles */
.cpp-chart-watermark {
  max-width: 120px !important;
  max-height: 100px !important;
}