/* ALLKemicals Product Specification Layout v3 — 2026-11-18.
   Four columns, consistent LEFT alignment, percent spacing handled by PHP.
   Loaded after legacy product CSS so positional/centering overrides cannot win.
   Quantity and selected-cart/inquiry behavior are preserved. */

/* Product navigation / metadata. */
.product-v512.ak-live-preview-v3 .breadcrumb{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:baseline;
  text-align:left!important;
  overflow-wrap:anywhere;
  word-break:normal;
}
.product-v512.ak-live-preview-v3 .breadcrumb > *{
  text-align:left!important;
  max-width:100%;
}
.product-v512.ak-live-preview-v3 #general .ak-specsheet-dl-v1 dt,
.product-v512.ak-live-preview-v3 #general .ak-specsheet-dl-v1 dd,
.product-v512.ak-live-preview-v3 #general .ak-specsheet-handling-v1 dt,
.product-v512.ak-live-preview-v3 #general .ak-specsheet-handling-v1 dd,
.product-v512.ak-live-preview-v3 #general .ak-specsheet-nomenclature-v1 dt,
.product-v512.ak-live-preview-v3 #general .ak-specsheet-nomenclature-v1 dd,
.product-v512.ak-live-preview-v3 #computational .pv512-metric-grid article > span,
.product-v512.ak-live-preview-v3 #computational .pv512-metric-grid article > strong{
  text-align:left!important;
}

/* Align all Safety Information values to one consistent left edge,
   including wide hazard and precautionary statement rows. */
.product-v512.ak-live-preview-v3 #safety .pv512-safety-compact{
  grid-template-columns:minmax(0,1fr)!important;
}
.product-v512.ak-live-preview-v3 #safety .pv512-safety-line,
.product-v512.ak-live-preview-v3 #safety .pv512-safety-line.wide{
  grid-column:auto!important;
  grid-template-columns:minmax(210px,32%) minmax(0,1fr)!important;
  border-right:0!important;
  gap:16px!important;
  text-align:left!important;
}
.product-v512.ak-live-preview-v3 #safety .pv512-safety-line > span,
.product-v512.ak-live-preview-v3 #safety .pv512-safety-line > strong{
  text-align:left!important;
  justify-self:start!important;
  margin:0!important;
}

/* Only the four requested visible pack columns. */
.product-v512.ak-live-preview-v3 .pv512-pack-table-wrap{
  overflow-x:auto;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table{
  width:100%;
  min-width:680px!important;
  table-layout:fixed;
  border-collapse:collapse;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table th:nth-child(1){width:19%}
.product-v512.ak-live-preview-v3 .pv512-pack-table th:nth-child(2){width:27%}
.product-v512.ak-live-preview-v3 .pv512-pack-table th:nth-child(3){width:32%}
.product-v512.ak-live-preview-v3 .pv512-pack-table th:nth-child(4){width:22%}
.product-v512.ak-live-preview-v3 .pv512-pack-area .pv512-pack-table thead th,
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td,
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td.ak-product-key-cell-v1,
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td strong,
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td small{
  text-align:left!important;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td{
  overflow-wrap:anywhere;
  vertical-align:middle;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(3) .availability-dot{
  display:none!important;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(3) .ak-availability-state{
  width:100%;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:left!important;
  gap:0!important;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(4) .qty-stepper{
  margin-left:0!important;
  margin-right:0!important;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(4) .qty-stepper input{
  text-align:center!important;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td .ak-pack-row-internal-actions-v3{
  display:none!important;
}
@media(max-width:760px){
  .product-v512.ak-live-preview-v3 #safety .pv512-safety-line,
  .product-v512.ak-live-preview-v3 #safety .pv512-safety-line.wide{
    grid-template-columns:minmax(135px,42%) minmax(0,1fr)!important;
    gap:10px!important;
  }
}
@media(max-width:420px){
  .product-v512.ak-live-preview-v3 #safety .pv512-safety-line,
  .product-v512.ak-live-preview-v3 #safety .pv512-safety-line.wide{
    grid-template-columns:minmax(120px,43%) minmax(0,1fr)!important;
    gap:8px!important;
  }
}


/* 18 Nov v4: restore the Stock Availability column hidden by an older
   product-preview-production-v3.css !important nth-child(3) rule.
   Equal or higher specificity, loaded LAST, preserves all four headings. */
.product-v512.ak-live-preview-v3 .pv512-pack-table thead th:nth-child(3),
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(3){
  display:table-cell!important;
  visibility:visible!important;
}
.product-v512.ak-live-preview-v3 .pv512-pack-area .pv512-pack-table thead th{
  text-align:center!important;
  vertical-align:middle!important;
}
/* Preserve previously requested left alignment of CONTENT cells. */
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td{
  text-align:left!important;
}
/* More legible, slightly larger purity pill in the product title bar. */
.product-v512.ak-live-preview-v3 .pv512-titlebar .pv512-idline > span:last-child{
  min-width:142px;
  padding:10px 17px;
  font-size:14px;
  line-height:1.35;
}
.product-v512.ak-live-preview-v3 .pv512-titlebar .pv512-idline > span:last-child b{
  font-size:15px;
  font-weight:800;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(3) .ak-availability-state{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  white-space:normal;
}
@media(max-width:850px){
 .product-v512.ak-live-preview-v3 .pv512-pack-table{
    min-width:640px!important;
 }
 .product-v512.ak-live-preview-v3 .pv512-pack-table thead th{
   white-space:normal!important;
   padding:12px 9px!important;
   font-size:13px!important;
 }
 .product-v512.ak-live-preview-v3 .pv512-pack-table tbody td{
   padding:13px 9px!important;
 }
}


/* ALLKemicals pack table v5, 18 Nov 2026:
   align the Price + Stock Availability values beneath their centered headings.
   Product prices, quantity controls, inventory values, and backend data unchanged. */
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(2),
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td.ak-product-key-cell-v1:nth-child(2),
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(2) strong,
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(2) small,
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(2) span,
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(3),
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(3) span {
    text-align:center!important;
}
.product-v512.ak-live-preview-v3 .pv512-pack-table tbody td:nth-child(3) .ak-availability-state {
    justify-content:center!important;
    text-align:center!important;
    width:100%;
    margin-inline:auto;
}
