/* Rossini 2.8.3 — compact vertical rhythm on SINGLE PRODUCT pages only. */
/* No changes to galleries, accordions, form logic, breadcrumbs link sizes, or carousel speed. */

/* Remove unused theme/builder space before the product breadcrumb. */
body.rplg-active.rplg-model :is(#content,#main,.site-content,.site-main){
  padding-top:0!important;
}
body.rplg-active.rplg-model :is(#content,#main,.site-content,.site-main) > .container:first-child{
  padding-top:0!important;
}
body.rplg-active.rplg-model nav.rplg-breadcrumb{
  margin:8px auto 8px!important;
  padding-top:0!important;padding-bottom:0!important;
}

/* Bring the main image and the thumbnail rail close to the breadcrumb. */
body.rplg-active.rplg-model .rplg-gallery{
  margin:6px auto 12px!important;
  padding-top:0!important;padding-bottom:0!important;
}
body.rplg-active.rplg-model .rplg-gallery-thumbs{
  padding:4px 0 0!important;
  margin:0!important;
  gap:8px!important;
}
/* WPBakery sometimes adds huge artificial blank spacer blocks to product pages. */
body.rplg-active.rplg-model .rplg-model-content .vc_empty_space{
  display:none!important;
}
body.rplg-active.rplg-model .rplg-model-content > :is(.vc_row,.wpb_row,.vc_section,.wpb_content_element){
  margin-top:0!important;margin-bottom:8px!important;
}
body.rplg-active.rplg-model .rplg-model-content :is(.wpb_single_image,.wpb_gallery,.vc_images_carousel){
  margin-bottom:8px!important;
}
body.rplg-active.rplg-model .rplg-model-content > :is(h1,h2,h3){
  margin-top:8px!important;margin-bottom:8px!important;
}
/* Keep actual request form inputs and validation messages usable. */
body.rplg-active.rplg-model .rplg-model-content > p{
  margin-top:0!important;margin-bottom:8px!important;
}

/* Action row and original accordion: tight, but no overlap when expanded. */
body.rplg-active.rplg-model .rplg-model-actions{
  margin:8px auto 10px!important;
}
body.rplg-active.rplg-model .rplg-model-actions.rplg-native-actions{
  margin:8px auto 10px!important;
}
body.rplg-active.rplg-model .rplg-model-actions.rplg-native-actions > .rplg-native-tech-toggle > :not(.rplg-native-tech-trigger){
  margin-top:8px!important;
}
body.rplg-active.rplg-model .rplg-back-row[data-rplg-single-return],
body.rplg-active.rplg-model .rplg-model-content + .rplg-back-row{
  margin-top:8px!important;margin-bottom:10px!important;
  padding-top:0!important;
}
body.rplg-active.rplg-model .rplg-model-actions .rplg-back-row[data-rplg-single-return]{
  margin:0!important;
}

/* Related carousel begins shortly after product content, footer remains 22px away. */
body.rplg-active.rplg-model .rplg-related{
  margin-top:12px!important;margin-bottom:0!important;
  padding-top:0!important;padding-bottom:0!important;
}
body.rplg-active.rplg-model .rplg-related-header{
  margin-bottom:8px!important;
}
body.rplg-active.rplg-model .rplg-related-header h2{
  margin:4px 0 6px!important;
}
body.rplg-active.rplg-model .rplg-related-card strong{
  padding-top:8px!important;padding-bottom:0!important;
}
body.rplg-active.rplg-model #rplg-footer{margin-top:22px!important;}

@media(max-width:700px){
  body.rplg-active.rplg-model nav.rplg-breadcrumb{margin:6px auto 6px!important;}
  body.rplg-active.rplg-model .rplg-gallery{margin:4px auto 8px!important;}
  body.rplg-active.rplg-model .rplg-gallery-thumbs{padding:3px 0 0!important;gap:6px!important;}
  body.rplg-active.rplg-model .rplg-related{margin-top:8px!important;}
  body.rplg-active.rplg-model .rplg-related-header{margin-bottom:6px!important;}
}
