/* Shared storefront/editor actions. Primary calls to action and filters keep their hierarchy. */
.product-body > .product-actions {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.product-actions > .product-more {
  flex: 1 1 110px; width: auto; min-width: 0; min-height: 38px;
  justify-content: flex-start; gap: 8px; margin: 0; padding: 4px 0;
  border: 0; font-size: 13px; line-height: 1.5; text-decoration: none;
}
.product-actions > .product-more .ui-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.product-actions > .product-more:hover { text-decoration: underline; text-underline-offset: 4px; }
body :is(.buyer-compare-button,.qualification-links > .text-link,.product-resource-links > .text-link,
  .detail-copy > .detail-actions > .text-link,.detail-copy > .detail-actions > .button-outline,
  .manufacturing-photo > .text-link,.manufacturing-products > .text-link,
  .documentary-grid > article > .text-link,.compact-preparation-item > .text-link) {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: fit-content; max-width: 100%; min-height: 38px; margin: 0; padding: 7px 12px;
  border: 1px solid #cbd4cd; border-radius: 6px; background: #fff; color: var(--forest);
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.5;
  text-align: center; text-decoration: none; cursor: pointer; box-shadow: none;
  transition: background-color .16s, border-color .16s, color .16s;
}
body .product-actions > .buyer-compare-button,
body .detail-copy > .detail-actions > .buyer-compare-button { flex: 0 0 118px; width: 118px; inline-size: 118px; white-space: nowrap; }
body :is(.product-actions,.detail-actions) > button.buyer-compare-button[aria-pressed="false"] {
  background: var(--forest); color: #fff; border-color: var(--stone); font-weight: 500;
}
html:lang(en) body .product-actions > .buyer-compare-button,
html:lang(en) body .detail-copy > .detail-actions > .buyer-compare-button { flex-basis: 160px; width: 160px; inline-size: 160px; font-size: 13px; }
.buyer-compare-button::before {
  content: none;
}
body :is(.product-actions,.detail-actions) > button.buyer-compare-button[aria-pressed="true"] {
  border-color: #9fb7a8; background: #eaf1eb; color: var(--forest); text-decoration: none;
}
.buyer-compare-button[aria-pressed="true"]::before {
  content: ''; display: block;
  flex-basis: 10px; width: 10px; height: 6px; margin-bottom: 3px;
  border: solid currentColor; border-width: 0 0 1.5px 1.5px; background: none; transform: rotate(-45deg);
}
body :is(.buyer-compare-button,.qualification-links > .text-link,.product-resource-links > .text-link,
  .detail-copy > .detail-actions > .text-link,.detail-copy > .detail-actions > .button-outline,
  .manufacturing-photo > .text-link,.manufacturing-products > .text-link,
  .documentary-grid > article > .text-link,.compact-preparation-item > .text-link):hover {
  border-color: #809b89; background: #f0f4ef; color: var(--forest); box-shadow: none; text-decoration: none;
}
body :is(.product-actions,.detail-actions) > button.buyer-compare-button[aria-pressed="true"]:hover { background: #dfeade; }
body :is(.product-actions,.detail-actions) > button.buyer-compare-button[aria-pressed="false"]:hover { background: var(--forest-dark); color: #fff; }
body :is(.product-actions > .product-more,.buyer-compare-button,.qualification-links > .text-link,.product-resource-links > .text-link,
  .detail-copy > .detail-actions > .text-link,.detail-copy > .detail-actions > .button-outline,
  .manufacturing-photo > .text-link,.manufacturing-products > .text-link,
  .documentary-grid > article > .text-link,.compact-preparation-item > .text-link):focus-visible {
  outline: 2px solid var(--forest); outline-offset: 3px;
}
.qualification-links { gap: 8px; }
/* Text-led disclosures retain their native keyboard and expanded/collapsed behaviour. */
body:not(.admin-body) :is(.capacity-helper,.product-resources,.buyer-export-tools,.buyer-brief,.buyer-faq,.project-checklist,.contact-help,.compact-reading,.compact-preparation-item) > summary {
  font-family: inherit; font-size: 15px; font-weight: 400; color: #26703e; text-decoration: none;
}
body:not(.admin-body) :is(.capacity-helper,.product-resources,.buyer-export-tools,.buyer-brief,.buyer-faq,.project-checklist,.contact-help,.compact-reading,.compact-preparation-item) > summary h3 { font: inherit; color: inherit; }
:root { scroll-behavior: auto; }
body .buyer-shortlist { scroll-margin-top: 0; }
/* Reserve the loading line so page changes cannot push the reader controls down and back up. */
.catalogue-load-feedback { min-height: 56px; display: flex; align-items: center; gap: 12px; }
.catalogue-load-feedback[hidden] { display: flex !important; visibility: hidden; }
.catalogue-load-feedback > p { margin: 0; }
.cms-preview-document :is(.product-actions,.qualification-links) [data-cms-preview-key] {
  font: inherit; color: inherit; transform: none;
}
/* Combining the two actions removes one shared content row, including mixed bag/bottle grids. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 541px) {
    .product-grid > .product-card:has(.product-actions) { grid-row: span 4; }
    .product-grid > .product-card:has(.product-actions) > .product-body { grid-row: span 3; }
    .product-grid > .product-card:has(.product-actions):has(.product-capacity):has(.product-detail) { grid-row: span 5; }
    .product-grid > .product-card:has(.product-actions):has(.product-capacity):has(.product-detail) > .product-body { grid-row: span 4; }
  }
}
@media (max-width: 720px), (pointer: coarse) {
  body :is(.product-actions > .product-more,.buyer-compare-button,.qualification-links > .text-link,.product-resource-links > .text-link,
    .detail-copy > .detail-actions > .text-link,.detail-copy > .detail-actions > .button-outline,
    .manufacturing-photo > .text-link,.manufacturing-products > .text-link,
    .documentary-grid > article > .text-link,.compact-preparation-item > .text-link) { min-height: 44px; }
  .product-actions > .product-more { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(.product-actions,.detail-actions) > .text-link.buyer-compare-button { transition: none; }
}
@media (forced-colors: active) {
  body :is(.product-actions,.detail-actions) > .buyer-compare-button[aria-pressed="true"] { border: 2px solid Highlight; }
}
