.popup-once{
  background: transparent;
  display: none;
  max-width: 500px;
  padding: 4px;
  position: fixed;
  z-index: 999;
  width: 100%;
  opacity: 0;
  right: -100%;
  bottom: -100%;
  transition: all 2s ease-in-out;
}

.popup-once.active{
  opacity: 1;
  right: 0;
  bottom: 8px;
}

.popup-once__message {
  margin-bottom: 8px;
  line-height: 1;
  color: #808080;
  font-family: Inter;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
}

.popup-open::before {
  content: '';
  height: 100%;
  left: 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 0;
}


.popup-once .blog-page__item {
  margin: 0;
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
}
.popup-once .blog-page__item-title{
  margin-bottom: 12px;
  color: #808080;
  font-size: 12px;
  line-height: 105%;
  font-weight: 300;
}

.popup-once .blog-page__item-img{
  width: 116px;
  height: auto;
  border-right: 4px;
}
.popup-once .blog-page__item-img,
.popup-once .blog-page__item-img img{
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-radius: 4px !important;
}

.popup-once .blog-page__item-content__wrap{
  padding: 0;
  padding-left: 12px;
  padding-right: 12px;
  width: calc(100% - 116px);
}

.popup-once .blog-page__item-name{
  color: #191919;
  font-family: NeueMachina, sans-serif;
  margin-bottom: 6px;
  font-size: 16px;
  background: linear-gradient(113.99deg, #672b41 2.19%, #984161 33.57%, #e15689 64.94%, #221b1f 96.32%) !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.popup-once .blog-page__item-date{
  font-size: 12px;
}

.close-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  height: 18px;
  width: 18px;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

.close-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: #434343;
  transform-origin: center;
  transition: transform 0.5s ease, width 0.5s ease, opacity 0.5s ease;
}

/* X shape */
.close-btn span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.close-btn span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Animate when clicked */
.close-btn.active span:first-child {
  transform: translate(-50%, -50%) rotate(90deg);
}

.close-btn.active span:last-child {
  transform: translate(-50%, -50%) rotate(-90deg);
}

.close-btn.active.shrink span {
  animation: shrinkLine 0.5s forwards;
}

@keyframes shrinkLine {
  0% {
    width: 18px;
    opacity: 1;
  }
  50% {
    width: 8px;
    opacity: 1;
  }
  100% {
    width: 8px;
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .popup-once.active{
    right: 8px;
  }
  .popup-once .blog-page__item{
    padding: 12px;
  }
  .popup-once .blog-page__item-img{
    width: 130px;
  }
  .popup-once .blog-page__item-name{
    font-size: 18px;
  }
  .popup-once .blog-page__item-title{
    margin-bottom: 23px;
  }
  .popup-once .blog-page__item-content__wrap{
    padding-right: 20px;
    width: calc(100% - 130px);
  }
  .close-btn{
    right: 25px;
    top: 17px;
  }
}
