/* Product detail pages only. Native catalogue cards, purchasing logic and imagery stay with the theme. */
body#product #wrapper {
  --product-ink: #292d32;
  --product-slate: #373f50;
  --product-leaf: #315923;
  --product-lime: #a3d378;
  --product-pale: #edf3e8;
  --product-line: #d9dfe1;
}
#product .page-title-overlap h1 {
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
#product #main > :is(.product-container, .product-description-details, .product-accessories, .category-products, .featured-products) {
  margin-bottom: clamp(24px, 3vw, 44px) !important;
}
#product #main .product-container {
  border: 1px solid var(--product-line);
  border-radius: 14px !important;
  box-shadow: 0 3px 15px rgb(55 63 80 / 8%) !important;
}
#product .product-container .product-details {
  width: 100%;
  min-width: 0;
  max-width: none;
  color: var(--product-slate);
}
#product .product-details .product-price .text-accent {
  color: var(--product-ink) !important;
  font-weight: 650 !important;
}
#product #wrapper :is(.notAuthorizedBoxDetail, .product-quantity .add-to-cart, .product-container a[data-agco-primary], .product-description a[data-agco-primary]) {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 44px;
  border-radius: 7px !important;
  border: 1px solid transparent !important;
  background: var(--product-lime) !important;
  color: #192a14 !important;
  text-align: center;
  box-shadow: none !important;
}
#product #wrapper .notAuthorizedBoxDetail {
  position: relative;
  margin: 0 0 14px;
}
#product #wrapper .notAuthorizedBoxText {
  margin: 0;
  padding: 10px 14px;
  color: #192a14 !important;
  line-height: 1.45;
  text-align: center;
}
#product #wrapper .notAuthorizedBoxText a {
  color: inherit !important;
  font-size: inherit !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#product .notAuthorizedBoxText a::after { content: ""; position: absolute; inset: 0; border-radius: 7px; }
#product .notAuthorizedBoxDetail:focus-within,
#product #main :is(a, button, input, select, summary):focus-visible { outline: 3px solid var(--product-leaf); outline-offset: 2px; }
#product #wrapper .product-quantity .add-to-cart { font-weight: 650; white-space: normal; }
#product #wrapper .product-quantity .add-to-cart:disabled { opacity: .6; }
#product .product-quantity .alert-warning {
  color: #25394d;
  background: #edf2f7;
  border-color: #c5d3df;
  border-inline-start: 4px solid #526779;
  padding: 10px 14px;
  margin: 12px 0 !important;
}
#product .product-description,
#product .product-description-details #product-details {
  max-width: 56rem;
  margin-inline: auto;
  color: var(--product-slate);
}
#product :is(.product-description, .product-description-short) {
  min-width: 0;
  line-height: 1.55;
  overflow-wrap: break-word;
}
#product :is(.product-description, .product-description-short) :is(p, ul, ol) { margin-block-end: .75em; }
#product :is(.product-description, .product-description-short) :is(img, video, iframe) { max-width: 100%; }
#product :is(.product-description, .product-description-short) img { height: auto; }
#product #main > div > h2,
#product .product-description h2.agco-light-heading {
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}
#product .product-description h2.agco-light-heading { margin: 1.2em 0 .55em; }
#product .product-description h3.agco-light-heading { font-size: clamp(1.12rem, 1.8vw, 1.45rem); line-height: 1.25; }
#product :is(.product-description, .product-description-short) > :first-child { margin-top: 0; }
#product :is(.product-description, .product-description-short) > :last-child { margin-bottom: 0; }
#product .ag-product-help { display:grid; gap:8px; margin-top:12px; }
#product .ag-product-help a {
  display:grid; place-items:center; padding:9px 12px; min-height:44px; border-radius:7px;
  text-align:center; background:var(--product-slate); color:#fff;
  line-height:1.35; font-weight:650; text-decoration:none;
}
#product .ag-product-help a:is(:hover,:focus-visible) { background:var(--product-ink); color:#fff; text-decoration:underline; }
/* The theme can reinsert the old account-only links after a variant change. */
#product .product-actions:has(.ag-product-help) .product-additional-info > :is(.customcontent_container, .customcontent_container2) {
  display:none !important;
}
#product #productPanels .card { border-color: var(--product-line); }
#product #productPanels .card-header { background: #f4f6f3; }
#product #productPanels .accordion-heading a { color: var(--product-slate); }
#product .cz-thumblist-item.active { border-color: var(--product-leaf); }
@media (max-width: 767px) {
  #product #main .product-container { padding: 12px !important; }
  #product .product-container > .row { padding-bottom: 0 !important; }
  #product .product-container .cz-thumblist {
    display: flex; flex-wrap: nowrap; gap: 6px; max-width: 100%;
    margin: 0; padding: 6px 0 4px; overflow-x: auto; scroll-snap-type: x proximity;
  }
  #product .product-container .cz-thumblist-item {
    flex: 0 0 52px; width: 52px; height: 52px; margin: 0; scroll-snap-align: start;
  }
  #product .product-container .product-add-to-cart,
  #product .product-container #productPanels { margin-bottom: 12px !important; }
  #product .product-container .product-add-to-cart:empty { margin: 0 !important; }
  #product #productPanels .card-body { padding: 12px; }
  #product .product-description,
  #product .product-description-short { display: flow-root; }
  #product :is(.product-description, .product-description-short) table {
    display: block; max-width: 100%; overflow-x: auto;
  }
  #product .product-quantity > .d-flex:has(> .qty) { flex-wrap: wrap; gap: 8px; }
  #product .product-quantity > .d-flex > .add { flex: 0 0 100%; }
}
