.hm8 {
  container: hm8/inline-size;
}

.hm8__wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 25rem;
  overflow: hidden;
}

@media (width <= 1200px) {
  .hm8__wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@container hm8 (width <= 393px) {
  .hm8__wrapper {
    grid-template-columns: max-content 1fr;
  }
}

.hm8__left {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: flex-end;
  gap: 1rem;
  margin: 0 2.5rem 0 0;
  font-size: 1.5rem;
}

@media (width <= 850px) {
  .hm8__left {
    gap: 0.625rem;
    margin: 0;
    font-size: 0.75rem;
  }
}

.hm8__left > div {
  max-width: max-content;
  padding: 0.4375rem 1.125rem;
  border-radius: 1rem;
}

@media (width <= 850px) {
  .hm8__left > div {
    padding: 0.375rem 0.75rem;
  }
}

.hm8__left > div:nth-of-type(1) {
  margin: 0 2.5rem 0 0;
}

.hm8__left > div:nth-of-type(2) {
  margin: 0 1.25rem 0 0;
}

@container hm8 (width < 1495px) {
  .hm8__left > div:nth-of-type(2) {
    display: grid;
  }
}

.hm8__left > div:nth-of-type(2) > span {
  display: inline-flex;
  gap: 0.25rem;
}

@container hm8 ((width > 1145px) and (width < 1251px)) or (width <= 393px) {
  .hm8__left > div:nth-of-type(2) > span {
    display: contents;
  }
}

.hm8__left > img {
  margin: 0 0.375rem 0 0;
}

@media (width > 850px) {
  .hm8__left > img {
    position: absolute;
    bottom: 2.5rem;
  }
}

@media (width <= 850px) {
  .hm8__left > img {
    max-width: 120px !important;
  }
}

.hm8__img {
  align-self: flex-end;
  margin: 0 -12.5rem 0 0;
}

@media (width > 1200px) {
  .hm8__img {
    position: relative;
  }
}

@media (width <= 850px) {
  .hm8__img {
    max-width: 320px;
  }
}

@container hm8 (width <= 393px) {
  .hm8__img {
    margin: 0 -12.5rem 0 -1.25rem;
  }
}

.hm8__img:before {
  content: "";
  position: absolute;
  top: -140px;
  width: 2000px;
  height: 1800px;
  background: white;
  border-radius: 50%;
  box-shadow: -40px 40px 60px -10px rgba(0, 0, 0, 0.15);
  transform: rotate(45deg);
  z-index: -1;
}

@media (width <= 1200px) {
  .hm8__img:before {
    top: 200px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 100vw;
    height: 300px;
    box-shadow: 0 100px 60px -90px rgba(0, 0, 0, 0.15);
  }
}

@media (width <= 850px) {
  .hm8__img:before {
    top: 160px;
  }
}

.hm8__right {
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0 5rem 0 0;
}

@media (width <= 1200px) {
  .hm8__right {
    grid-column: span 2;
    margin: 0 0 2rem;
    order: -1;
    z-index: 1;
  }
}

@media (width <= 850px) {
  .hm8__right {
    margin: 0;
  }
}

@container hm8 (width <= 393px) {
  .hm8__right > img {
    max-width: 240px !important;
  }
}

.hm8__claim {
  max-width: max-content;
  margin: 1rem 0 0;
  padding: 0 1.5rem;
  border-radius: 1rem;
  font-size: 1.5625rem;
}

@container hm8 (width <= 393px) {
  .hm8__claim {
    font-size: 1.125rem;
  }
}

.hm8__gifts {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  max-width: max-content;
  margin: 2.5rem 0 0;
  padding: 0.375rem 1.25rem 0.125rem;
  border-radius: 2.375rem;
  background: #f4f4f4;
}

@media (width <= 850px) {
  .hm8__gifts {
    margin: 0 -25%;
    transform: scale(0.75);
  }
}

.hm8__gifts .plus {
  margin: 0 0.75rem 0 1.25rem;
  font-size: 3.25rem;
}
