/* NANO GO – Digital Passport v2.4.20 */

.ng-passport {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: flex-start;
  margin: 2rem 0;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* LEFT COLUMN – product image + QR */
.ng-passport__media {
  position: sticky;
  top: 20px;
}

.ng-passport__media-main img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* QR Code - NEW v2.2.0 */
.ng-passport__qr {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  text-align: center;
}

.ng-passport__qr img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Tab badge - NEW v2.2.0 */
.ng-passport-badge {
  font-size: 0.9em;
  margin-left: 0.25rem;
  filter: grayscale(0%);
}

/* RIGHT COLUMN – info */
.ng-passport__info {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.ng-passport__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.ng-passport__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
}

/* Section titles - NEW v2.2.0 */
.ng-passport__section {
  margin-bottom: 1.5rem;
}

.ng-passport__section-title {
  font-size: 15px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #edf2f7;
}

/* META TABLE */
.ng-passport__meta {
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 1.5rem;
  row-gap: 0.75rem;
}

.ng-passport__meta dt {
  font-weight: 600;
  color: #4a5568;
  font-size: 13px;
}

.ng-passport__meta dd {
  margin: 0;
  color: #2d3748;
  font-size: 14px;
}

/* CONTENT BLOCKS */
.ng-passport__block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #edf2f7;
}

.ng-passport__block:first-of-type {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #edf2f7;
}

.ng-passport__block-title {
  margin: 0 0 0.75rem;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
}

.ng-passport__block-body {
  font-size: 14px;
  line-height: 1.7;
  color: #4a5568;
}

.ng-passport__block-body p {
  margin: 0 0 0.75rem;
}

.ng-passport__block-body ul,
.ng-passport__block-body ol {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}

.ng-passport__block-body li {
  margin-bottom: 0.5rem;
}

/* HAZARD PICTOGRAMS */
.ng-passport__hazards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}

.ng-passport__hazards--bottom {
  border-top: 1px solid #edf2f7;
  padding-top: 1rem;
}

/* Safety Warning - NEW v2.3.0 */
.ng-passport__safety-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border: 1px solid #ffc107;
  border-left: 4px solid #ff9800;
  border-radius: 4px;
  color: #856404;
  font-size: 14px;
  font-weight: 500;
}

.ng-passport__safety-warning strong {
  color: #664d03;
}

/* Pictograms container - NEW v2.3.0 */
.ng-passport__pictograms {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.ng-passport__pictograms img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ng-passport {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ng-passport__media {
    position: static;
  }

  .ng-passport__media-main img {
    max-width: 250px;
    margin: 0 auto;
  }

  .ng-passport__qr {
    max-width: 200px;
    margin: 1rem auto 0;
  }

  .ng-passport__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ng-passport__meta {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ng-passport__meta dt {
    font-weight: 700;
    margin-bottom: 0.25rem;
  }

  .ng-passport__pictograms {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .ng-passport__pictograms img {
    flex: 0 0 calc(25% - 6px);
    max-width: 100%;
  }
  
  .ng-passport__safety-warning {
    font-size: 13px;
  }
}

/* Print styles */
@media print {
  .ng-passport {
    grid-template-columns: 200px 1fr;
  }

  .ng-passport__info {
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .ng-passport__qr {
    page-break-inside: avoid;
  }
}



/* Product Questions tab accent – visible buyer-friendly marker */
.woocommerce-tabs ul.tabs li#tab-title-nanogo_faq a,
.woocommerce div.product .woocommerce-tabs ul.tabs li#tab-title-nanogo_faq a {
  font-weight: 700;
}

.woocommerce-tabs ul.tabs li#tab-title-nanogo_faq a::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li#tab-title-nanogo_faq a::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  border-radius: 50%;
  background: #f4a300;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: text-bottom;
}

/* Optional note block used at the end of product descriptions */
.product-faq-note {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid #f4a300;
  background: rgba(244, 163, 0, 0.06);
}

.product-faq-note p {
  margin: 0;
}

/* PRODUCT QUESTIONS / FAQ TAB – v2.4.9 */
.ng-product-faq {
  max-width: 100%;
  margin: 1.5rem 0;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #2d3748;
}

.ng-product-faq__title {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
}

.ng-product-faq__content {
  display: grid;
  gap: 0.9rem;
}

.ng-product-faq__content p {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.ng-product-faq__content p strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1a202c;
  font-weight: 700;
}

.ng-product-faq__content a {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .ng-product-faq {
    font-size: 13px;
    line-height: 1.6;
  }

  .ng-product-faq__title {
    font-size: 16px;
  }

  .ng-product-faq__content p {
    padding: 0.75rem 0.85rem;
  }
}


/* PRODUCT QUESTIONS / FAQ TAB – plain-text parser output – v2.4.14
   Supports custom field format:
   Question?
   Answer.

   Next question?
   Answer.
*/
.ng-product-faq__item {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.ng-product-faq__question {
  display: block;
  margin: 0 0 0.45rem;
  color: #1a202c;
  font-weight: 700;
  line-height: 1.45;
}

.ng-product-faq__answer {
  margin: 0;
  color: #2d3748;
  line-height: 1.65;
}

.ng-product-faq__answer p {
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 768px) {
  .ng-product-faq__item {
    padding: 0.75rem 0.85rem;
  }
}


/* CLP 48a label reminder (v2.4.15) */
.ng-passport__label-reminder .ng-passport__block-body p {
    margin: 0;
    color: #555;
    font-size: 0.95em;
}

/* Ingredient data sheet - v2.4.20 */
.ng-passport__ingredient-sheet .ng-passport__block-body {
  display: grid;
  gap: 0;
}

.ng-passport__ingredient-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 1.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #edf2f7;
}

.ng-passport__ingredient-row:last-child {
  border-bottom: 0;
}

.ng-passport__ingredient-label {
  font-weight: 700;
  color: #4a5568;
  font-size: 13px;
}

.ng-passport__ingredient-value {
  color: #2d3748;
  font-size: 14px;
}

.ng-passport__ingredient-list {
  white-space: pre-line;
}

@media (max-width: 768px) {
  .ng-passport__ingredient-row {
    grid-template-columns: 1fr;
    row-gap: 0.2rem;
  }
}
