/* Moja site / portal announcement popup */
.moja-site-popup .modal-dialog {
  max-width: 560px;
  margin: 1.25rem auto;
}

.moja-site-popup .modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(58, 159, 212, 0.28);
  background: #fff;
}

.moja-site-popup .modal-header {
  border: 0;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(135deg, #3a9fd4 0%, #6bb8e8 55%, #b7dbf5 100%);
  color: #fff;
  align-items: center;
}

.moja-site-popup .moja-popup-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.moja-site-popup .moja-popup-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.moja-site-popup .modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  word-break: break-word;
}

.moja-site-popup .moja-popup-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.moja-site-popup .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.9;
  box-shadow: none;
}

.moja-site-popup .btn-close:hover {
  opacity: 1;
}

.moja-site-popup .modal-body {
  padding: 1.4rem 1.45rem 1.1rem;
  color: #404040;
  font-size: 0.97rem;
  line-height: 1.7;
  max-height: min(55vh, 420px);
  overflow-y: auto;
  background:
    linear-gradient(180deg, #eaf6fd 0%, #ffffff 72px);
}

.moja-site-popup .modal-body p:last-child {
  margin-bottom: 0;
}

.moja-site-popup .modal-body h1,
.moja-site-popup .modal-body h2,
.moja-site-popup .modal-body h3,
.moja-site-popup .modal-body h4,
.moja-site-popup .modal-body strong,
.moja-site-popup .modal-body b {
  color: #3a9fd4;
}

.moja-site-popup .modal-body a {
  color: #3a9fd4;
  font-weight: 600;
  text-decoration: underline;
}

.moja-site-popup .modal-footer {
  border: 0;
  padding: 0.85rem 1.35rem 1.25rem;
  background: #fff;
  justify-content: center;
}

.moja-site-popup .moja-popup-close {
  min-width: 140px;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3a9fd4 0%, #6bb8e8 100%);
  box-shadow: 0 8px 20px rgba(58, 159, 212, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.moja-site-popup .moja-popup-close:hover,
.moja-site-popup .moja-popup-close:focus {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(58, 159, 212, 0.42);
}

.moja-site-popup .modal-dialog-centered {
  min-height: calc(100% - 2.5rem);
}

@media (max-width: 576px) {
  .moja-site-popup .modal-dialog {
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .moja-site-popup .modal-body {
    max-height: 50vh;
  }
}
