.pricelist {
  max-width: 100%;
  margin: 1rem auto;
}

.pricelist-item {}

.pricelist-header {
  margin: 0;
  padding: 3rem 0;
  border-bottom: 1px solid #D5F1F1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  line-height: 1.2;
}

.pricelist-title {
  display: block;
}

.pricelist-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pricelist-link {
  margin: 0rem 1.5rem 0rem 0rem;
  font-size: 1.5rem;
  font-weight: 100;
  color: #2CB9BB;
  white-space: nowrap;
}

.icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  background: #2CB9BB;
  transition: transform 0.3s ease;
}

.icon::before {
  width: 20px;
  height: 2px;
  top: 9px;
  left: 0;
}

.icon::after {
  width: 2px;
  height: 20px;
  left: 9px;
  top: 0;
}

.pricelist-header.active .icon::after {
  transform: scaleY(0);
}

.pricelist-content {
  height: 0;
  overflow: hidden;
  transition: max-height .5s ease, padding .5s ease;
}

.pricelist-inner {
  padding-bottom: 1.5rem;
}

.pricelist-inner p {
  margin: 0rem 1.5rem 0rem 1.5rem;
}


/* =========================
   WRAP
========================= */

.p-pricing-wrap {
  max-width: 100%;
  margin: 20px auto;
}


/* =========================
   SCROLL WRAPPER
========================= */

.p-pricing-scroll {
  overflow-x: auto;
  overflow-y: hidden;

  border: 1px solid #d5f1f1;
  border-radius: 3rem;
  position: relative;
}


/* =========================
   TABLE GRID
========================= */

.p-pricing-table {
  display: grid;
  grid-template-columns: 240px repeat(5, minmax(160px, 1fr));
  min-width: max-content;
}


/* dynamic columns */

.p-pricing-table.cols-2 {
  grid-template-columns: 240px repeat(1, minmax(160px, 1fr));
}

.p-pricing-table.cols-3 {
  grid-template-columns: 240px repeat(2, minmax(160px, 1fr));
}

.p-pricing-table.cols-4 {
  grid-template-columns: 240px repeat(3, minmax(160px, 1fr));
}

.p-pricing-table.cols-5 {
  grid-template-columns: 240px repeat(4, minmax(160px, 1fr));
}

.p-pricing-table.cols-6 {
  grid-template-columns: 240px repeat(5, minmax(160px, 1fr));
}


/* =========================
   ROWS
========================= */

.p-row {
  display: contents;
}


/* =========================
   CELLS
========================= */

.p-cell {

  padding: 12px;

  border-bottom: 1px solid #d5f1f1;
  border-right: 1px solid #d5f1f1;

  display: flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  min-height: 48px;
  min-width: 0;
}


.p-row .p-cell:last-child {
  border-right: none;
}


.p-pricing-table .p-row:last-child .p-cell {
  border-bottom: none;
}


/* =========================
   HEADER STICKY
========================= */

.p-header .p-cell {

  position: sticky;
  top: 0;
  z-index: 10;

  background: #0f65e6;
  font-weight: bold;
  color: #f9fdfe;
  border: #0f65e6 1px solid !important;

}


/* =========================
   FIRST COLUMN STICKY
========================= */

.p-row .p-cell:first-child {

  position: sticky;
  left: 0;

  width: 240px;
  min-width: 240px;
  max-width: 240px;

  z-index: 20;

  background: #fff;

}


.p-header .p-cell:first-child {

  z-index: 30;
  background: #0f65e6;
  font-weight: bold;
  color: #f9fdfe;
  border: #0f65e6 1px solid !important;

}


/* =========================
   LABEL
========================= */

.p-label {

  display: flex;
  justify-content: space-between;
  gap: 8px;

  font-weight: bold;

}


/* =========================
   INFO ICON
========================= */

.p-info {

  width: 22px;
  height: 22px;

  display: inline-flex;

  justify-content: center;
  align-items: center;

  border-radius: 50%;

  background: #f08205;
  color: #f9fdfe;

  font-size: 1.5rem;

  cursor: pointer;

  flex-shrink: 0;
  margin-left: auto;

}


/* =========================
   POPOVER
========================= */

.p-popover-global {

  position: absolute;

  background: #ffe2c2;
  color: #09171a;

  padding: 14px;

  border-radius: 8px;

  width: 240px;

  font-size: 13px;
  line-height: 1.4;

  z-index: 99999;

  opacity: 0;

  transform: translateY(5px);

  transition: 0.15s;

}


.p-popover-global.p-active {

  opacity: 1;
  transform: translateY(0);

}


.p-popover-close {

  position: absolute;

  top: 6px;
  right: 8px;

  width: 28px;
  height: 28px;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 2rem;

  font-weight: bold;

  cursor: pointer;

}


/* =========================
   SCROLL HINT
========================= */

.scroll-hint {

  display: none;

  text-align: center;

  font-size: 1.2rem;

  color: #2cb9bb;

  margin-top: 12px;

}


.p-pricing-scroll.is-overflowing~.scroll-hint {

  display: block;

}


.scroll-hint::after {

  content: " → → →";

  display: inline-block;

  animation: swipeArrow 1.2s infinite ease-in-out;

}


@keyframes swipeArrow {

  0% {
    transform: translateX(0);
    opacity: 0.5;
  }

  50% {
    transform: translateX(6px);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 0.5;
  }

}


/* =========================
   PRICE CONTENT SWITCH
========================= */

.price-komplet,
.price-samostatne {
  display: none;
}


body.mode-komplet .price-komplet {
  display: block;
}


body.mode-komplet .price-samostatne {
  display: none;
}


body.mode-samostatne .price-komplet {
  display: none;
}


body.mode-samostatne .price-samostatne {
  display: block;
}



/* =========================
   SERVIS CONTENT SWITCH
========================= */


.servis-content {
  display: none;
}


body.servis-lyze .servis-content-lyze {
  display: block;
}


body.servis-bezky .servis-content-bezky {
  display: block;
}


body.servis-snowboardy .servis-content-snowboardy {
  display: block;
}


body.servis-bootfitting .servis-content-bootfitting {
  display: block;
}



/* =========================
   SWITCH WRAPPER
========================= */


.price-switch-wrapper {

  width: 100%;

  display: flex;

  justify-content: center;

  margin-bottom: 20px;

}



/* =========================
   SWITCH DESIGN
========================= */


.price-switch,
.servis-switch {

  display: inline-flex;

  background: #f9fdfe;

  border: 1px solid #d5f1f1;

  border-radius: 999px;

  padding: 4px;

  gap: 4px;

}



/* =========================
   BUTTONS
========================= */


.price-switch button,
.servis-switch button {

  border: none;

  background: transparent;

  padding: 10px 18px;

  border-radius: 999px;

  cursor: pointer;

  font-size: 14px;

  font-weight: 600;

  color: #0f172a;

  transition: all .2s ease;

}



.price-switch button:hover,
.servis-switch button:hover {

  background: #d5f1f1;

}



.price-switch button.active,
.servis-switch button.active {

  background: #f08205;

  color: #f9fdfe;

  box-shadow: 0 4px 12px #ffe2c2;

}



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


@media(max-width:600px) {

  .price-switch,
  .servis-switch {

    width: 100%;

    justify-content: space-between;

  }


  .price-switch button,
  .servis-switch button {

    flex: 1;

    text-align: center;

  }

}

/* =========================
   PRICE TABLE HEADERS
========================= */


/* základ všech hlaviček */
.p-header .p-cell {
  font-weight: bold;
}



/* =========================
   KOMPLETY
========================= */

.p-header.header-komplet .p-cell {
  background: #0f65e6;
      border: solid 1px #0f65e6 !important;
}



/* =========================
   SAMOSTATNĚ
========================= */

.p-header.header-samostatne .p-cell {
  background: #2cb9bb;
    border: solid 1px #2cb9bb !important;
}



/* =========================
   SERVIS
========================= */

.p-header.header-lyze .p-cell {
  background: #0f65e6;
      border: solid 1px #0f65e6 !important;
}


.p-header.header-bezky .p-cell {
  background: #2cb9bb;
      border: solid 1px #2cb9bb !important;
}


.p-header.header-snowboardy .p-cell {
  background: #f08205;
      border: solid 1px #f08205 !important;
}


.p-header.header-bootfitting .p-cell {
  background: #0f65e6;
      border: solid 1px #0f65e6 !important;
}

/* ===================================
   PRICE PILLS
=================================== */

.cell-pill {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 95px;

  padding: 0.5rem 1.5rem;

  border-radius: 999px;

  transition: .2s;
}


/* 2. sloupec */

.p-row .p-cell:nth-child(2) .cell-pill,
.p-header .p-cell:nth-child(2) .cell-pill {

  background: #0f65e6;
  color: #f9fdfe;

}


/* 3. sloupec */

.p-row .p-cell:nth-child(3) .cell-pill,
.p-header .p-cell:nth-child(3) .cell-pill {

  background: #2cb9bb;
  color: #f9fdfe;


}


/* 4. sloupec */

.p-row .p-cell:nth-child(4) .cell-pill,
.p-header .p-cell:nth-child(4) .cell-pill {

  background: #c9e9ff;
  color: #0d2328;

}


/* 5. sloupec */

.p-row .p-cell:nth-child(5) .cell-pill,
.p-header .p-cell:nth-child(5) .cell-pill {

  background: #d5f1f1;
  color: #0d2328;

}


/* 6. sloupec */

.p-row .p-cell:nth-child(6) .cell-pill,
.p-header .p-cell:nth-child(6) .cell-pill {

  background: #fff;

  border: 1px solid #0f65e6;

  color: #0f65e6;

}