.popup {
  width: 100%;
  height: 100%;
  background: rgba(0, 33, 55, 0.55);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: none;
  color: #464646;
  backdrop-filter: blur(8px);
}
.popup__heading {
  font-family: "futura-100-thai", var(--MSIBodyFont);
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  background: linear-gradient(90deg, #002137 0%, #5b86a5 100%);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: sticky;
  padding: 14px 44px 14px 16px;
  top: 0;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 33, 55, 0.18);
  z-index: 2;
}
@media (min-width: 996px) {
  .popup__heading {
    padding: 16px 48px 16px 24px;
  }
}
.popup__area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #d9e9f9 0%, #fff 100%);
  border: 1px solid rgba(0, 33, 55, 0.15);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 33, 55, 0.22);
  width: 94%;
  max-width: 1280px;
  height: auto;
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
}
@media (min-width: 996px) {
  .popup__area {
    width: 90%;
    max-height: 90vh;
  }
}
.popup__area::-webkit-scrollbar {
  width: 6px;
  background-color: #d9e9f9;
}
.popup__area::-webkit-scrollbar-thumb {
  background-color: rgba(0, 33, 55, 0.35);
  border-radius: 3px;
}
.popup__area::-webkit-scrollbar-track {
  background-color: rgba(0, 33, 55, 0.06);
}
.popup__content {
  text-align: left;
  font-family: "futura-100-thai", var(--MSIBodyFont);
  font-size: clamp(13px, 3.2vw, 16px);
  line-height: 1.6;
  color: #464646;
  padding: 14px 14px 20px;
}
@media (min-width: 996px) {
  .popup__content {
    padding: 30px 50px 40px;
  }
}
.popup__table-wrap {
  overflow-x: visible;
  margin: 0;
}
.popup__table {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
}
.popup__table thead {
  display: none;
}
.popup__table tbody {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}
@media (min-width: 576px) {
  .popup__table tbody {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (min-width: 996px) {
  .popup__table tbody {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.popup__table tr {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(0, 33, 55, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 33, 55, 0.06);
}
.popup__table th,
.popup__table td {
  border: none;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  box-sizing: border-box;
}
.popup__table th {
  background: #002137;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.popup__table td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(0, 33, 55, 0.08);
}
.popup__table td::before {
  content: attr(data-label);
  flex: 1 1 auto;
  max-width: 55%;
  font-size: 12px;
  font-weight: 700;
  color: #7a7a7a;
  line-height: 1.3;
}
.popup__table td:last-child {
  border-bottom: none;
}
.popup__table-img {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 12px;
  background: transparent;
}
.popup__table-img::before {
  display: none;
}
.popup__table-img img {
  display: block;
  width: 96px;
  height: 96px;
  max-width: none;
  margin: 0;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
@media (min-width: 996px) {
  .popup__table-img img {
    width: 110px;
    height: 110px;
  }
}
.popup__table-name {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #464646;
}
@media (min-width: 996px) {
  .popup__table-name {
    font-size: 14px;
  }
}
.popup__table-center {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

.popup .popup-close,
.popup .popup__close {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 16px;
  margin: auto 0;
  transform: rotate(0deg);
  transform-origin: center center;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
  border-radius: 100%;
  background: transparent;
  border: solid 2px #fff;
}
.popup .popup-close::after, .popup .popup-close::before,
.popup .popup__close::after,
.popup .popup__close::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  height: 2px;
  width: 10px;
  border-radius: 30px;
  background: #fff;
  transform: rotate(45deg);
}
.popup .popup-close::after,
.popup .popup__close::after {
  transform: rotate(-45deg);
}
@media (min-width: 996px) {
  .popup .popup-close,
  .popup .popup__close {
    width: 36px;
    height: 36px;
    right: 24px;
  }
  .popup .popup-close::after, .popup .popup-close::before,
  .popup .popup__close::after,
  .popup .popup__close::before {
    top: 14px;
    left: 6px;
    height: 2px;
    width: 20px;
  }
}
.popup .popup-close:hover,
.popup .popup__close:hover {
  transform: rotate(180deg);
  background: #fff;
  text-decoration: none;
  border-color: #fff;
  opacity: 1;
}
.popup .popup-close:hover::after, .popup .popup-close:hover::before,
.popup .popup__close:hover::after,
.popup .popup__close:hover::before {
  background: #002137;
}

.popup__content a {
  color: #e40046;
  text-decoration: underline;
  word-break: break-word;
}
.popup__content a:hover {
  color: #c1003a;
}
.popup__content strong,
.popup__content b {
  color: #002137;
}
.popup__content .popRedeem {
  text-align: center;
}
.popup__content .popRedeem__item {
  position: relative;
  margin: 24px 0;
  font-size: clamp(15px, 1.6vw, 18px);
}
.popup__content .popRedeem__item h4 {
  margin: 0 0 8px;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.45;
  color: #0f3d5c;
}
.popup__content .popRedeem__item p {
  margin: 6px 0;
  font-size: 0.9em;
  line-height: 1.5;
  color: #7a7a7a;
}
.popup__content .popRedeem__item span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 15px;
  border: 1px solid rgba(0, 33, 55, 0.12);
  color: #464646;
  font-weight: 700;
  border-radius: 20px;
  background: #fff;
}
.popup__content .popRedeem .text__note {
  margin-top: 20px;
  font-size: 0.75em;
  line-height: 1.5;
  text-align: left;
  color: #7a7a7a;
}
.popup__content .popTC {
  position: relative;
}
.popup__content .popTC p {
  margin: 0 0 12px;
  line-height: 1.55;
  color: #464646;
}
.popup__content .popTC__subtitle {
  margin: 28px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  text-align: center;
  color: #0f3d5c;
}
@media (min-width: 996px) {
  .popup__content .popTC__subtitle {
    margin-top: 36px;
    text-align: left;
  }
}
.popup__content .popTC__line {
  width: 100%;
  height: 1px;
  margin: 6px auto 16px;
  background: rgba(0, 33, 55, 0.15);
}
.popup__content .popTC ul,
.popup__content .popTC ol {
  margin: 8px 0 12px 0em;
  padding-left: 1.2em;
}
.popup__content .popTC ul li,
.popup__content .popTC ol li {
  display: list-item;
  margin: 8px 0;
  line-height: 1.55;
  color: #464646;
}
.popup__content .popTC ul.lower-roman {
  list-style: lower-roman;
}
.popup__content .popTC ul.lower-roman li {
  list-style: lower-roman;
}
.popup__content .popTC ul.discStyle {
  list-style: disc;
}
.popup__content .popTC ul.discStyle li {
  list-style: disc;
}
.popup__content .popTC ol.lower-alpha,
.popup__content .popTC ul .lower-alpha {
  list-style: lower-alpha;
}
.popup__content .popTC ol.lower-alpha li,
.popup__content .popTC ul .lower-alpha li {
  list-style: lower-alpha;
}
.popup__content .popTC ol {
  list-style: decimal;
}
.popup__content .popTC ol li {
  list-style: decimal;
}
.popup__content .popTC__table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 16px;
  -webkit-overflow-scrolling: touch;
}
.popup__content .popTC__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(12px, 1.5vw, 14px);
  line-height: 1.45;
  color: #464646;
}
.popup__content .popTC__table th,
.popup__content .popTC__table td {
  border: 1px solid rgba(0, 33, 55, 0.15);
  padding: 10px 12px;
  vertical-align: middle;
  text-align: left;
  word-break: break-word;
}
.popup__content .popTC__table thead th {
  background: #002137;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.popup__content .popTC__table tbody th {
  background: rgba(217, 233, 249, 0.85);
  color: #0f3d5c;
  font-weight: 700;
  width: 22%;
  vertical-align: middle;
}
.popup__content .popTC__table td {
  background: #fff;
}
.popup__content .popTC__table td > ul:only-child {
  margin: 0;
}
.popup__content .popTC__table td ul {
  margin: 6px 0 0;
  padding-left: 1.1em;
  list-style: disc;
}
.popup__content .popTC__table td ul li {
  margin: 2px 0;
  list-style: disc;
}

.terms__wrapper {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 24px;
}
.terms__wrapper .tc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  padding: 12px 28px;
  margin: 5px;
  background: #e40046;
  border: 2px solid #e40046;
  border-radius: 50px;
  text-align: center;
  font-family: "futura-100-thai", var(--MSIBodyFont);
  font-size: 14px;
  width: auto;
  font-weight: 700;
  margin-top: 16px;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.terms__wrapper .tc__btn:hover {
  cursor: pointer;
  text-decoration: none;
  background: #c1003a;
  border-color: #c1003a;
  color: #fff;
  opacity: 0.95;
}
.terms__wrapper .terms__note {
  font-size: 14px;
  color: #7a7a7a;
  text-align: center;
}

.popup--shop .popup__area {
  max-width: 720px;
  background: #fff;
}
.popup--shop .popup__content {
  padding: 20px 16px 24px;
}
@media (min-width: 996px) {
  .popup--shop .popup__content {
    padding: 28px 32px 36px;
  }
}

.popup__shops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 576px) {
  .popup__shops {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
.popup__shops > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popup__shop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 300/206;
  padding: 14px 16px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 33, 55, 0.12);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.popup__shop img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}
.popup__shop:hover {
  box-shadow: 0 6px 22px rgba(0, 33, 55, 0.18);
  transform: translateY(-2px);
  text-decoration: none;
}
