.trm-popup-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  padding: 24px;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  -ms-flex-pack: center;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}



.trm-popup-close.close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background-color: #0033A0;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.trm-popup-close.close::before {
  content: '\00d7';
  font-size: 24px;
  font-weight: bold;
  display: block;
  text-align: center;
  line-height: 32px;
  color: white;
}

.trm-popup-close.close:hover {
  background-color: white;
}

.trm-popup-close.close:hover::before {
  color: #0033A0;
}

.trm-popup-wrapper.active {
  display: flex;
}

.trm-popup {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 80%;
  max-width: 1100px;
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: white;
}

.trm-popup-wrapper.active .trm-popup {
  animation: trm-popup-enter 0.24s ease-out both;
}

.trm-popup-content.modal-body p+p {
	margin-top: 10px;
}

.trm-popup-content.modal-body p {
	font-weight:600;
}

.trm-popup-content.modal-body h2 {
	color:#0033A0;
}


.trm-popup-content.modal-body {
  box-sizing: border-box;
  width: 100%;
  max-height: calc(100vh - 120px);
  min-height: 0;
  padding: 36px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes trm-popup-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .trm-popup-wrapper {
    padding: 20px;
  }

  .trm-popup {
    width: 90%;
    max-height: calc(100vh - 40px);
  }

  .trm-popup-content.modal-body {
    max-height: calc(100vh - 112px);
    padding: 56px 28px 28px;
  }
}

@media (max-width: 767px) {
  .trm-popup-wrapper {
    padding: 12px;
  }

  .trm-popup {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 6px;
  }

  .trm-popup-close.close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }

  .trm-popup-close.close::before {
    line-height: 36px;
  }

  .trm-popup-content.modal-body {
    max-height: calc(100vh - 92px);
    padding: 56px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trm-popup-wrapper.active .trm-popup {
    animation: none;
  }

  .trm-popup-close.close {
    transition: none;
  }
}
