/* =========================================================
   RYHA 3.1.85 – produkto viršus
   Galerija | Summary
            | Prekės informacija -> Pristatymas
   Aprašymas – po visu top-grid
   ========================================================= */

body.single-product div.product > .ryha-product-top-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  column-gap:clamp(24px,3vw,56px)!important;
  align-items:start!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0 0 34px!important;
  padding:0!important;
  box-sizing:border-box!important;
}

body.single-product div.product > .ryha-product-top-grid > .woocommerce-product-gallery,
body.single-product div.product > .ryha-product-top-grid > .ryha-product-gallery{
  grid-column:1!important;
  grid-row:1!important;
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  align-self:start!important;
}

body.single-product div.product > .ryha-product-top-grid > .summary,
body.single-product div.product > .ryha-product-top-grid > .summary.entry-summary{
  grid-column:2!important;
  grid-row:1!important;
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  box-sizing:border-box!important;
  align-self:start!important;
}

/* Canonical „Prekės informacija“ – summary viduje, tiesiai virš Pristatymo. */
body.single-product .summary > .ryha-product-info-summary-slot{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:14px 0 0!important;
  padding:0!important;
  box-sizing:border-box!important;
}

body.single-product .summary > .ryha-product-info-summary-slot > .ryha-product-info-card{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  border-radius:14px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.045)!important;
}

body.single-product .ryha-product-info-summary-slot .ryha-product-info-head{
  padding:11px 13px!important;
  font-size:15px!important;
}
body.single-product .ryha-product-info-summary-slot .ryha-product-info-body{
  gap:7px!important;
  padding:10px 12px 12px!important;
}
body.single-product .ryha-product-info-summary-slot .ryha-info-row{
  grid-template-columns:96px minmax(0,1fr)!important;
  min-height:34px;
  gap:8px!important;
}
body.single-product .ryha-product-info-summary-slot .ryha-info-label{
  font-size:12px!important;
}
body.single-product .ryha-product-info-summary-slot .ryha-info-value,
body.single-product .ryha-product-info-summary-slot .ryha-copy-sku{
  max-width:100%;
  box-sizing:border-box;
  padding:7px 10px!important;
  border-radius:10px!important;
  font-size:12.5px!important;
}

/* Gamintojas – paspaudžiama brand archyvo nuoroda. */
body.single-product .ryha-product-brand-link{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;min-width:0;color:#153d22;font:inherit;font-weight:800;
  text-decoration:none!important;transition:color .16s ease,background-color .16s ease,transform .16s ease;
}
body.single-product .ryha-product-brand-link:hover,
body.single-product .ryha-product-brand-link:focus-visible{color:#008000;text-decoration:none!important}
body.single-product .ryha-product-brand-link__arrow{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:24px;height:24px;border-radius:999px;background:#eaf8ee;color:#008000;
  font-size:20px;line-height:1;font-weight:800;transition:transform .16s ease,background-color .16s ease;
}
body.single-product .ryha-product-brand-link:hover .ryha-product-brand-link__arrow,
body.single-product .ryha-product-brand-link:focus-visible .ryha-product-brand-link__arrow{
  transform:translateX(2px);background:#dff4e4;
}

body.single-product div.product > .woocommerce-tabs,
body.single-product div.product > .related,
body.single-product div.product > .upsells{clear:both!important}

@media (max-width:921px){
  body.single-product div.product > .ryha-product-top-grid{display:block!important;margin-bottom:24px!important}
  body.single-product div.product > .ryha-product-top-grid > .woocommerce-product-gallery,
  body.single-product div.product > .ryha-product-top-grid > .ryha-product-gallery,
  body.single-product div.product > .ryha-product-top-grid > .summary,
  body.single-product div.product > .ryha-product-top-grid > .summary.entry-summary{
    width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;
  }
  body.single-product div.product > .ryha-product-top-grid > .summary,
  body.single-product div.product > .ryha-product-top-grid > .summary.entry-summary{margin-top:22px!important}
}

@media (max-width:640px){
  body.single-product .ryha-product-info-summary-slot .ryha-info-row{grid-template-columns:1fr!important;gap:6px!important}
}

/* =========================================================
   RYHA 3.1.86 – „Prekės informacija“ visada matoma
   No-ETA būsena slepia tik pristatymo metodus, ne produkto duomenis.
   ========================================================= */
body.single-product .summary > .ryha-product-info-summary-slot,
html.ryha-kramp-no-eta-preboot body.single-product .summary > .ryha-product-info-summary-slot,
body.single-product.ryha-kramp-no-eta .summary > .ryha-product-info-summary-slot,
body.single-product .summary > .ryha-product-info-summary-slot.ryha-availability-source-hidden,
body.single-product .summary > .ryha-product-info-summary-slot.ryha-no-eta-contact-duplicate{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  margin-top:14px!important;
  padding:0!important;
}
body.single-product .summary > .ryha-product-info-summary-slot > .ryha-product-info-card,
html.ryha-kramp-no-eta-preboot body.single-product .summary > .ryha-product-info-summary-slot > .ryha-product-info-card,
body.single-product.ryha-kramp-no-eta .summary > .ryha-product-info-summary-slot > .ryha-product-info-card{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}

/* =========================================================
   RYHA 3.1.88 – canonical produkto informacijos kortelė
   Nepriklausoma nuo legacy gallery-slot rendererio.
   ========================================================= */
body.single-product #ryha-product-info-gallery-slot,
body.single-product .ryha-product-info-gallery-slot{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
}

body.single-product #ryha-product-info-summary-slot[data-ryha-canonical-info="1"]{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}

body.single-product #ryha-product-info-summary-slot[data-ryha-canonical-info="1"] > .ryha-product-info-card{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  margin:0!important;
  overflow:hidden!important;
  border:1px solid #cfe7d3!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#f8fcf8 0%,#f3faf4 100%)!important;
  box-shadow:0 8px 22px rgba(18,65,31,.045)!important;
}

body.single-product #ryha-product-info-summary-slot .ryha-product-info-head{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:42px!important;
  padding:10px 13px!important;
  border-bottom:1px solid #dbeadf!important;
  background:rgba(255,255,255,.25)!important;
  color:#1c5a2d!important;
  box-sizing:border-box!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-product-info-head strong{
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:800!important;
  color:#1c5a2d!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-info-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  color:#21a13a!important;
  font-size:16px!important;
  line-height:1!important;
}

body.single-product #ryha-product-info-summary-slot .ryha-product-info-body{
  display:grid!important;
  gap:7px!important;
  padding:10px!important;
  box-sizing:border-box!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-info-row{
  display:grid!important;
  grid-template-columns:96px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  min-height:34px!important;
  margin:0!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-info-label{
  color:#68776c!important;
  font-size:11.5px!important;
  line-height:1.25!important;
  font-weight:700!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-info-value,
body.single-product #ryha-product-info-summary-slot .ryha-copy-sku{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  width:100%!important;
  min-height:34px!important;
  padding:7px 10px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border:1px solid #d7e9db!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#21482b!important;
  font-family:inherit!important;
  font-size:12.5px!important;
  line-height:1.3!important;
  font-weight:700!important;
  text-align:left!important;
  box-shadow:none!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-copy-sku{
  width:max-content!important;
  max-width:100%!important;
  min-height:30px!important;
  cursor:pointer!important;
  background:#eaf8ee!important;
  border-color:#cbe5d1!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-cat-path{
  flex-wrap:wrap!important;
  gap:5px!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-cat-lines,
body.single-product #ryha-product-info-summary-slot .ryha-cat-line{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  min-width:0!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-cat-link,
body.single-product #ryha-product-info-summary-slot .ryha-cat-leaf-link{
  color:#20562f!important;
  text-decoration:none!important;
  font-weight:750!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-cat-link:hover,
body.single-product #ryha-product-info-summary-slot .ryha-cat-leaf-link:hover{
  color:#008000!important;
  text-decoration:underline!important;
  text-underline-offset:2px!important;
}
body.single-product #ryha-product-info-summary-slot .ryha-cat-sep{
  color:#91a398!important;
  font-weight:700!important;
}

@media(max-width:640px){
  body.single-product #ryha-product-info-summary-slot .ryha-info-row{
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  body.single-product #ryha-product-info-summary-slot .ryha-info-label{
    padding-left:2px!important;
  }
}


/* 3.1.88: kortelė yra nuolatinė summary dalis, nepriklausoma nuo ATP/stock/no-ETA. */
body.single-product div.product .summary > #ryha-product-info-summary-slot[data-ryha-canonical-info="1"]{
  display:block!important; visibility:visible!important; opacity:1!important;
  position:relative!important; width:100%!important; max-width:100%!important;
  height:auto!important; min-height:1px!important; max-height:none!important;
  overflow:visible!important; margin:14px 0!important; clear:both!important;
}
body.single-product div.product .summary > #ryha-product-info-summary-slot[data-ryha-canonical-info="1"].ryha-availability-source-hidden,
body.single-product div.product .summary > #ryha-product-info-summary-slot[data-ryha-canonical-info="1"].ryha-availability-prehidden,
body.single-product div.product .summary > #ryha-product-info-summary-slot[data-ryha-canonical-info="1"].ryha-no-eta-contact-duplicate{
  display:block!important; visibility:visible!important; opacity:1!important; height:auto!important;
}

/* 3.1.89 – top-level wrapper additionally carries .ryha-product-info-card only
   to survive the legacy removeOldMetaButtons() cleanup. Inner card owns visuals. */
body.single-product #ryha-product-info-summary-slot.ryha-product-info-card[data-ryha-protected-info-wrapper="1"]{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
