#tl-loyalty-container, #tl-loyalty-container * {
  box-sizing: border-box;
}

/* Основные параметры контейнера */
#tl-loyalty-container {
  max-width: 1088px;
  margin: 0 auto 20px;

}

/* Шрифт основного текста */
#tl-loyalty-container * {
  color: #000;
}

#tl-loyalty-container .loyalty-description {
  margin-bottom: 60px;
}

/* Шрифт заголовков карточек — базовые стили сайта для h3 */
#tl-loyalty-container .card-title {
  margin: 0;
}

/* Контейнер карт */
#tl-loyalty-container .cards-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto;
}

#tl-loyalty-container .card {
  display: flex;
  /*flex: 0 0 326px;*/
  border-radius: 20px;
  text-align: left;
  background-color: transparent;
  border: 0;
  width: 100%;
}

#tl-loyalty-container .card-img {
  width: unset;
}

#tl-loyalty-container .card:nth-child(-n+2) .card-img img {
  box-shadow: 2px 2px 12px 0px #00000040;
  border-radius: 20px;
}

#tl-loyalty-container .card-img img {
  display: block;
}

/* Текст карточки */
#tl-loyalty-container .card-text-container {
  display: flex;
  border-top: none;
}

#tl-loyalty-container .card-text-inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 15px 20px;
  padding: 0;
}

#tl-loyalty-container .card-title-container {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  align-items: center;
}

#tl-loyalty-container .card-discount {
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

#tl-loyalty-container .card-discount-amount {
  color: #747E86;
}

#tl-loyalty-container .card-description-container {
  margin-top: 19px;
}

#tl-loyalty-container .card-description {
  margin: 0 0 0.5em 0;
  padding: 0 0 0 16px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  position: relative;
}

#tl-loyalty-container .card-description .bold {
  font-weight: 700;
  color: #58822A;
}

#tl-loyalty-container .card-description::before {
  content: '';
  position: absolute;
  top: 1em;
  left: 4px;
  background: var(--green);
  width: 6px;
  height: 6px;
  margin: -4.5px -3px;
  border-radius: 1px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

#tl-loyalty-container .card-description-bold {
  font-weight: 700;
}

#tl-loyalty-container .text-after-cards {
  margin-top: 70px;
  padding-bottom: 10px;

  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;

}

#tl-loyalty-container .text-after-cards h2 {
  text-align: left;
}

#tl-loyalty-container .text-after-cards ul {
  margin: 0 0 1em 0;
  padding: 0;
  list-style: none;
}

#tl-loyalty-container .text-after-cards ul li {
  position: relative;
  margin: 0 0 0.5em 0;
  padding: 0 0 0 16px;
  list-style: none;
}

#tl-loyalty-container .text-after-cards ul li:before {
  content: '';
  display: block;
  position: absolute;
  top: 1em;
  left: 4px;
  background: var(--green);
  width: 6px;
  height: 6px;
  margin: -4.5px -3px;
  border-radius: 1px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

#tl-loyalty-container .text-after-cards .bold {
  font-weight: 700;
}

@media (max-width: 1065px) {
  #tl-loyalty-container {
    padding: 0 5px;
  }
  #tl-loyalty-container .cards-container {
    gap: 16px;
  }
  #tl-loyalty-container .card-img svg,
  #tl-loyalty-container .card-img img {
    width: calc(326px * 0.85);
    height: calc(204px * 0.85);
  }
}
@media (max-width: 907px) {
  #tl-loyalty-container .cards-container {
    gap: 30px;
  }
  #tl-loyalty-container .card {
    flex-direction: row;
  }
  #tl-loyalty-container .card-img svg,
  #tl-loyalty-container .card-img img {
    width: 326px;
    height: 204px;
  }
}
@media (max-width: 665px) {
  #tl-loyalty-container .card {
    flex-direction: column;
    width: 326px;
  }
}
@media (max-width: 380px) {
  #tl-loyalty-container .card-img svg,
  #tl-loyalty-container .card-img img {
    width: calc(326px * 0.85);
    height: calc(204px * 0.85);
  }
  #tl-loyalty-container .card-text-container {
    width: calc(326px * 0.85);
  }
}

.tl-btn-loyalty {
  display: block;
  margin: 44px 0;
  max-width: 410px;
  width: 100%;
  border: 0;

  padding: 17px 24px;
  background: #75A434;
  border-radius: 4px;

  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-align: center;

  cursor: pointer;
  text-decoration: none !important;
  color: #fff !important;
}

.tl-btn-loyalty:hover {
  background: #86BA3E;
}

.tl-guest-popup[hidden] {
  display: none !important;
}

.tl-guest-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.tl-guest-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.tl-guest-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.tl-guest-popup__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
  opacity: 0.65;
}

.tl-guest-popup__close:hover {
  opacity: 1;
}

html.tl-guest-popup-open,
html.tl-guest-popup-open body.tl-guest-popup-open {
  overflow: hidden;
}

body.tl-guest-popup-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

#tl-guest-account {
  width: 100%;
  margin: 0;
  min-height: 0;
}

#tl-guest-account > * {
  max-width: 100%;
}

@media only screen and (max-width: 767px) {
  .tl-guest-popup {
    padding: 8px;
  }

  .tl-guest-popup__dialog {
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
} 