/* Виджет подписки в ТГ -начало */

.widget-popup-root {
  position: fixed;
  left: 50%;
  right: -50%;
  top: 50%;
  z-index: 10000;
  transform: translate(-50%, -50%) scale(0.8);
  width: 100%;
  max-width: 500px;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.widget-popup-root.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.widget-popup-root__wrapper {
  position: relative;
  display: block;
  max-height: 100%;
  width: 100%;
  padding: 10px 24px 24px;
  background: #fff;
  border-radius: 30px !important;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, .1), 0 0 4px 0 rgba(0, 0, 0, .12), 0 20px 20px 0 rgba(0, 0, 0, .08);
  overflow: hidden;
  scrollbar-width: none !important;
  transition: all .25s ease-in-out;
}

.widget-popup-root__info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.widget-popup-root__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 3;
  width: 100%;
}

.widget-popup-root__img {
  display: flex;
  justify-content: center;
  max-height: 225px;
  max-width: 225px;
  overflow: hidden;
  align-items: center;
  align-self: center;
  margin-bottom: 15px;
}

.widget-popup-root__img img {
  border-radius: 8px !important;
  display: block;
  max-height: 225px;
  max-width: 100%;
  transform: rotate(12deg);
}

.widget-popup-root__title {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
  color: #000;
  text-align: center;
  display: block;
}

.widget-popup-root__text {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-align: center;
}

.widget-popup-root__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px !important;
  background-color: #c50000;
  width: 100%;
  height: 42px;
  border-radius: 15px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  max-width: 100%;
  text-align: center;
  transition: all .3s ease-in-out;
  text-decoration: none !important;
  cursor: pointer;
}

.widget-popup-root__link:hover {
  background-color: #f80000 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.widget-popup-root__close {
  position: absolute;
  right: 34px;
  top: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border-radius: 50% !important;
  cursor: pointer;
  border: none;
  outline: none;
}

.widget-popup-root__close-icon {
  display: block;
  position: relative;
  width: 16px;
  height: 16px;
}

.widget-popup-root__close-icon::after,
.widget-popup-root__close-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 16px;
  background-color: #999;
  border-radius: 10px;
  transition: all .2s ease-in-out;
}

.widget-popup-root__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.widget-popup-root__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 767.98px) {
  .widget-popup-root__title {
    font-size: 20px;
  }
}

/* Виджет подписки в ТГ - конец */