.content td {border-color: #cfcfcf !important;}
.content table {border-color: #cfcfcf !important;}

/* Kontener z przewijaniem */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}

/* Podstawowy styl tabeli */
.cz-price-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  color: #333;
}

/* Specjalny styl dla tabeli skupu złota (2 kolumny) */
#cz-gold-buy-wrapper .cz-price-table {
  min-width: 300px;
  max-width: 100%;
}

/* Specjalny styl dla tabeli skupu srebra (2 kolumny) */
#cz-silver-buy-wrapper .cz-price-table {
  min-width: 300px;
  max-width: 100%;
}

/* Specjalny styl dla zbiorczej tabeli (4 kolumny) */
#cz-combined-wrapper .cz-price-table {
  min-width: 500px;
  max-width: 100%;
}

/* Kompaktowa tabela zbiorcza - małe miniaturki i brak paddingu */
#cz-combined-wrapper .cz-price-table td {
  padding: 0;
  vertical-align: middle;
}

#cz-combined-wrapper .cz-price-table th {
  padding: 0.5rem 0.25rem;
}

#cz-combined-wrapper .cz-thumb {
  object-fit: cover;
}

/* Responsywność dla tabeli skupu złota */
#cz-gold-buy-wrapper .table-responsive {
  overflow-x: hidden;
}

/* Responsywność dla tabeli skupu srebra */
#cz-silver-buy-wrapper .table-responsive {
  overflow-x: hidden;
}

/* Responsywność dla zbiorczej tabeli */
#cz-combined-wrapper .table-responsive {
  overflow-x: auto;
}


@media (max-width: 768px) {
  #cz-gold-buy-wrapper .cz-price-table {
    min-width: auto;
    width: 100%;
  }
  
  #cz-gold-buy-wrapper .table-responsive {
    overflow-x: hidden;
    margin: 0.5rem 0;
  }
  
  #cz-silver-buy-wrapper .cz-price-table {
    min-width: auto;
    width: 100%;
  }
  
  #cz-silver-buy-wrapper .table-responsive {
    overflow-x: hidden;
    margin: 0.5rem 0;
  }
  
  #cz-combined-wrapper .cz-price-table {
    min-width: auto;
    width: 100%;
  }
  
  #cz-combined-wrapper .table-responsive {
    overflow-x: auto;
  }
  
  /* Mobilne style dla kompaktowej tabeli zbiorczej */
  #cz-combined-wrapper .cz-price-table td {
    padding: 0.25rem 0.5rem;
  }
  
  #cz-combined-wrapper .cz-thumb {
    width: 40px;
  }
}

/* Nagłówek */
.cz-price-table thead {
  background-color: #fafafa;
}

.cz-price-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #debd68;
  color: #fff !important;
}

/* Komórki */
.cz-price-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

/* Kolumna obrazka */
.cz-img-cell {
  text-align: center;
}

/* Specjalna kolumna obrazka dla monet - większa szerokość */
.cz-img-cell-coins {
  text-align: center;
  min-width: 280px;
  width: 280px;
}

.cz-thumb {
  display: inline-block;
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform .2s ease;
}

.cz-thumb:hover {
  transform: scale(1.05);
}

/* Specjalna klasa dla obrazków monet - większe rozmiary */
.cz-thumb-coins {
  display: inline-block;
  width: 250px;
  height: 120px; /* Ustalam stałą wysokość */
  max-width: 100%;
  border-radius: 6px;
  transition: transform .2s ease;
  object-fit: cover; /* Wykadruje zdjęcie */
  object-position: center; /* Wyśrodkuje wykadrowanie */
}

.cz-thumb-coins:hover {
  transform: scale(1.05);
}

/* Wyrównanie tekstów liczbowych */
.cz-td-right {
  text-align: center;
  font-weight: 700;
}

.cz-th-center {
  text-align: center !important;
  font-weight: 700;
}

.cz-th-center-normal {
  text-align: center !important;
  font-weight: normal;
}

/* Zebra striping i efekt hover */
.cz-price-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

.cz-price-table tbody tr:nth-child(even) {
  background-color: #f1f1f1;
}

.cz-price-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Wyróżnienie bazowej próby (585 dla złota, 925 dla srebra) */
.cz-price-table tbody tr.cz-base-purity {
  background-color: #fff4d6; /* delikatny żółty */
}
.cz-price-table tbody tr.cz-base-purity td {
  font-weight: 700;
}

/* Status niedostępny */
.cz-unavailable {
  color: #999;
  font-style: italic;
  font-size: 13px;
  font-weight: normal
}

/* Metadane kursu */
.kurs_data_aktualizacji {
  font-size: 11px;
  font-style: italic;
  color: #666;
  padding: 5px;
}

/* Wrapper dla kursu */
#cz-kurs-wrapper {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

/* Styl dla kursu złota */
.cz-kurs-oz {
  min-height: 1.5rem;
  line-height: 1.5;
  padding: 0.5rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: 100%;
}

.cz-kurs-oz strong {
  font-weight: 700;
  color: #000;
}

/* Styl dla kursu złota i srebra w jednej linii */
.cz-kurs-oba {
  padding: 0.5rem 0;
  display: block;
  white-space: nowrap;
  overflow-x: auto;
  width: 100%;
}

.cz-kurs-oba strong {
  font-weight: 700;
  color: #000;
}

/* Wrapper dla kursu złota i srebra */
#cz-oba-kursy-wrapper {
  min-height: 2.5rem;
  display: block;
  width: 100%;
}

/* Responsywność dla średnich ekranów */
@media (max-width: 992px) {
  .cz-kurs-oba {
    white-space: normal;
    display: block;
    text-align: center;
    overflow-x: visible;
  }
  
  #cz-oba-kursy-wrapper {
    overflow-x: visible;
  }
}

/* Mobilne karty - tylko dla tabel z wieloma kolumnami */
@media (max-width: 768px) {
  .table-responsive {
    margin: 0.5rem -0.5rem;
    padding: 0 0.5rem;
  }

  /* Style kart tylko dla tabel z wieloma kolumnami (sztabki, monety, zbiorcza) */
  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) {
    border: none;
    min-width: auto;
  }

  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) thead {
    display: none;
  }

  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table),
  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) tbody,
  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) tr,
  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) td {
    display: block;
    width: 100%;
  }

  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) tr {
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
  }

  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) td {
    position: relative;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) td:last-child {
    border-bottom: none;
  }

  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    margin-bottom: 0.25rem;
    color: #000;
    text-align: center;
    font-size: 0.85rem;
  }
  
  /* Pogrubienie etykiety "Próba" w wersji mobilnej */
  .cz-price-table:not(#cz-gold-buy-wrapper .cz-price-table):not(#cz-silver-buy-wrapper .cz-price-table) td[data-label="Próba"]::before {
    font-weight: 700;
  }
  
  /* Wyłącz poziomy scroll i wymuś przycinanie */
  .table-responsive {
    overflow-x: hidden !important;
    touch-action: pan-y;
  }

  /* Upewnij się, że tabela dopasowuje się do szerokości ekranu */
  .cz-price-table {
    width: 100% !important;
    max-width: 100%;
  }
  
  /* Mobilne style dla kursu złota i srebra */
  .cz-kurs-oba {
    white-space: normal;
    display: block;
    text-align: center;
  }
  
  #cz-oba-kursy-wrapper {
    overflow-x: visible;
  }
}

