.ldp-adver {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(63, 58, 54, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s ease;
  z-index: 1001;
}
.ldp-adver.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ldp-adver-cont.container {
  background: #f4efeb;
  position: relative;
  padding: 20px 20px 0 50px;
}
.ldp-adver-cont {
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* căn giữa nội dung theo chiều dọc */
  position: relative;
}

.ldp-adver-header {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* nội dung nằm bên phải */
  z-index: 1;
}
.ldp-adver-header img {
  cursor: pointer;
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
}
.ldp-adver-left {
  display: flex;
  overflow-y: auto;
  background: linear-gradient(270deg, rgba(244, 239, 235, 0) 0%, #f4efeb 100%);
}
.ldp-sale-cont-content {
  padding: 25px 0 25px 0;
}
.ldp-sale-cont-content-title--adver {
  margin: 0 20px;
}
.ldp-adver-cont-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  left: 50%;
}
.ldp-adver-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}
@media screen and (max-width: 1020px) {
  .ldp-adver-left {
    flex-direction: column-reverse;
  }
  .ldp-adver-cont.container {
    padding-top: 15px;
    margin: 20px 20px 0 20px;
  }
  .ldp-adver-cont-img {
    position: relative;
    left: 0%;
  }
  .ldp-adver-banner {
    height: auto;
  }
}
@media screen and (max-width: 992px) {
  .ldp-adver-left {
    flex-direction: column-reverse;
  }
  .ldp-adver-cont .ldp-sale-inputs-cont-padding {
    padding-bottom: 20px;
  }

  .ldp-adver-cont.container {
    margin: 30px;
    padding: 20px 20px 0 20px;
    display: flex;
    width: 100vh;
  }
  .ldp-adver-left {
    overflow-y: auto;
    flex-direction: column-reverse;
  }
  .ldp-sale-cont-content {
    margin: 0;
    padding: 10px 0 0px 0;
  }
  .ldp-adver-header {
    padding: 10px;
    top: 0;
  }
  .ldp-adver-banner {
    max-height: 300px;
    height: auto;
  }
  .ldp-sale-inputs-cont-padding {
    padding: 0 16px;
  }
  .ldp-sale-button {
    margin-bottom: 20px;
  }
  .ldp-adver-header {
    padding: 10px;
    position: absolute;
    right: 0;
    padding: 10px;
    background: #f7f7f7;
    width: fit-content;
    margin: 5px;
  }
}
@media screen and (max-width: 768px) {
  .ldp-adver-banner {
    max-height: 211px;
  }
  .ldp-sale-cont-content-title {
    font-size: 17px;
  }
  .ldp-sale-times {
    padding: 12px 24px !important;
  }
  .ldp-sale-button {
    margin-top: 12px;
  }
  .ldp-adver-header {
    top: -55px;
  }
}
@media screen and (max-width: 522px) {
  .ldp-adver-cont.container {
    height: auto;
  }
  .ldp-adver-header {
    top: 0;
  }
}
