.tnpopup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.tnpopup-overlay[hidden] {
  display: none !important;
}

.tnpopup-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px 30px 30px;
  background: #fff;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.tnpopup-content {
  text-align: center;
}

.tnpopup-content > :first-child {
  margin-top: 0;
}

.tnpopup-content > :last-child {
  margin-bottom: 0;
}

.tnpopup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 1;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font: 400 34px/1 Arial, sans-serif;
  cursor: pointer;
}

.tnpopup-close:hover,
.tnpopup-close:focus {
  color: #000;
  transform: scale(1.08);
}

body.tnpopup-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .tnpopup-overlay {
    padding: 12px;
  }

  .tnpopup-dialog {
    max-height: calc(100vh - 24px);
    padding: 38px 30px 30px;
  }
}


.tnpopup-button-wrap {
  margin-top: 25px;
  text-align: center;
}

.tnpopup-button {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  background: #ff9e00;
  color: #ffffff !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.tnpopup-button:hover,
.tnpopup-button:focus {
  background: #122137;
  color: #ffffff !important;
  text-decoration: none !important;
}


.tnpopup-dismiss-button {
  display: block;
  margin: 12px auto 0;
  padding: 12px 24px;
  border: 0;
  background: #d9534f;
  color: #ffffff !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tnpopup-dismiss-button:hover,
.tnpopup-dismiss-button:focus {
  background: #b52b27;
  color: #ffffff !important;
}
