:root {
  --base-spacing-unit: 1rem;
}
@keyframes slide-in {
  0% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(0);
  }
}

.dialog--info {
  position: fixed;
  z-index: 2;
  background: #b51569;
  inset: auto 0 0 auto;
  color: #fff;
  margin: 0;
  max-width: 90%;
  width: 46rem;
  border-radius: 24px 0 0 0;
  padding: 2.4rem;
  border: none;
  display: none;
  font-size: 1.6rem;
}

.dialog--info[open] {
  display: block;
  transform: translateX(120%);
  animation: slide-in 0.5s forwards;
}

.dialog__header {
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  font-size: 2rem;
}

.dialog__content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;

  p {
    &:last-of-type {
      margin-bottom: 0;
    }
  }
}
@media screen and (min-width: 768px) {
  .dialog__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.dialog__button {
  a {
    background: #fff;
    color: #b51569;
    padding: 0.75rem 1.6rem;
    border-radius: 0.4rem;
    display: inline-flex;
    white-space: nowrap;

    &::after {
      content: "";
      display: inline-block;
      width: 24px;
      height: 24px;
      background: url(/theme/img/icon-arrow-right.svg) no-repeat center center;
    }

    &:focus {
      outline: none;
      box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2);
    }
  }
}
