/* =========================
   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%);
  background-color: #222;
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.3s;
  z-index: 1111999;
}

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

/* =========================
   PLAN NAME
========================= */
.plan-name {
  display: none;
  margin-right: 4px;
}

/* =========================
   Inline SVG icon wrapper
========================= */
.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;
}

/* Tekst w komórkach */
.cpt-cell-text {
  font-weight: 600;
}

/* =========================
   TABLE DEFAULTS
========================= */
.pricing-table {
  width: 100%;
  border-collapse: separate;
}

.pricing-table th,
.pricing-table td {
  vertical-align: middle;
}

/* =========================
   MOBILE: tabs + sticky "Usługi" + scroll planów
========================= */
@media (max-width: 768px) {

	
	/* Twardy reset buttonów (żeby motyw/Elementor nie mieszał) */
.cpt-mobile-tabs .cpt-mobile-tab{
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
}

.cpt-mobile-tabs .cpt-mobile-tab:focus,
.cpt-mobile-tabs .cpt-mobile-tab:active{
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}
	
	
  /* Scroll tylko na tabeli (kontener) */
  .pricing-table-container{
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important; /* tabs są NAD kontenerem */
  }

  /* Tabs (wstawiane przez JS NAD kontenerem) */
  .cpt-mobile-tabs{
    position: static;
    top: auto;
    z-index: 9999;
    display: flex;
    gap: 10px;
    padding: 20px 0;
    
    flex-wrap: wrap;         /* bez scrolla - schodzą do 2 rzędu */
    justify-content: center;
    overflow: visible;       /* NIGDY nie scrollujemy tabsów */
  }

  .cpt-mobile-tab{
    border: 1px solid rgba(255,255,255,0.55);
    background: transparent;
    color: #fff;
    padding: 8px 8px;
    border-radius: 999px!important;
    font-weight: 400;
    font-size: 8px;
    line-height: 1;
    cursor: pointer;
    white-space: wrap;
	   border-color: #FFf!important;
    color: #fff;
  }

  .cpt-mobile-tab.is-active{
    background: #FFD64D!important;
    border-color: #FFD64D!important;
    color: #10262D!important;
  }

  /* tabela */
  .pricing-table{
    border-collapse: separate;
    border-spacing: 5px;
    width: max-content;   /* umożliwia poziomy scroll */
    min-width: 100%;
  }

  .pricing-table th,
  .pricing-table td{
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.22);
    white-space: nowrap;
    background: #fff;
    color: #10262D;
  }

  /* LEWA kolumna - sticky + mała + łamie tekst */
  .pricing-table th:first-child,
  .pricing-table td:first-child{
    position: sticky;
    left: 0;
    z-index: 50;

    background: #0B6772 !important; /* ustaw swój kolor */
    color: #fff !important;
    
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;

    width: 150px !important;
    min-width: 140px !important;
    max-width: 140px !important;

   padding:0 10px!important;
    line-height: 13px!important;
    font-size: 11px;
  }

  /* PRAWE kolumny - 1 plan ma się zmieścić obok */
  .pricing-table th:not(:first-child),
  .pricing-table td:not(:first-child){
    width: 200px !important;
    min-width: 200px !important;
    max-width: 220px !important;
  }

  /* wyłącz pseudo-label i plan-name */
  .pricing-table td::before{
    content:none !important;
    display:none !important;
  }
  .plan-name{ display:none !important; }

  /* nagłówki mają być */
  .pricing-table thead{
    display: table-header-group !important;
  }

  /* tooltip na mobile */
  .tooltip .tooltip-text{
    white-space: normal;
    max-width: 240px;
  }
}