/* Eligible Model + Buy Now popup
   extracted from css/main.css, css/style.css, css/buynow.css */

/* --- layout: eligible (main.css) --- */

.eligible {
  position: relative;
  padding: 0 0 5%;

}

.eligible::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(https://storage-asset.msi.com/event/2026/cnd/nivalis-nights/images/bay.jpg);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

.eligible::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.eligible__wrapper {
  position: relative;
  z-index: 10;
}

.eligible__wrapper h2 {
  font-family: var(--fontB);
  padding: 30px 0;
  text-align: center;
  color: #fff;
}

.eligible__wrapper-pdLine {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px;
}

@media (min-width: 996px) {
  .eligible__wrapper-pdLine {
    gap: 50px;
  }
}

.eligible__wrapper-pdLine .itemBox {
  position: relative;
  width: 33%;
  padding: 2% 0 0;
  border: 1px solid #5f5347;
  border-radius: 10px;
  overflow: hidden;
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 996px) {
  .eligible__wrapper-pdLine .itemBox {
    width: calc(33% - 20px);
    border-radius: 25px;
  }
}

.eligible__wrapper-pdLine .itemBox::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.eligible__wrapper-pdLine .itemBox:hover {
  cursor: pointer;
  -webkit-filter: drop-shadow(0 0 10px #6f644b);
  filter: drop-shadow(0 0 10px #6f644b);
}

.eligible__wrapper-pdLine .itemBox:hover figure {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.eligible__wrapper-pdLine .itemBox figure {
  position: relative;
  width: 75%;
  margin: 0 auto;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  z-index: 0;
}

.eligible__wrapper-pdLine .itemBox h4 {
  position: relative;
  color: #fff;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  background: #576582;
  border-top: 1px solid #ffffff77;
  padding: 5px 0;
  z-index: 10;
  text-transform: uppercase;
}

@media (min-width: 996px) {
  .eligible__wrapper-pdLine .itemBox h4 {
    font-size: 22px;
    margin-top: 20px;
    padding: 15px 0;
  }
}

.eligible__wrapper-pdLine .itemBox.active::before {
  background: #63638dcc;
}

.eligible__wrapper-subTitle {
  position: relative;
  color: #e3ddd7;
  text-align: center;
  font-size: 22px;
  text-transform: uppercase;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  padding: 20px 0 10px;
}

@media (min-width: 996px) {
  .eligible__wrapper-subTitle {
    font-size: 28px;
    padding: 5% 0 2%;
    max-width: 1200px;
    margin: 0 auto;
  }
}

.eligible__wrapper-subTitle::before,
.eligible__wrapper-subTitle::after {
  content: "";
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  border-bottom: 2px solid #ffad5c;
}

.eligible__wrapper-subTitle::before {
  margin-right: 5%;
}

.eligible__wrapper-subTitle::after {
  margin-left: 5%;
}

.eligible__wrapper-subTitle h4 {
  font-size: 20px;
  padding: 5px 25px;
  border-radius: 10px;
}

@media (min-width: 996px) {
  .eligible__wrapper-subTitle h4 {
    font-size: 22px;
  }
}

.eligible__wrapper-subtabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.eligible__wrapper-subtabs .btnSty {
  width: auto;
  color: #fff;
  font-weight: bold;
  background: #8f8173;
  font-size: 14px;
  border: 1px solid #fff;
}

@media (min-width: 996px) {
  .eligible__wrapper-subtabs .btnSty {
    font-size: 20px;
  }
}

.eligible__wrapper-subtabs .btnSty:hover {
  background: #8f8173;
}

.eligible__wrapper-subtabs .btnSty.active {
  background: #705e4d;
}

.eligible__wrapper-table {
  margin: 20px 0;
}

.eligible__wrapper-table .item {
  display: block;
  width: calc(30% - 20px);
  margin: 10px;
}

/* --- product cards + buttons (style.css / buynow.css) --- */

.eligible img,
.popout img {
  max-width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.project .eligible img {
  display: block;
}

/* .project .eligible figure,
.project .popout figure {
  margin: 0;
  padding: 0;
} */

.btnSty {
  position: relative;
  display: inline-block;
  margin: 10px 20px;
  padding: 15px 25px;
  font-family: var(--font);
}

.buynowarea__block {
  position: relative;
}

.DD2 .buynowarea__block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: space-around;
  -ms-flex-pack: space-around;
  justify-content: space-around;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  border-radius: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3% 2% 4%;
  background: #5d516db8;
  border: 1px solid #5f5347;
}

@media screen and (max-width: 991px) {
  .DD2 .buynowarea__block {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 10% 2% 5%;
  }
}

.DD2 .buynowarea__block .item {
  width: calc(30% - 20px);
  margin: 10px;
}

@media screen and (max-width: 768px) {
  .DD2 .buynowarea__block .item {
    width: calc((100% / 2 - 20px));
  }
}

.DD2 .buynowarea__block .item figure {
  height: 250px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

@media screen and (max-width: 991px) {
  .DD2 .buynowarea__block .item figure {
    height: 140px;
  }
}

@media screen and (min-width: 768px) {
  .DD2 .buynowarea__block .item figure img {
    width: auto;
    height: 100%;
  }
}

@media screen and (min-width: 996px) {
  .DD2 .buynowarea__block .item figure img {
    height: auto;
  }
}

.DD2 .buynowarea__block .item .item__txtBox-name {
  font-size: 20px;
  margin-bottom: 1em;
  line-height: 1.5em;
  color: #fff;
  font-family: var(--fontB);
  text-align: center;
  margin: 0 0 20px;
}

@media (max-width: 1600px) {
  .DD2 .buynowarea__block .item .item__txtBox-name {
    font-size: 18px;
  }
}

@media (max-width: 1600px) and (max-width: 1300px) {
  .DD2 .buynowarea__block .item .item__txtBox-name {
    font-size: 17px;
  }
}

@media (max-width: 1600px) and (max-width: 1050px) {
  .DD2 .buynowarea__block .item .item__txtBox-name {
    font-size: 15px;
  }
}

.buyNow-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.buyNow-btn span {
  margin: 0 10px;
  font-weight: bold;
}

.buyNow-btn img {
  width: 20px;
}

.learnBtn {
  position: relative;
  display: block;
  text-align: center;
  outline: none;
  background-size: 100%;
  font-family: var(--font);
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  width: 100%;
  max-width: 300px;
  padding: 10px 0;
  transition: 0.2s;
  margin: 0 auto 20px;
  background: url(https://storage-asset.msi.com/event/2025/CND/cust-wuchang-fallen-feathers/images/buyNow-btn-bg.png);
  background-position: center;
  background-size: cover;
  opacity: 0.9;
  filter: drop-shadow(0px 2px 4px #000);
}

@media (min-width: 996px) {
  .learnBtn {
    font-size: 17px;
  }
}

.learnBtn:hover {
  opacity: 1;
  box-shadow: 0 0 20px #dbb5ff;
}

.buyNowBtn {
  position: relative;
  display: block;
  text-align: center;
  outline: none;
  background-size: 100%;
  color: #fff;
  font-family: var(--font);
  width: 100%;
  max-width: 300px;
  padding: 10px 0;
  transition: 0.2s;
  margin: 0 auto 20px;
  background: url(https://storage-asset.msi.com/event/2025/CND/clair-obscur-expedition-33/images/buyNow-btn-bg.jpg);
  background-position: center;
  background-size: cover;
  opacity: 0.9;
  cursor: pointer;
  filter: drop-shadow(0px 2px 4px #000);
}

.buyNowBtn:hover.buyNowBtn::before {
  border: 3px solid #fff;
  top: 50%;
}

.buyNowBtn:hover {
  opacity: 1;
  box-shadow: 0 0 20px #79c4d9;
}

.DD2 .buyNowBtn {
  background: url(https://storage-asset.msi.com/event/2025/CND/cust-wuchang-fallen-feathers/images/buyNow-btn-bg.png);
}

/* --- e-tailers popup (style.css, then buynow.css .project override) --- */

.popout {
  background: rgba(0, 0, 0, 0.6117647059);
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.popout__block {
  max-width: 760px;
  background: #000;
  background-size: 100% 100%;
  position: absolute;
  width: 90%;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.3);
  border: 1px solid #9F6F06;
}

.popout__block-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: inline-block;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
}

.popout__block-close::after {
  display: inline-block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: -13px;
  left: 0px;
  content: "×";
  font-size: 36px;
  font-weight: bold;
  color: #9F6F06;
}

.popout__block-close:hover::after {
  opacity: 0.8;
}

.popout__dm {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 60px 10px 20px 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.popout__dm a {
  width: calc(50% - 10px);
  background: #ffffff;
  color: #000000;
  text-align: center;
  border-radius: 5px;
  height: 70px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 5px;
}

.popout__dm a img {
  height: 50px;
}

.project .popout {
  background: #0000009c;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.project .popout__block {
  max-width: 760px;
  background: #000;
  background-size: 100% 100%;
  position: absolute;
  width: 90%;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.project .popout__block-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: inline-block;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
}

.project .popout__block-close::after {
  display: inline-block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: -13px;
  left: 0px;
  content: "\00D7";
  font-size: 36px;
  font-weight: bold;
  color: #fff;
}

.project .popout__block-close:hover::after {
  opacity: 0.8;
}

.project .popout__dm {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 60px 10px 20px 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.project .popout__dm a {
  width: calc(100% / 2 - 10px);
  background: #ffffff;
  color: #000000;
  text-align: center;
  border-radius: 5px;
  height: 70px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 5px;
}

.project .popout__dm a img {
  height: 50px;
}
