.twisto {
}

.twisto {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 8px 15px;
  min-height: 50px;
  margin-top: -5px;
  line-height: 1.4;
  font-size: 12px;
  border-radius: 8px;
  font-weight: 700;
  background-color: white;
  cursor: pointer;
  transition: background-color 250ms ease-out;
  border: 1px solid #420a87;
}

.twisto:hover {
  background-color: #fff;
}

.twisto__image {
  max-width: 80px;
}

.twisto__text {
  font-size: 16px;
  color: #420a87;
  margin-right: 15px;
}

/* Modal */
.modal__overlay {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-transition: opacity 400ms ease;
  -o-transition: opacity 400ms ease;
  transition: opacity 400ms ease;
}

.modal__overlay.is-active {
  width: 100%;
  height: 100%;
  opacity: 1;
  overflow: visible;
  visibility: visible;
}

.modal {
  position: fixed;
  z-index: 999999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  visibility: hidden;
  overflow: hidden;
  width: auto;
  height: 0;
  padding: 3rem 0 2rem;
  opacity: 0;
  -webkit-overflow-scrolling: touch;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-transition: opacity 400ms ease;
  -o-transition: opacity 400ms ease;
  transition: opacity 400ms ease;
}

.modal .twisto__image {
  margin-bottom: 40px;
  max-width: 100px;
}

.headline-subtitle {
  color: #655368;
  font-size: 16px;
  margin-bottom: 40px;
}

@media (min-width: 771px) {
  .modal {
    padding: 6rem 0 2rem;
  }
}

.modal.is-active {
  visibility: visible;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  opacity: 1;
  -webkit-transition: opacity 400ms ease;
  -o-transition: opacity 400ms ease;
  transition: opacity 400ms ease;
}

.modal.is-active .modal__box {
  position: relative;
  top: auto;
  left: auto;
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
}

.modal.modal__hidden .modal__close,
.modal.modal__hidden .modal__scroll {
  display: none;
}

.modal__scroll {
  width: 100%;
  margin: auto 1rem;
}

.modal__box {
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

@media (min-width: 576px) {
  .modal__box {
    width: 600px;
  }
}

.modal__close {
  position: absolute;
  z-index: 99;
  top: 0;
  right: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 50px;
  height: 50px;
  line-height: 50px;
  cursor: pointer;
  text-align: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.modal__close:after {
  font-family: "apollo" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  font-size: 20px;
  text-indent: 0;
  left: 50%;
  top: 50%;
  color: #c4cad5;
  transform: translate(-50%, -50%);
  content: "\e921";
}

.modal__close:focus:after,
.modal__close:hover:after {
  color: var(--color-primary);
}

.modal__body .headline-title {
  font-weight: 700;
}

.modal__body {
  padding: 6rem 3rem 2rem;
  background-color: white;
  border-radius: 8px;
}

.modal__body .txt-c {
  text-align: center;
}

/* Kontajner zoznamu */
.timeline-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px; /* upraviteľné */
}

.twisto__tooltip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  position: relative;
  font-weight: 400;
}

.twisto__tooltip:after {
  content: "\e903";
  font-weight: 400;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  font-family: "apollo";
  font-size: 18px;
  display: inline-block;
  color: #420a87;
}

@media (max-width: 480px) {
  .twisto {
    flex-wrap: wrap;
  }
  .twisto__text {
    width: 100%;
  }
}

/* Každý krok (li) */
.timeline-steps li {
  position: relative;
  padding-left: 64px; /* miesto pre kruh a čiarku */
  margin-bottom: 22px; /* medzera medzi krokmi */
  color: #655368; /* text farba */
  font-size: 16px;
  line-height: 1.4;
  min-height: 50px;
  display: flex;
  align-items: center;
  font-style: normal;
  font-weight: 400;
}

/* Číslovaná bublina */
.timeline-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #7a7a7a;
  box-sizing: border-box;
}

/* Vertikálna čiara spájajúca bubliny */
.timeline-steps li::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: -30px;
  width: 1px;
  background: #e6e6e6;
}

/* posledný prvok nemá čiarku pod sebou */
.timeline-steps li:last-child::after {
  display: none;
}

/* Responsívne - menší padding na úzkych obrazovkách */
@media (max-width: 480px) {
  .timeline-steps li {
    padding-left: 52px;
    font-size: 15px;
  }
  .timeline-steps li::before {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .timeline-steps li::after {
    left: 16px;
    top: 37px;
  }
}

/* Zľava pri produkte */

.p-image-wrapper .flags-default .flag {
  font-size: 14px;
  padding: 8px 10px;
}

@media (min-width: 768px) {
  .p-image-wrapper .flags-default .flag {
    font-size: 16px;
    padding: 10px 15px;
  }
}

/* .products-block .p-bottom .price-additional {
  display: none;
} */

.p-info-wrapper .p-final-price-wrapper.has-discount {
  border-radius: 7px;
  border: 2px solid #ea0b43;
  max-width: 170px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.p-info-wrapper .p-final-price-wrapper.has-discount .price-measure {
  display: none;
}

.p-info-wrapper .p-final-price-wrapper.has-discount .price-discount {
  display: block;
  width: 100%;
  color: white;
  text-transform: uppercase;
  background-color: #ea0b43;
  font-weight: 700;
  font-size: 16px;
  padding: 3px 2px;
  letter-spacing: 0;
  order: 0;
}

.p-info-grid .detail-price-block .detail-grid-title {
  display: none;
}

.p-info-wrapper .p-final-price-wrapper .price-standard.price-hidden {
  display: block;
}

.p-info-wrapper .p-final-price-wrapper.has-discount .price-standard {
  margin-right: 0;
  margin-top: 2px;
  order: 2;
  margin-bottom: 5px;
  font-weight: 400;
  color: #7c7e8f;
  font-size: 20px;
}

.p-info-wrapper .p-final-price-wrapper.has-discount .price-final {
  order: 1;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ea0b43;
  font-size: 24px;
}

@media (min-width: 480px) {
  .p-info-wrapper .p-final-price-wrapper.has-discount {
    max-width: 210px;
  }
  .p-info-wrapper .p-final-price-wrapper.has-discount .price-discount {
    font-size: 18px;
    letter-spacing: 0.5px;
  }
  .p-info-wrapper .p-final-price-wrapper.has-discount .price-standard {
    font-size: 22px;
  }
  .p-info-wrapper .p-final-price-wrapper.has-discount .price-final {
    font-size: 33px;
  }
}

.products-block.products .p .price.has-discount {
  border-radius: 7px;
  border: 2px solid #ea0b43;
  max-width: 140px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.products-block.products .p .price.has-discount {
  line-height: 1;
  max-width: 130px;
}

.products-block.products .p .price.has-discount .price-discount {
  display: block;
  width: 100%;
  color: white;
  text-transform: uppercase;
  background-color: #ea0b43;
  font-weight: 700;
  font-size: 16px;
  padding: 3px 2px;
  letter-spacing: 0;
  order: 0;
}

.products-block.products .p .price.has-discount .price-discount {
  font-size: 14px;
}

.products-block.products .p .price.has-discount .price-standard {
  margin-right: 0;
  order: 2;
  margin-top: 0;
  margin-bottom: 3px;
  font-weight: 400;
  color: var(--color-secondary);
  font-size: 20px;
}

.products-block.products .p .price.has-discount .price-standard span {
  margin-top: 3px;
  margin-bottom: 3px;
}

.products-block.products .p .price.has-discount .price-standard span {
  font-size: 16px;
}

.products-block.products .p .price.has-discount > strong {
  order: 1;
  font-weight: 700;
  margin-bottom: 0;
  color: #ea0b43;
  font-size: 24px;
  margin-top: 3px;
  margin-bottom: 0;
}

.products-block.products .p .price.has-discount > strong {
  font-size: 20px;
}

@media (min-width: 480px) {
  .products-block.products .p .price.has-discount {
    max-width: 170px;
  }
  .products-block.products .p .price.has-discount {
    max-width: 160px;
  }
  .products-block.products .p .price.has-discount .price-discount {
    /* letter-spacing: 0.5px; */
  }
  .products-block.products .p .price.has-discount .price-discount {
    font-size: 14px;
  }
  .products-block.products .p .price.has-discount .price-standard span {
    font-size: 16px;
  }

  .products-block.products .p .price.has-discount .price-final {
    font-size: 22px;
  }

  .products-block.products .p .price.has-discount > strong {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .products-block.products .p .price.has-discount .price-discount {
    font-size: 13px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .products-block .product-btn a,
  .products-block .product-btn .pr-action {
    max-width: 130px;
  }
  .products-block.products .p .price.has-discount .price-discount {
    font-size: 12px;
  }

  .products-block:not(.products-additional) .product .p .p-in {
    margin: 0 -15px;
  }
}

@media (min-width: 1200px) {
  .p-info-wrapper .add-to-cart {
    justify-content: space-between;
  }
  .p-info-wrapper .btn.btn-conversion,
  .p-info-wrapper a.btn.btn-conversion {
    min-width: 270px;
    text-align: center;
    justify-content: center;
  }
}

@media (min-width: 1440px) {
  .p-info-wrapper .btn.btn-conversion,
  .p-info-wrapper a.btn.btn-conversion {
    min-width: 340px;
  }
}
