:root {
  --dt-nutrition-green: #78c24c;
  --dt-nutrition-yellow: #f9c64b;
  --dt-nutrition-red: #ef3c45;
  --dt-nutrition-ink: #242726;
}

/* A fully local, responsive nutrition label based on the supplied reference. */
.dastyari-nutrition-label {
  max-width: 920px;
  margin: 28px auto;
  padding: clamp(16px, 3vw, 30px);
  color: var(--dt-nutrition-ink);
  background: #fff;
  border: 1px solid #e5e8e4;
  border-radius: 22px;
  box-shadow: 0 14px 45px rgba(32, 59, 34, .06);
  font-family: var(--dt-font-family, Tahoma), sans-serif;
}
.dt-nutrition-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(165px, 33%);
  gap: clamp(14px, 3vw, 35px);
  align-items: stretch;
}
.dt-nutrition-heading h3 {
  font-size: clamp(calc(21px * var(--dt-font-scale, 1)), calc(2.5vw * var(--dt-font-scale, 1)), calc(31px * var(--dt-font-scale, 1)));
  line-height: 1.55;
  margin: 0 0 5px;
  color: #212725;
  font-weight: 800;
}
.dt-energy-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
  font-size: calc(15px * var(--dt-font-scale, 1));
}
.dt-energy-row strong { font-weight: 800; }
.dt-energy-row span { font-weight: 600; }
.dt-nutrition-base { display: block; margin-bottom: 12px; font-size: calc(12px * var(--dt-font-scale, 1)); color: #677469; }
.dt-nutrition-rows { display: grid; gap: 6px; }
.dt-nutrition-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px 7px 26px;
  min-height: 43px;
  font-size: clamp(calc(14px * var(--dt-font-scale, 1)), calc(1.5vw * var(--dt-font-scale, 1)), calc(18px * var(--dt-font-scale, 1)));
  font-weight: 700;
  line-height: 1.45;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 5% 50%);
  transition: filter .2s ease, transform .2s ease;
}
.dt-nutrition-row:hover { filter: brightness(.97); transform: translateX(-2px); }
.dt-nutrition-name { flex: 1; text-align: right; }
.dt-nutrition-value { white-space: nowrap; text-align: left; }
.dt-status-green { background: var(--dt-nutrition-green); color: #163f1b; }
.dt-status-yellow { background: var(--dt-nutrition-yellow); color: #563e12; }
.dt-status-red { background: var(--dt-nutrition-red); color: #fff; }
.dt-status-neutral { background: #e9efea; color: #414c44; }
.dt-health-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.dt-health-seal > img {
  width: 100%;
  max-width: 190px;
  max-height: 200px;
  object-fit: contain;
}
.dt-seal-placeholder {
  width: min(100%, 200px);
  min-height: 145px;
  border: 2px dashed #b6d4ca;
  border-radius: 18px;
  background: #f4faf7;
  color: #3b8761;
  display: grid;
  align-content: center;
  padding: 12px;
  gap: 7px;
}
.dt-seal-placeholder span { font-size: calc(18px * var(--dt-font-scale, 1)); font-weight: 800; }
.dt-seal-placeholder small { color: #688779; font-size: 10px; }
.dt-health-license { display: grid; gap: 4px; }
.dt-health-license span { color: #666; font-size: 12px; }
.dt-health-license strong { font-size: clamp(calc(19px * var(--dt-font-scale, 1)), calc(2.4vw * var(--dt-font-scale, 1)), calc(29px * var(--dt-font-scale, 1))); font-weight: 900; font-variant-numeric: tabular-nums; }
.dt-nutrition-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-around;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid #cfd2d0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #f6f6f6;
}
.dt-nutrition-legend > span { display: flex; align-items: center; gap: 9px; font-size: calc(14px * var(--dt-font-scale, 1)); font-weight: 700; }
.dt-dot { display: inline-block; width: 17px; height: 17px; border-radius: 50%; }
.dt-dot.green { background: #27b35b; }
.dt-dot.yellow { background: #f7a93b; }
.dt-dot.red { background: #ee3544; }

.dastyari-product-specs {
  margin-block: 20px;
  border: 1px solid #e8e9e5;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  color: #303330;
}
.dastyari-product-specs h3 {
  font-size: calc(20px * var(--dt-font-scale, 1));
  margin: 0;
  padding: 15px 20px;
  background: #f6f9f3;
  color: #315f36;
}
.dastyari-product-specs dl { margin: 0; }
.dastyari-standard-mark { display: flex; gap: 16px; align-items: center; padding: 14px 18px; }
.dastyari-standard-mark img { max-height: 72px; width: 72px; object-fit: contain; }
.dastyari-product-specs dl > div { display: grid; grid-template-columns: minmax(110px, 32%) 1fr; border-bottom: 1px solid #eef0eb; }
.dastyari-product-specs dl > div:last-child { border: 0; }
.dastyari-product-specs dt { background: #fcfcfa; font-weight: 700; }
.dastyari-product-specs dt, .dastyari-product-specs dd { margin: 0; padding: 12px 18px; }
.dastyari-editor-placeholder { border: 1px dashed #a9b8a2; color: #61715f; padding: 18px; text-align: center; }

.dastyari-product-faq { max-width: 1000px; margin: 50px auto; padding: 0 15px; }
.dastyari-product-faq h2 { font-size: clamp(calc(23px * var(--dt-font-scale, 1)), calc(2.3vw * var(--dt-font-scale, 1)), calc(32px * var(--dt-font-scale, 1))); margin-bottom: 24px; }
.dastyari-product-faq details {
  border: 1px solid #e7ebe6;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dastyari-product-faq details:hover, .dastyari-product-faq details[open] { border-color: #bcd5b8; box-shadow: 0 10px 25px rgba(26, 66, 37, .05); }
.dastyari-product-faq summary { position: relative; cursor: pointer; list-style: none; padding: 17px 22px 17px 48px; font-weight: 700; }
.dastyari-product-faq summary::-webkit-details-marker { display: none; }
.dastyari-product-faq summary::after { content: '+'; position: absolute; left: 20px; top: 10px; font-size: 27px; color: #629d46; }
.dastyari-product-faq details[open] summary::after { content: '−'; }
.dastyari-product-faq details > div { padding: 4px 22px 20px; color: #5b645c; }

@media (max-width: 640px) {
  .dt-nutrition-main { grid-template-columns: 1fr; }
  .dt-health-seal { order: -1; flex-direction: row; justify-content: center; }
  .dt-health-seal > img { width: 90px; max-height: 110px; }
  .dt-seal-placeholder { width: 125px; min-height: 90px; }
  .dt-health-license strong { font-size: 21px; }
  .dt-nutrition-row { min-height: 40px; padding-left: 20px; font-size: calc(14px * var(--dt-font-scale, 1)); }
  .dt-nutrition-legend { margin-top: 17px; gap: 8px; }
  .dt-nutrition-legend > span { font-size: 12px; gap: 5px; }
  .dt-dot { width: 12px; height: 12px; }
}

/* A second, compact presentation appears immediately below Add to Cart. */
.dt-summary-nutrition { display: flow-root; margin: 12px 0 20px; }
.dt-summary-nutrition > .dastyari-nutrition-label { margin-right: auto; margin-left: 0; }
.dastyari-nutrition-label.dt-nutrition-compact { width: min(100%, 365px); max-width: 365px; padding: 12px; margin-block: 10px; border-radius: 15px; box-shadow: 0 8px 22px rgba(30,50,30,.05); }
.dt-nutrition-compact .dt-nutrition-main { grid-template-columns: minmax(0, 1fr) 78px; gap: 8px; }
.dt-nutrition-compact .dt-nutrition-heading h3 { margin: 0; font-size: calc(15px * var(--dt-font-scale, 1)); line-height: 1.45; }
.dt-nutrition-compact .dt-energy-row { margin: 0; font-size: calc(11px * var(--dt-font-scale, 1)); gap: 4px; }
.dt-nutrition-compact .dt-nutrition-base { font-size: 10px; margin-bottom: 7px; }
.dt-nutrition-compact .dt-nutrition-rows { gap: 3px; }
.dt-nutrition-compact .dt-nutrition-row { min-height: 28px; padding: 4px 8px 4px 16px; gap: 5px; font-size: calc(11px * var(--dt-font-scale, 1)); }
.dt-nutrition-compact .dt-health-seal { order: initial; flex-direction: column; gap: 5px; }
.dt-nutrition-compact .dt-health-seal > img { max-width: 70px; max-height: 80px; }
.dt-nutrition-compact .dt-seal-placeholder { width: 73px; min-height: 62px; padding: 5px; gap: 2px; }
.dt-nutrition-compact .dt-seal-placeholder span { font-size: 10px; }
.dt-nutrition-compact .dt-seal-placeholder small { font-size: 8px; }
.dt-nutrition-compact .dt-health-license span { font-size: 9px; }
.dt-nutrition-compact .dt-health-license strong { font-size: 12px; overflow-wrap: anywhere; }
.dt-nutrition-compact .dt-nutrition-legend { margin-top: 9px; padding: 6px; gap: 6px; }
.dt-nutrition-compact .dt-nutrition-legend > span { gap: 4px; font-size: 10px; }
.dt-nutrition-compact .dt-dot { width: 10px; height: 10px; }

@media (max-width: 480px) {
  .dastyari-nutrition-label.dt-nutrition-compact { width: 100%; }
  .dt-nutrition-compact .dt-nutrition-main { grid-template-columns: minmax(0, 1fr) 70px; }
  .dt-nutrition-compact .dt-nutrition-row { font-size: 11px; }
}
