.gsm-aviso-popup {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gsm-aviso-popup[hidden] {
  display: none !important;
}

.gsm-aviso-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.gsm-aviso-popup__dialog {
  position: relative;
  width: min(800px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  background: #fff;
  animation: gsm-aviso-fade-in 0.25s ease;
}

.gsm-aviso-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.gsm-aviso-popup__close:hover {
  background: #fff;
}

.gsm-aviso-popup__content {
  line-height: 0;
}

.gsm-aviso-popup__content img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.gsm-aviso-popup__content a {
  display: block;
}

@keyframes gsm-aviso-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 575px) {
  .gsm-aviso-popup__close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}
