
.black-window {
  pointer-events: none;
}





.black-window {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* dark overlay */
  z-index: 999; /* must be LESS than .nasa-node-content */
}

.nasa-node-content {
  z-index: 1000; /* must be HIGHER than .black-window */
}



/* Part 1 - Base Styles and Popup Framework */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

/* Popup Container - Responsive Centering */
.nasa-node-content {
  position: fixed;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  width: 500px;
  max-width: 90%;
  max-height: 90vh;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  transition: all 400ms ease;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}

.nasa-node-content.ns-actived {
  opacity: 1;
  visibility: visible;
}

/* Content Area - Scrolling */
.ns-inct {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  flex: 1;
  max-height: calc(90vh - 70px);
}

/* Tablet Specific Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .nasa-node-content {
    width: 700px;
    max-width: 90%;
    padding: 20px;
  }
  
  .ns-inct {
    max-height: calc(90vh - 60px);
  }
}

/* Desktop Specific Styles (1025px and up) */
@media (min-width: 1025px) {
  .nasa-node-content {
    width: 800px;
    padding: 30px;
  }
  
  #nasa-content-delivery-return {
    width: 800px;
  }
  
  .ns-inct {
    max-height: calc(90vh - 80px);
  }
}

/* Close Button */
.ns-node-close.nasa-stclose {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10000;
  background: transparent;
}

.ns-node-close.nasa-stclose:before, 
.ns-node-close.nasa-stclose:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #000;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ns-node-close.nasa-stclose:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* Size Chart Styles */
.size-chart-tab {
  width: 100%;
  padding-top: 30px;
}

.size-chart-main {
  width: 100%;
  margin: 0 auto;
}

.heading-top {
  text-align: center;
  margin-bottom: 20px;
}

.heading-top p {
  display: inline-block;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
  font-size: 18px;
  font-weight: 600;
}

/* Tab System */
.size-chart-main input[type="radio"] {
  display: none;
}

.size-chart-main label {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px 15px 0;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 34px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.size-chart-main input:checked + label {
  background: #000;
  color: #fff;
}

/* Tab Content */
.content-container {
  position: relative;
  background: #fff;
}

.content {
  position: absolute;
  width: 100%;
  padding: 10px 0;
  opacity: 0;
  transition: 0.25s ease;
}

.size-chart-main input#tab1:checked ~ .content-container #c1,
.size-chart-main input#tab2:checked ~ .content-container #c2 {
  opacity: 1;
  position: relative;
}

/* Table Styles */
.size-chart-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.size-chart-main th {
  background: #eee;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.size-chart-main td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.tab-bottom-sec {
  text-align: center;
  padding: 10px 0;
}

.tab-bottom-sec p {
  font-size: 14px;
  font-weight: 600;
}

/* Instructions */
.size-main-txt {
  margin-top: 30px;
}

.heading-bottom {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
  border-bottom: 2px solid #000;
  padding-bottom: 5px;
}

.size-chart-ul {
  list-style: none;
  padding-left: 20px;
}

.size-chart-li {
  padding: 8px 0;
  position: relative;
  font-weight: 500;
}

.size-chart-li:before {
  content: "•";
  color: #000;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.size-chart-li b {
  font-weight: 600;
  padding-right: 5px;
}

/* Delivery & Return Styles */
#nasa-content-delivery-return {
  width: 600px;
  padding: 30px;
}

#nasa-content-delivery-return h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #000;
}

#nasa-content-delivery-return ol,
#nasa-content-delivery-return ul {
  margin: 0 0 20px 20px;
}

#nasa-content-delivery-return li {
  margin-bottom: 10px;
  font-weight: 500;
}

#nasa-content-delivery-return ol {
  counter-reset: section;
  list-style: none;
}

#nasa-content-delivery-return ol li:before {
  counter-increment: section;
  content: counter(section) ".";
  font-weight: 600;
  margin-right: 10px;
}

#nasa-content-delivery-return strong {
  font-weight: 600;
}

/* Mobile Styles (kept for reference but improved for tablet/desktop) */
@media (max-width: 767px) {
  .nasa-node-content {
    width: calc(100% - 20px);
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    transform: translateY(100%);
    border-radius: 10px 10px 0 0;
    margin: 0 auto;
    padding: 15px;
  }
  
  .nasa-node-content.ns-actived {
    transform: translateY(0);
  }
  
  .ns-inct {
    max-height: calc(80vh - 60px);
  }
}

