:root {
  --popupBgColor: #fff;
  --popupOverlayBgColor: #3c3c3c65;
  --buttonCloseBgColor: var(--popupBgColor);
}

.popup-message {
  z-index: 13;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--popupOverlayBgColor);
  font-family: Apparat, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.popup-message .popup__content {
  position: relative;
  padding: 32px;
  font-size: 21px;
  letter-spacing: normal;
  width: max-content;
  background-color: var(--popupBgColor);
}

.popup-message .popup__content .popup__close {
  width: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: -70px;
  outline: none;
  background-color: var(--buttonCloseBgColor);
}

.popup__close i::before,
.popup__close i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: #333; 
  transform-origin: center;
}

.popup__close i::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.popup__close i::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.button_light .popup__close i::before,
.button_light .popup__close i::after {
  background-color: #666; 
}