/* ========================================= */
/* CUTberry Pricing Table - Theme Reset      */
/* (Hello / Twenty Twenty 2024/2025 / others)*/
/* ========================================= */

.pricing-table-container{
  width: 100%;
  max-width: 100%;
}

/* Upewniamy się, że tabela ma przewidywalną szerokość */
.pricing-table-container .pricing-table{
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: separate !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Reset motywów: td/th bardzo często mają border/box-shadow/padding */
.pricing-table-container .pricing-table th,
.pricing-table-container .pricing-table td{
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  text-decoration: none !important;

  /* Twoja kontrola typografii w komórkach */
  line-height: 1.4 !important;
  padding: 12px 14px !important;
  vertical-align: middle !important;

  /* żeby długie rzeczy nie rozwalały */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Wyrównanie - pierwsza kolumna lewo, reszta center (czytelny układ) */
.pricing-table-container .pricing-table th:first-child,
.pricing-table-container .pricing-table td:first-child{
  text-align: left !important;
}
.pricing-table-container .pricing-table th:not(:first-child),
.pricing-table-container .pricing-table td:not(:first-child){
  text-align: center !important;
}

/* linia pod headerem */
.pricing-table-container .pricing-table thead th{
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.12) !important;
}

/* linie w body */
.pricing-table-container .pricing-table tbody td{
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08) !important;
}

/* bez linii pod ostatnim wierszem */
.pricing-table-container .pricing-table tbody tr:last-child td{
  box-shadow: none !important;
}





/* ============================= */
/* TOOLTIP */
/* ============================= */

.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 5px;
  cursor: pointer;
  z-index: 99999;
}

.tooltip img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 4px;
  white-space: wrap;
  transition: opacity 0.3s;
  z-index: 1111999;
  width:200px;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ============================= */
/* IKONY I TEKST */
/* ============================= */

.plan-name {
  display: none;
  margin-right: 4px;
}

.cpt-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.cpt-svg-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.cpt-cell-text{
  font-weight: 600;
}

/* ============================= */
/* ZEBRA (TYLKO GDY WŁĄCZONA) */
/* ============================= */

.pricing-table-container.cpt-zebra-on tbody tr:nth-child(odd) {
  background: var(--cpt-zebra-odd);
}

.pricing-table-container.cpt-zebra-on tbody tr:nth-child(even) {
  background: var(--cpt-zebra-even);
}

/* ============================= */
/* FOOTER (OSTATNI WIERSZ) */
/* ============================= */

.pricing-table tr.cpt-footer-row td {
  font-weight: 600;
}

/* ===================================== */
/* RESET global border z Hello Elementor */
/* ===================================== */

.pricing-table-container .pricing-table,
.pricing-table-container .pricing-table th,
.pricing-table-container .pricing-table td{
  border: none !important;
}

/* ===================================== */
/* LINIE POZIOME - desktop */
/* ===================================== */

/* ===================================== */
/* 1) ZABIJ global siatkę Hello Elementor */
/* ===================================== */
.pricing-table-container .pricing-table,
.pricing-table-container .pricing-table th,
.pricing-table-container .pricing-table td{
  border: none !important;
}

/* ===================================== */
/* 2) LINIE POZIOME (bez pionowych) */
/*    rysujemy "dolną kreskę" box-shadow */
/* ===================================== */

/* nagłówki - linia pod thead */
.pricing-table-container .pricing-table thead th{
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.18);
}

/* body - linie między wierszami */
.pricing-table-container .pricing-table tbody td{
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.10);
}

/* bez linii pod ostatnim wierszem */
.pricing-table-container .pricing-table tbody tr:last-child td{
  box-shadow: none;
}






/* ===================================== */
/* 3) MOBILE - masz display:block na td, */
/*    więc linie dalej będą działać */
/* ===================================== */
@media screen and (max-width: 768px){
  /* u Ciebie było border-bottom: 1px solid #eee; - wyłączamy */
  .pricing-table-container .pricing-table td{
    border-bottom: none !important;
  }

 
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media screen and (max-width: 768px) {

  

  
  /* Ukryj nagłówki */
  .pricing-table thead tr:first-child {
    display: none;
  }

  /* karta/wiersz */
  .pricing-table tr {
    display: block;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: visible !important;
  }

  /* komórki */
  .pricing-table td {
    display: block;
    padding: 12px;
    border-bottom: 1px solid #eee;
    position: relative;
    height:auto!important;
  }

  /* wyłącz label z data-label */
  .pricing-table td::before {
    content: none !important;
    display: none !important;
  }

  /* feature cell */
  .pricing-table td:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }

  /* plan-name jako nagłówek komórki */
  .plan-name,
  .pricing-table td .plan-name {
    display: block !important;
    font-weight: 700;
    margin: 0 0 8px 0 !important;
    opacity: 0.9;
  }

  .pricing-table td:not(:first-child) {
    text-align: left;
  }

  .cpt-svg-icon {
    margin-top: 2px;
  }

  .cpt-cell-text {
    display: inline-block;
    margin-top: 2px;
  }

  /* footer mobile */
  .pricing-table tr.cpt-footer-row td {
    margin: 10px;
    padding: 20px;
  }
}