/* ALLKemicals structure consistency v6.0: uniform chemistry viewport.
   For product listings and homepage only; don't alter large product-detail image.
   Verified SMILES fallback renders only CAS/SMILES pairs on the trusted allowlist. */
body.akb .product-grid .product-card .structure,
.search-grid .product-card .structure-box,
.related-product-grid .product-card .structure-box {
  height:208px;
  min-height:208px;
  box-sizing:border-box;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px 18px;
  overflow:hidden;
  background:#fff;
}
body.akb .product-grid .product-card .structure img,
.search-grid .product-card .structure-box .structure-primary-image,
.related-product-grid .product-card .structure-box .structure-primary-image {
  display:block;
  width:min(92%, 310px)!important;
  height:164px!important;
  max-width:92%!important;
  max-height:164px!important;
  object-fit:contain!important;
  margin:auto;
  mix-blend-mode:normal!important;
}
body.akb .product-grid .product-card .cb-smiles-structure {
  display:flex;
  width:100%;
  height:100%;
  justify-content:center;
  align-items:center;
  overflow:visible;
}
body.akb .product-grid .product-card .cb-smiles-structure.is-ready svg {
  width:min(96%,310px)!important;
  height:164px!important;
  max-height:164px!important;
  object-fit:contain;
  overflow:visible;
}
.search-grid .product-card .structure-rdkit-fallback,
.related-product-grid .product-card .structure-rdkit-fallback {
  inset:12px!important;
  width:calc(100% - 24px);
  height:calc(100% - 24px);
  align-items:center;
  justify-content:center;
}
.search-grid .product-card .structure-rdkit-fallback svg,
.related-product-grid .product-card .structure-rdkit-fallback svg {
  width:min(96%,310px)!important;
  height:164px!important;
  max-width:96%!important;
  max-height:164px!important;
  object-fit:contain!important;
  overflow:visible;
}
body.akb .product-grid .product-card .cb-structure-under-review {
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:6px;color:#85749b;text-align:center;
}
body.akb .product-grid .product-card .cb-structure-under-review svg {
  width:42px;height:42px;
}
body.akb .product-grid .product-card .cb-structure-under-review small {
  font-size:10px;letter-spacing:0;color:#847894;
}
@media (max-width:640px) {
  body.akb .product-grid .product-card .structure,
  .search-grid .product-card .structure-box,
  .related-product-grid .product-card .structure-box {
    height:172px;min-height:172px;padding:15px 12px;
  }
  body.akb .product-grid .product-card .structure img,
  .search-grid .product-card .structure-box .structure-primary-image,
  .related-product-grid .product-card .structure-box .structure-primary-image,
  body.akb .product-grid .product-card .cb-smiles-structure.is-ready svg,
  .search-grid .product-card .structure-rdkit-fallback svg,
  .related-product-grid .product-card .structure-rdkit-fallback svg {
    height:138px!important;max-height:138px!important;
  }
}
