/* RENNiS STEP157 — evidence-based correction of STEP156 layout/CTA selectors.
 * Does not change links, prices, WooCommerce actions, content or customer information. */
:root { --rn157-ink:#27313a; --rn157-orange:#ff6500; }

/* STEP156 made the informational wrapper width:100%, max-width:100%, margin:0.
 * The real Blocksy content column is wider than its separate page title. */
body.rn155-info-page .rn156-info-body {
  box-sizing:border-box!important;
  display:flow-root!important;
  position:relative!important;
  width:calc(100% - 36px)!important;
  max-width:1030px!important;
  margin:12px auto 30px!important;
  padding:25px 30px 28px!important;
  justify-self:center!important;
  background:#fff;
  border:1px solid #dfe5e9;
  border-radius:10px;
}
body.rn155-info-page .rn156-info-body :is(h2,h3,h4) {
  margin:22px 0 13px!important;
  color:var(--rn157-ink)!important;
  line-height:1.32!important;
}
body.rn155-info-page .rn156-info-body h2 {font-size:clamp(22px,2vw,28px)!important;}
body.rn155-info-page .rn156-info-body h3 {font-size:clamp(19px,1.55vw,23px)!important;}
body.rn155-info-page .rn156-info-body :is(p,li,dd,dt,address) {
  font:400 17px/1.72 Roboto,Arial,sans-serif!important;
  color:#33404a!important;
  overflow-wrap:break-word!important;
}
body.rn155-info-page .rn156-info-body a[href]:not(.button):not(.wp-element-button) {
  color:#ce5000!important;
  text-underline-offset:3px;
}
body.rn155-info-page .rn156-info-body a[href]:not(.button):hover {color:#a63d00!important;}
body.rn155-info-page .rn156-info-body a:focus-visible {outline:2px solid var(--rn157-orange)!important;outline-offset:3px;}
body.rn155-info-page .rn156-info-body a:is([href^="tel:"],[href^="mailto:"]) {
  display:table!important;
  margin:6px 0!important;
  max-width:100%!important;
  line-height:1.55!important;
}
@media(max-width:767px) {
  body.rn155-info-page .rn156-info-body {
    width:calc(100% - 24px)!important;
    margin:8px auto 24px!important;
    padding:18px 16px 20px!important;
    border-radius:8px;
  }
  body.rn155-info-page .rn156-info-body :is(p,li,dd,dt,address) {font-size:16px!important;line-height:1.66!important;}
}

/* STEP156 targeted only a.button directly under li.product. Blocksy may wrap it.
 * RN157 marks the real existing native Woo CTA, regardless of its nesting. */
body.rn052-archive ul.products li.product.rn157-card,
body.single-product .related.products ul.products li.product.rn157-card {
  position:relative!important;
  box-sizing:border-box!important;
  min-width:0!important;
  padding-bottom:13px!important;
}
body.rn052-archive ul.products li.product.rn157-card .rn157-cart-cta,
body.single-product .related.products ul.products li.product.rn157-card .rn157-cart-cta {
  box-sizing:border-box!important;
  display:inline-flex!important;
  flex:0 0 46px!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:flex-end!important;
  position:static!important;
  float:none!important;
  clear:both!important;
  width:46px!important;
  max-width:46px!important;
  min-width:46px!important;
  height:43px!important;
  max-height:43px!important;
  min-height:43px!important;
  padding:0!important;
  margin:9px 0 0 auto!important;
  border:0!important;
  border-radius:7px!important;
  background-color:#ff6500!important;
  background-image:url('../rennis-desktop-144/cart-white.svg')!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:22px 22px!important;
  box-shadow:none!important;
  text-indent:0!important;
  font-size:0!important;
  line-height:0!important;
  color:transparent!important;
  letter-spacing:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  opacity:1!important;
}
body.rn052-archive ul.products li.product.rn157-card .rn157-cart-cta:is(.product_type_variable,.product_type_grouped,.product_type_external),
body.single-product .related.products ul.products li.product.rn157-card .rn157-cart-cta:is(.product_type_variable,.product_type_grouped,.product_type_external) {
  background-image:url('../rennis-desktop-144/arrow-white.svg')!important;
}
body.rn052-archive ul.products li.product.rn157-card .rn157-cart-cta:hover,
body.single-product .related.products ul.products li.product.rn157-card .rn157-cart-cta:hover {
  background-color:#e75500!important;
}
body.rn052-archive ul.products li.product.rn157-card .rn157-cart-cta:focus-visible,
body.single-product .related.products ul.products li.product.rn157-card .rn157-cart-cta:focus-visible {
  outline:2px solid #d94b00!important;
  outline-offset:2px!important;
}
/* For existing native CTA wrappers with no other content, align the original button right. */
body .rn157-card .rn157-cart-holder {
  box-sizing:border-box!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
}
body .rn157-card .rn157-cart-holder .rn157-cart-cta {margin-left:auto!important;}
/* Keep existing Woo 'View cart' link readable after AJAX add; not a second orange button. */
body .rn157-card a.added_to_cart {font-size:12px!important;line-height:1.4!important;color:#c34a00!important;background:transparent!important;}

/* Small, safe spacing adjustment to Woo's established native image gallery.
 * No changes to the FlexSlider structure, its height JS or thumbnails' actions. */
@media(min-width:1100px) {
  body.rn052-product .product .woocommerce-product-gallery {gap:7px!important;}
  body.rn052-product .product .woocommerce-product-gallery .flex-viewport {max-height:405px!important;}
  body.rn052-product .product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
  body.rn052-product .product .woocommerce-product-gallery .woocommerce-product-gallery__image {max-height:405px!important;}
  body.rn052-product .product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
  body.rn052-product .product .woocommerce-product-gallery img.wp-post-image {max-height:400px!important;object-fit:contain!important;}
  body.rn052-product .product .woocommerce-product-gallery .flex-control-thumbs {margin-top:5px!important;}
}
/* Long favorite lists must scroll clear of the dialog's action footer. */
.rn-dialog .rn155-fav-list,
#rn-favorites .rn155-fav-list {
  max-height:min(340px,46vh)!important;
  padding:0 3px 18px 0!important;
  margin:10px 0 16px!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.rn-dialog .rn155-fav-list li,
#rn-favorites .rn155-fav-list li {min-width:0!important;gap:12px!important;}
@media(max-width:767px) {
  body.rn052-archive ul.products li.product.rn157-card .rn157-cart-cta,
  body.single-product .related.products ul.products li.product.rn157-card .rn157-cart-cta {
    height:44px!important;min-height:44px!important;width:48px!important;min-width:48px!important;max-width:48px!important;
  }
}
