/* Popup overlay & layout (popUpTandC.js) */
.popup {
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 998;
  overflow: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  overflow: -moz-scrollbars-none;
  background: rgba(0, 0, 0, 0.6);
}

.popup::-webkit-scrollbar {
  width: 0 !important;
}

.popup__inner {
  max-width: 1000px;
  margin: 25px auto;
}

.popup__btn-close {
  position: fixed;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 30px;
  top: 45px;
  right: 10px;
  z-index: 999;
  cursor: pointer;
  padding: 0;
}

.popup__btn-close svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 996px) {
  .popup__btn-close {
    right: auto;
    left: calc(50% + 500px);
    border-radius: 0;
    width: 50px;
    height: 50px;
  }
}

.project .popup__inner {
  border: 3px solid var(--primary-color);
  border-radius: 10px;
  background: url(https://storage-asset.msi.com/event/2026/tw/disney-giftbox/images/content-grid.jpg);
  background-size: 150%;
  color: var(--primary-color);
  padding: 0;
  overflow: hidden;
}

.project .popup__content {
  background: transparent;
}

.project .popup__header {
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: clamp(20px, 1.3vw, 26px);
  font-weight: 600;
  text-align: center;
  padding: 5px 5px 8px;
  margin: 0;
}

.project .popup__header::after {
  display: none;
}

.project .popup__body {
  color: var(--primary-color);
  padding: 24px 28px 12px;
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.project .popup__body p {
  margin: 0 0 1em;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.75;
}

.project .popup__body p:last-child {
  margin-bottom: 0;
}

.project .popup__body ul {
  margin: 0.5em 0 1.25em;
  padding-left: 1.35em;
  list-style: disc;
}

.project .popup__body li {
  margin-bottom: 0.65em;
  padding-left: 0.2em;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.75;
  list-style: disc;
}

.project .popup__body li:last-child {
  margin-bottom: 0;
}

.project .popup__body.terms__body a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #f3c200;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  word-break: break-all;
  background-image: linear-gradient(to right, #f3c200, #f3c200);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 0.35s ease-in-out;
}

.project .popup__body.terms__body a:hover {
  background-size: 100% 100%;
}

.project .popup__body h5 {
  color: var(--primary-color);
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 700;
  margin: 1.25em 0 0.5em;
  text-shadow: none;
}

/* Section titles — lively accent */
.project .popup .terms__title {
  position: relative;
  display: inline-block;
  max-width: 100%;
  color: var(--primary-color);
  font-size: clamp(17px, 1.15vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.75em 0 0.85em;
  padding: 0 0 8px 14px;
  border-bottom: 2px dashed #f3c200;
}

.project .popup .terms__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 10px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f3c200 0%, #ff9f1a 100%);
}

.project .popup .terms__title:first-of-type {
  margin-top: 0.5em;
}

.project .popup .terms__lead {
  margin: 0 0 0.65em;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.75;
}

.project .popup__footer {
  padding: 2% 4% 4%;
  text-align: center;
}

.project .popup__footer button {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  font-size: clamp(20px, 1.1vw, 26px);
  font-weight: 500;
  padding: 5px 35px;
  border-radius: 30px;
  cursor: pointer;
  transition:
    color 0.3s ease-in-out,
    background-color 0.3s ease-in-out;
}

.project .popup__footer button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.project .popup__btn-close {
  background: var(--primary-color);
}

.project .popup__btn-close svg {
  fill: var(--secondary-color);
}

.project .popup__btn-close:hover {
  opacity: 0.85;
}
.project .terms-step li {
  list-style: decimal;
}
