.promocode-aside {
  position: fixed;
  top: 25%;
  left: 100%;
  z-index: 100;
  transform: translate(-60px);
  transition: .3s ease-in-out;
}

.promocode-aside:not(.promocode-aside--open):hover {
  transform: translate(-75px);
}

.promocode-aside--open {
  transform: translate(-100%);
}

.promocode-aside__item {
  position: relative;
  display: flex;
  min-width: 290px;
  min-height: 96px;
  align-items: center;
  padding-left: 96px;
  border-radius: 10px;
  background-color: #99d573;
}

.promocode-aside__item::before {
  position: absolute;
  top: 0;
  left: 96px;
  width: 1px;
  height: 100%;
  border: 1px solid #b1e68f;
  content: '';
}

.promocode-aside__content {
  display: block;
  padding: 16px 14px 14px;
  background: transparent;
  border: 0;
  color: #000;
  font: inherit;
  font-size: 10px;
  line-height: 14px;
  text-align: left;
}

.promocode-aside__code-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.promocode-aside__action {
  display: block;
  border: 0;
  text-decoration: none;
}

.promocode-aside__promocode {
  display: block;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
}

.promocode-aside__copy {
  position: relative;
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  line-height: 1;
  opacity: .65;
  transition: opacity .15s ease;
}

.promocode-aside__copy:hover,
.promocode-aside__copy:focus-visible,
.promocode-aside__copy--copied {
  background: transparent;
  opacity: 1;
}

.promocode-aside__copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
}

.promocode-aside__copy::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px 8px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  content: attr(data-copied-label);
  font-size: 11px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  white-space: nowrap;
}

.promocode-aside__copy--copied::after {
  opacity: 1;
}

.promocode-aside__only-site {
  display: block;
  font-size: 8px;
  line-height: 11px;
  opacity: .7;
}

.promocode-aside__btn,
.promocode-aside__close {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  cursor: pointer;
}

.promocode-aside__btn {
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  color: #000;
  font: inherit;
}

.promocode-aside__btn-content {
  display: flex;
  width: 96px;
  height: 40%;
  padding: 14px 12px;
  flex-direction: column;
  justify-content: center;
  font-weight: 500;
  text-transform: uppercase;
  transform: rotate(-90deg) translate(0, -15%);
  transition: .3s linear;
  user-select: none;
}

.promocode-aside--open .promocode-aside__btn {
  pointer-events: none;
}

.promocode-aside--open .promocode-aside__btn-content {
  transform: translate(0);
}

.promocode-aside__btn-content span {
  font-size: 8px;
  line-height: 1.38;
  letter-spacing: .3em;
}

.promocode-aside__btn-content span:first-child {
  font-size: 12px;
  line-height: 1.42;
}

.promocode-aside__btn-content span:last-child {
  margin-top: 3px;
  font-size: 34px;
  font-weight: 600;
  line-height: .84;
  letter-spacing: normal;
  white-space: nowrap;
}

.promocode-aside__btn-content sup {
  display: inline-block;
  font-size: .6em;
  font-weight: 700;
  transform: translateY(10%);
}

.promocode-aside__close {
  width: 24px;
  height: 24px;
  background: transparent;
}

.promocode-aside__close::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fc4820;
  content: '';
  transform: translate(-50%, -50%);
  transition: .3s;
}

.promocode-aside__close:hover::before,
.promocode-aside__close:focus-visible::before {
  background: #e73f3e;
}

@media (min-width: 576px) {
  .promocode-aside__item {
    min-width: 330px;
    min-height: 135px;
    padding-left: 125px;
  }

  .promocode-aside__item::before {
    left: 127px;
  }

  .promocode-aside__btn-content {
    width: 127px;
    height: 100%;
    padding: 22px 20px;
  }

  .promocode-aside__btn-content span {
    font-size: 9.4px;
  }

  .promocode-aside__btn-content span:first-child {
    font-size: 14px;
  }

  .promocode-aside__btn-content span:last-child {
    font-size: 49px;
  }

  .promocode-aside__close {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 768px) {
  .promocode-aside__item {
    min-width: 350px;
  }

  .promocode-aside__content {
    padding: 24px 20px 22px;
    font-size: 14px;
    line-height: 20px;
  }

  .promocode-aside__promocode {
    font-size: 30px;
    line-height: 40px;
  }

  .promocode-aside__only-site {
    font-size: 12px;
    line-height: 16px;
  }
}
