.messages {
  position: relative;

  .close-button {
    position: absolute;
    top: 18px;
    right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;

    &::before,
    &::after {
      content: '';
      display: block;
      width: 100%;
      height: 2px;
      position: absolute;
      top: calc(50% - 1px);
      transform: rotate(45deg);
      background-color: currentColor;
    }

    &::after {
      transform: rotate(-45deg);
    }
  }
}