.tsw-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.tsw-popup.is-active {
  display: block;
}

.tsw-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.tsw-popup__dialog {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tsw-popup__panel {
  width: min(620px, 100%);
  min-height: 560px;
  background-color: #111;
  background-size: cover;
  background-position: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tsw-popup__overlay {
  position: relative;
  min-height: 560px;
  background: rgba(0, 0, 0, 0.1);
  padding: 60px 80px;
}

.tsw-popup__close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.tsw-popup__title {
  margin: 0 0 42px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.92;
  font-weight: 900;
  text-transform: uppercase;
}

.tsw-popup__subtitle {
  margin: 0 0 26px;
  color: #e1251b;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
}

.tsw-popup__link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tsw-popup__link-icon {
  display: inline-flex;
  width: 24px;
  min-width: 24px;
  align-items: center;
  justify-content: center;
}

.tsw-popup__link-icon-wrap {
  display: inline-flex;
  width: 28px;
  min-width: 28px;
  align-items: center;
  justify-content: center;
}

.tsw-popup__link-icon-img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tsw-popup__links a.tsw-popup__link:hover,
.tsw-popup__links a.tsw-popup__link:focus {
  color: #e1251b;
}

.tsw-popup__link--disabled {
  opacity: 0.55;
  cursor: default;
  user-select: none;
}

body.tsw-popup-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .tsw-popup__overlay {
    padding: 44px 28px;
  }

  .tsw-popup__panel,
  .tsw-popup__overlay {
    min-height: 480px;
  }
}


/* Mandatory gateway: keep the selector visibly active before JS initializes. */
.tsw-popup--mandatory {
  display: block;
}

/* In mandatory mode, completely obscure the unfinished page beneath. */
.tsw-popup--mandatory .tsw-popup__backdrop {
  background: #000;
}
