/* Product section colours and heading rules follow the Acmella extract page. */
#ingredient-detail > section[data-tone] {
  --panel: #fff;
  background: var(--section-bg) !important;
  color: #000035;
  border-block-start: 1px solid #c1d5dd;
  padding-block: clamp(1.5rem, 3vw, 2.75rem) !important;
  scroll-margin-block-start: 8rem;
}
#ingredient-detail [data-tone="white"] { --section-bg: #fff; --panel: #f3f7fd; }
#ingredient-detail [data-tone="blue"] { --section-bg: #c9e5ee; }
#ingredient-detail [data-tone="mist"] { --section-bg: #f3f7fd; }
#ingredient-detail > section[data-tone="white"] { --panel: #f3f7fd; }
#ingredient-detail [data-tone] > .shell {background:transparent !important;}
#ingredient-detail [data-tone] > .detail-two-column {display:block !important;position:static !important;}
#ingredient-detail [data-tone] .detail-section-heading {
  position:static !important; display:block !important; width:100% !important; max-width:none !important;
}
#ingredient-detail [data-tone] .detail-section-heading { margin:0 0 .875rem; }
#ingredient-detail [data-tone] :is(h2,h3:not(.framework-catalog-card h3),.odor-cards h4) {
  color:#000035 !important; max-inline-size:none !important; margin-block:0 .625rem;
  padding-block-end:.45rem; border-block-end:2px solid #258580 !important;
}
#ingredient-detail [data-tone] :is(.detail-section-heading,.detail-contact .shell) p {max-width:75ch;}
#ingredient-detail [data-tone] :is(.detail-facts,.pl-reg,.pl-docgrid,.pl-use,.odor-cards,.detail-grade-grid) {
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:.75rem !important; padding:0 !important; margin-block:.875rem;
  background:transparent !important; border:0 !important;
}
#ingredient-detail [data-tone] .detail-facts { grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)) !important; }
#ingredient-detail [data-tone] :is(.detail-facts > div,.detail-grade-grid > article,.pl-docgrid > article,.pl-reg > article,.pl-use > article,.odor-cards > article,.delivery-grid > div,.pl-guides > a) {
  box-sizing:border-box; min-width:0; border:1px solid #bbd1d9 !important; border-radius:.35rem;
  background:var(--panel) !important; padding:clamp(.75rem,1.45vw,1.1rem) !important;
  color:#18333e !important;
}
#ingredient-detail [data-tone] .detail-facts > div {display:block !important; margin:0;}
#ingredient-detail [data-tone] .detail-facts dt {
  color:#000035 !important; font-weight:700; border-bottom:2px solid #258580;
  margin-bottom:.45rem; padding-bottom:.4rem;
}
#ingredient-detail [data-tone] .detail-facts dd {color:#243a45 !important; margin:0;}
#ingredient-detail [data-tone] .detail-faq details {
  background:var(--panel) !important; border:1px solid #bbd1d9 !important;
  margin-block:.45rem; padding-inline:.875rem; border-radius:.35rem;
}
#ingredient-detail [data-tone] .delivery-grid > div p,
#ingredient-detail .detail-contact :is(p,label) { color:#193748 !important; }
#ingredient-detail [data-tone] .delivery-grid > a {grid-column:1 / -1;color:#135a65;}
#ingredient-detail [data-tone] .pl-reg {grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)) !important;}
#ingredient-detail #odor-evaluation .odor-evaluation {margin-top:0;}
#ingredient-detail .detail-contact .shell {display:flex;flex-direction:column;align-items:start;gap:.75rem;}
#ingredient-detail .detail-contact .detail-actions {margin-top:.4rem;}
#ingredient-detail .detail-contact .button {color:#000035 !important;}
#ingredient-detail .detail-contact .button-outline {background:white !important;border:1px solid #59828b !important;}
@media(max-width:760px){
  #ingredient-detail [data-tone] :is(.detail-facts,.pl-reg,.pl-docgrid,.pl-use,.odor-cards,.detail-grade-grid,.delivery-grid){grid-template-columns:1fr !important;}
  #ingredient-detail [data-tone] {scroll-margin-block-start:7rem;}
}

#ingredient-detail [data-tone] :is(.detail-section-heading h2,.delivery-grid h2,.detail-contact h2) {
  font-size:clamp(1.375rem,2.6vw,1.875rem);
  line-height:1.22;
}
#ingredient-detail [data-tone] .detail-faq summary {
  box-sizing:border-box;
  min-height:44px;
  padding-block:.75rem;
}
#ingredient-detail #grade-profiles article dl > div {padding-block:.45rem;}
@media(min-width:761px) {
  #ingredient-detail :is(#specification,#microbiology) table :is(th,td) {
    padding:.625rem .875rem;
  }
}

#ingredient-detail #hero-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 22px;min-width:0}
#ingredient-detail #hero-actions>.button {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:12px 14px;border:0;border-radius:10px;background:#01847f;box-shadow:none;color:#fff;text-decoration:none;font-size:14px;font-weight:600;line-height:1.4;white-space:normal;text-align:center}
#ingredient-detail #hero-actions>.button-outline {background:#f9d2e4;color:#0f253b}
#ingredient-detail #hero-actions>.button:hover {background:#075c60;color:#fff}
#ingredient-detail #hero-actions>.button-outline:hover {background:#efbcd3;color:#0f253b}
#hero-actions>.ph-hero-utility {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-top:1px solid #cddadb;padding-top:4px}
#hero-actions>.ph-hero-utility>a {display:flex;align-items:center;min-width:0;min-height:44px;padding:8px 0;color:#006466;font-size:13px;font-weight:600;line-height:1.4;text-decoration:underline;text-underline-offset:4px}
#ingredient-detail .detail-visual>#product-caption {margin:0;padding:.8rem 1rem;text-align:center;color:#40586a;font-size:.94rem;line-height:1.45}
@media(max-width:760px){#ingredient-detail #hero-actions{margin:18px 0 24px}#ingredient-detail #hero-actions>.button{font-size:13px;padding:12px 8px}#hero-actions>.ph-hero-utility>a{font-size:12px}}

#ingredient-detail .profile-shell {display:block;}
#ingredient-detail .profile-shell .detail-facts {
  display:block !important;
  margin:0;
  background:#fff !important;
  border:1px solid #b9d1d9 !important;
  border-radius:5px;
}
#ingredient-detail .profile-shell .detail-facts > div {
  display:grid !important;
  grid-template-columns:minmax(7rem, 24%) minmax(0, 1fr);
  align-items:baseline;
  gap:.3rem 1rem;
  border:0 !important;
  border-radius:0;
  background:transparent !important;
  padding:.5rem .875rem !important;
}
#ingredient-detail .profile-shell .detail-facts > div + div {border-top:1px solid #d7e3e7 !important;}
#ingredient-detail .profile-shell .detail-facts :is(dt,dd) {
  border:0; padding:0; margin:0;
  font-size:.9375rem; line-height:1.48; overflow-wrap:anywhere;
}
#ingredient-detail .profile-shell .detail-facts dt {font-weight:650;}
#ingredient-detail .profile-shell .detail-facts dd {font-weight:400;}
@media(min-width:1100px) {
  #ingredient-detail .profile-shell {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2.1fr);
    align-items:start; gap:clamp(2rem,4vw,4rem);
  }
}
@media(max-width:480px) {
  #ingredient-detail .profile-shell .detail-facts > div {grid-template-columns:minmax(0,1fr);gap:.125rem;}
}

#ingredient-detail :is(#quality-controls,#quality-regulatory,#documents,#supply) :is(.detail-review-grid,.pl-reg,.pl-docgrid,.delivery-grid) {
  align-items:start;
}
#ingredient-detail #quality-controls .detail-review-grid > article,
#ingredient-detail #supply .delivery-grid > div {
  min-height:0;
}
#ingredient-detail #supply .delivery-grid > div > :last-child {margin-bottom:0;}

#ingredient-detail #project-request .detail-actions {display:flex;flex-wrap:wrap;gap:.65rem;}
#ingredient-detail #project-request .detail-actions .button {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:10px 13px;border:0 !important;border-radius:10px;
  box-shadow:none;background:#01847f !important;color:#fff !important;
  font-size:14px;font-weight:600;line-height:1.4;
}
#ingredient-detail #project-request .detail-actions .button-outline {background:#f9d2e4 !important;color:#0f253b !important;}
#ingredient-detail #project-request .detail-actions .button:hover {background:#075c60 !important;}
#ingredient-detail #project-request .detail-actions .button-outline:hover {background:#efbcd3 !important;}
#ingredient-detail #supply .delivery-grid {grid-template-columns:repeat(2,minmax(0,1fr));}

#packaging-guide .ph-seal-preview{
 display:block;box-sizing:border-box;width:100%;margin-block:12px 8px;
 padding:clamp(12px,1.6vw,22px);background:#f3f7fd;border:1px solid #d9e2ed;
 border-radius:12px;cursor:zoom-in
}
#packaging-guide details .ph-seal-preview img{
 display:block;width:100%;height:auto;aspect-ratio:10/3;object-fit:contain;
 margin:0;border-radius:0;filter:drop-shadow(0 1px 2px rgba(15,40,55,.22))
}
#packaging-guide .ph-seal-preview:focus-visible{outline:2px solid #006e70;outline-offset:3px}


#packaging-guide .ph-drum-scene{position:relative;container-type:inline-size;aspect-ratio:1.82;overflow:hidden;border-radius:12px;background:#f3f7fd}
#packaging-guide .ph-drum-scene>img{position:absolute;left:0;top:0;width:auto!important;height:100%!important;max-width:none;border-radius:0!important}

#packaging-guide .ph-drum-scene .ph-mark{direction:ltr}
#packaging-guide .ph-drum-scene .ph-mark span{direction:inherit;text-align:start;min-width:0}
html[dir=rtl] #packaging-guide .ph-drum-scene .ph-mark span{direction:rtl}
#packaging-guide .ph-drum-scene .ph-mark:first-of-type>span{transform:translateY(-17%)}
#packaging-guide .ph-drum-scene .ph-mark:last-of-type>span{transform:translateY(18%)}
#round-drum-10kg{scroll-margin-block:145px 20px}

#packaging-guide .ph-hero{padding-block:12px 20px}
#packaging-guide .ph-hero>figure{width:min(100%,380px);justify-self:center}
#packaging-guide .ph-section{padding-block:20px 8px}
#packaging-guide .ph-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.5vw,22px);align-items:start}
#packaging-guide .ph-card{min-width:0}
#packaging-guide .ph-card figcaption{padding-block:10px}
#packaging-guide .ph-grid:focus-visible{outline:2px solid var(--pack-accent);outline-offset:2px}
@media(max-width:1050px){
 #packaging-guide .ph-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:clamp(240px,78%,300px);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline proximity;padding-bottom:6px}
 #packaging-guide .ph-grid>figure{scroll-snap-align:start}
}
#commercial-carton-5kg {scroll-margin-block:110px;}
#commercial-carton-5kg .carton-art {position:absolute;left:3%;top:7%;width:60%;aspect-ratio:4/3;}
#commercial-carton-5kg .carton-art img {position:absolute;display:block;height:auto;border-radius:0;}
#commercial-carton-5kg .carton-photo {inset:0;width:100%;}
#commercial-carton-5kg .carton-label {left:50%;top:76%;width:28%;transform:translate(-50%,-50%);}
#commercial-carton-5kg .carton-seal {left:80%;top:47.5%;width:27%;transform:translate(-50%,-50%) rotate(-90deg);}
#packaging-guide .pack-guide-link {margin:1rem 0 1.5rem;}
#packaging-guide .pack-guide-link a {color:#075c60;text-decoration:underline;font-weight:600;}

#ingredient-detail > .detail-related-section[data-tone="plain"]{--section-bg:transparent}
#ingredient-detail .shell{box-sizing:border-box;width:min(calc(100% - 40px),1180px);margin-inline:auto}
#ingredient-detail [id]{scroll-margin-block-start:9rem}
#ingredient-detail .detail-visual figcaption{text-align:center;font-size:.88rem;color:#496478;margin-top:.65rem}
#ingredient-detail .buyer-note{border-inline-start:3px solid #258580;padding:.65rem 1rem;margin:.8rem 0;background:#f3f7fd}
#ingredient-detail :is(.pl-use,.detail-review-grid,.detail-grade-grid,.delivery-grid){align-items:stretch!important}
#ingredient-detail .detail-review-grid>article{height:auto;align-self:stretch}
#ingredient-detail .product-order-terms{margin:0}
#ingredient-detail .product-order-terms>div{display:grid;grid-template-columns:minmax(10rem,24%) 1fr;gap:1rem;border-bottom:1px solid #cbdade;padding:.8rem 0}
#ingredient-detail .product-order-terms dt{font-weight:650}
#ingredient-detail .product-order-terms dd{margin:0;line-height:1.55}
#ingredient-detail #order-quantities{margin-bottom:2rem}
@media(max-width:600px){#ingredient-detail .product-order-terms>div{grid-template-columns:1fr;gap:.25rem}}
#ingredient-detail .pack-section{padding-block:1.75rem}
#ingredient-detail #packaging-guide .pack-track{grid-auto-columns:min(82%,clamp(270px,31%,365px))!important;grid-template-columns:none!important}
#ingredient-detail .application-scene{width:100%;aspect-ratio:2/1;object-fit:cover;display:block;margin-bottom:.85rem;border-radius:5px}
#ingredient-detail .table-scroll{max-width:100%;overflow-x:auto}
#ingredient-detail .p-data{border-collapse:collapse;width:100%;line-height:1.45;background:white}
#ingredient-detail .p-data :is(td,th){padding:.65rem .85rem;text-align:left;border-bottom:1px solid #ccdae1;vertical-align:top}
#ingredient-detail .p-data th{background:#163d47;color:white}
#ingredient-detail #grades .grade-actions a{display:inline-block;margin:.12rem .8rem .12rem 0;text-decoration:underline;color:#075e63}
#ingredient-detail .grade-actions{min-width:8rem}
#ingredient-detail .review-links{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem}
#ingredient-detail .review-links a,.buyer-note a{color:#075e63;text-decoration:underline}
#ingredient-detail .doc-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
#ingredient-detail .doc-groups article{padding:1rem;border:1px solid #bbd1d9;border-radius:.35rem;background:white}
#ingredient-detail .detail-answer .shell{min-width:0}
@media(max-width:680px){#ingredient-detail .shell{width:calc(100% - 32px)}#ingredient-detail .doc-groups{grid-template-columns:1fr}#ingredient-detail #grades .p-data{min-width:610px}#ingredient-detail .detail-anchor-nav .shell{overflow-x:auto;white-space:nowrap}}
