/* RTS v0.9.0 — settings, Elementor banner areas, product UX and toast notices */

/* Configurable header typography */
.rts-topbar-v07__inner{min-height:var(--rts-topbar-height)!important}
.rts-topbar-v07__region{font-size:var(--rts-topbar-left-size)!important;font-weight:var(--rts-topbar-left-weight)!important;color:var(--rts-topbar-left-color)!important}
.rts-topbar-v07__nav .menu{gap:var(--rts-topbar-menu-gap)!important}
.rts-topbar-v07__nav a{font-size:var(--rts-topbar-menu-size)!important;font-weight:var(--rts-topbar-menu-weight)!important;color:var(--rts-topbar-menu-color)!important}
.rts-topbar-v07__nav a:hover{color:var(--rts-topbar-menu-hover)!important}
.rts-topbar-v07__phone,.rts-topbar-v07__phone strong{font-size:var(--rts-topbar-phone-size)!important;font-weight:var(--rts-topbar-phone-weight)!important;color:var(--rts-topbar-phone-color)!important}
.rts-navrow-v07__inner{min-height:var(--rts-primary-menu-height)!important}
.rts-primary-nav-v07 .menu{gap:var(--rts-primary-menu-gap)!important}
.rts-primary-nav-v07 .menu>li>a{height:var(--rts-primary-menu-height)!important;font-size:var(--rts-primary-menu-size)!important;font-weight:var(--rts-primary-menu-weight)!important;color:var(--rts-primary-menu-color)!important}
.rts-primary-nav-v07 .menu>li>a:hover{color:var(--rts-primary-menu-hover)!important}

/* Elementor / shortcode areas */
.rts-elementor-home-hero,.rts-elementor-home-after-catalog,.rts-elementor-home-before-footer{width:100%}
.rts-elementor-home-after-catalog,.rts-elementor-home-before-footer{padding-top:var(--rts-v07-section,64px)}
.rts-elementor-home-hero .elementor,.rts-elementor-home-after-catalog .elementor,.rts-elementor-home-before-footer .elementor{width:100%;max-width:100%}
.rts-elementor-home-hero>.elementor{width:min(calc(var(--rts-container) * 1.10),calc(100vw - 32px));margin-inline:auto}

/* Mega-menu hover boundary: the backdrop is outside the interactive menu */
.rts-mega-backdrop{z-index:80!important;pointer-events:auto}
.rts-mega{pointer-events:auto}
.rts-mega::before{height:14px!important;top:-10px!important}

/* Industries and partners */
.rts-industry-grid-v07{grid-template-columns:repeat(var(--rts-industry-cols),minmax(0,1fr))!important}
.rts-industry-card-v07 span{color:var(--rts-industry-link)!important;transition:color .2s ease}
.rts-industry-card-v07:hover span{color:var(--rts-industry-link-hover)!important}
.rts-brand-strip-v07{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}
.rts-brand-strip-v07>a{display:flex;align-items:center;justify-content:center;min-height:78px;padding:14px;border-right:1px solid var(--rts-v07-line);color:#17436f;text-align:center;text-decoration:none;background:#fff}
.rts-brand-strip-v07>a:last-child{border-right:0}
.rts-brand-strip-v07>a:hover{background:#f7faff}
.rts-brand-strip-v07>a img{display:block;max-width:145px;max-height:50px;width:auto;height:auto;object-fit:contain}
.rts-brand-strip-v07>a span{color:#17436f!important;font-size:13px;line-height:1.25;font-weight:740}
.rts-home-seo-v09{padding-top:33px;border-top:1px solid var(--rts-v07-line)}
.rts-home-seo-v09 h2{margin-bottom:16px}
.rts-home-seo-v09 p{max-width:1080px;color:#62758a;line-height:1.75}
.rts-home-seo-v09 img,.rts-home-seo-v09 video,.rts-home-seo-v09 iframe{border-radius:16px}

/* Footer text follows the theme setting */
.rts-footer-v07__brand p,.rts-footer-v07__menu a,.rts-footer-v07__contacts a,.rts-footer-v07__contacts span,.rts-site-footer-v07 section>ul a,.rts-footer-v07__contacts li{font-size:var(--rts-footer-font-size)!important}
.rts-footer-v07__bottom .rts-container{font-size:calc(var(--rts-footer-font-size) - 1px)!important}

/* Breadcrumb settings */
.rts-breadcrumbs,.woocommerce .woocommerce-breadcrumb.rts-breadcrumbs{gap:var(--rts-breadcrumb-gap)!important;padding-top:var(--rts-breadcrumb-pt)!important;padding-bottom:var(--rts-breadcrumb-pb)!important;color:var(--rts-breadcrumb-color)!important;font-size:var(--rts-breadcrumb-size)!important}
.rts-breadcrumbs a,.woocommerce .woocommerce-breadcrumb.rts-breadcrumbs a{color:var(--rts-breadcrumb-link)!important}
.rts-breadcrumbs a:hover,.woocommerce .woocommerce-breadcrumb.rts-breadcrumbs a:hover{color:var(--rts-breadcrumb-hover)!important}

/* Product gallery: wider image area and non-overlapping vertical thumbnails */
.single-product div.product{grid-template-columns:minmax(0,1.18fr) minmax(320px,.68fr)!important;gap:38px!important}
.single-product div.product .woocommerce-product-gallery{padding-left:0!important;min-width:0}
.single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs){padding-left:94px!important}
.single-product div.product .woocommerce-product-gallery__wrapper{border:1px solid #e3eaf1!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important;overflow:hidden}
.single-product div.product .woocommerce-product-gallery__image img{width:100%!important;height:520px!important;padding:26px!important;object-fit:contain!important;background:#fff!important}
.single-product .flex-control-thumbs{left:0!important;top:0!important;width:76px!important;gap:10px!important}
.single-product .flex-control-thumbs li{width:76px!important}
.single-product .flex-control-thumbs img{width:76px!important;height:68px!important;padding:5px!important;border-radius:10px!important;background:#fff!important}
.single-product div.product .summary{min-width:0}
.single-product div.product .summary form.cart.is-loading{opacity:.55;pointer-events:none}
.rts-single-cart-control,.rts-single-quick-add{width:min(100%,390px)!important;min-height:48px!important}
.rts-single-cart-control{grid-template-columns:48px 1fr 48px;height:48px;margin:20px 0}
.rts-single-quick-add{margin:20px 0;border:0;border-radius:10px;background:var(--rts-primary);color:#fff;font-weight:750}

/* PhotoSwipe controls for both single- and multi-image galleries */
.pswp{z-index:999999!important}
.pswp__top-bar{display:flex!important;visibility:visible!important;opacity:1!important;background:linear-gradient(180deg,rgba(0,0,0,.45),transparent)!important}
.pswp__button--close,.pswp__button--fs,.pswp__button--zoom{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.pswp__button--close{margin-left:auto!important}

/* Product description, characteristics and information column */
.rts-product-detail{margin-top:42px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
.rts-anchor-tabs{position:sticky;top:0;z-index:30;gap:30px;padding:0 2px!important;border-bottom:1px solid #dde5ed!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(10px)}
.rts-anchor-tabs a{padding:17px 0 14px!important;border-bottom:3px solid transparent!important;color:#566b82!important;font-size:13px!important;font-weight:760!important;text-transform:uppercase;letter-spacing:.025em}
.rts-anchor-tabs a:hover,.rts-anchor-tabs a.is-active{border-color:var(--rts-primary)!important;color:var(--rts-primary)!important}
.rts-product-detail__grid{grid-template-columns:minmax(0,1fr) 310px!important;gap:46px!important;padding:30px 0 0!important}
.rts-product-detail__main{min-width:0}
.rts-detail-section{scroll-margin-top:80px;margin:0 0 40px!important;padding:0 0 40px!important;border-bottom:1px solid #edf1f5!important}
.rts-detail-section:last-child{margin-bottom:0!important;border-bottom:0!important}
.rts-detail-section h2{margin-bottom:22px!important;color:#172f4d!important;font-size:26px!important;font-weight:760!important}
.rts-product-description{max-width:900px;color:#425b73;font-size:15px;line-height:1.75}
.rts-product-description p{margin:0 0 16px}
.rts-product-description ul,.rts-product-description ol{display:grid;gap:8px;margin:16px 0 20px;padding-left:22px}
.rts-product-description li::marker{color:var(--rts-primary)}
.woocommerce table.shop_attributes{width:100%;border-collapse:collapse!important}
.woocommerce table.shop_attributes tr{border-bottom:1px solid #edf1f5}
.woocommerce table.shop_attributes tr:last-child{border-bottom:0}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{padding:13px 8px!important;border:0!important;background:transparent!important;font-size:14px!important;line-height:1.45!important;vertical-align:top}
.woocommerce table.shop_attributes th{width:48%;padding-left:0!important;color:#687b8e!important;font-weight:500!important;text-align:left}
.woocommerce table.shop_attributes td{padding-right:0!important;color:#243e59!important;font-weight:650!important;font-style:normal!important}
.woocommerce table.shop_attributes td p{padding:0!important;margin:0!important;font-style:normal!important}
.rts-product-detail__aside{position:sticky;top:72px;display:grid;gap:14px;align-self:start;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
.rts-product-detail__aside:empty{display:none}
.rts-product-aside-card{padding:20px 21px;border:1px solid #e1e8ef;border-radius:16px;background:#f7f9fb}
.rts-product-aside-card h3{margin:0 0 15px;color:#1d3754;font-size:17px;font-weight:760}
.rts-product-aside-card dl{display:grid;grid-template-columns:1fr;gap:3px;margin:0 0 13px!important;padding:0!important;border:0!important}
.rts-product-aside-card dl:last-child{margin-bottom:0!important}
.rts-product-aside-card dt{color:#7a8b9d!important;font-size:11.5px!important}
.rts-product-aside-card dd{margin:0!important;color:#2d465f!important;font-size:13.5px!important;font-weight:700!important}
.rts-product-kit{color:#435b72;font-size:13px;line-height:1.6}
.rts-product-kit p{margin:0}

/* Toast notices replacing default WooCommerce bars */
.woocommerce-notices-wrapper>.woocommerce-message,.woocommerce-notices-wrapper>.woocommerce-error,.woocommerce-notices-wrapper>.woocommerce-info{display:none!important}
.rts-toast-stack{position:fixed;z-index:999990;top:18px;right:18px;display:grid;gap:10px;width:min(390px,calc(100vw - 28px));pointer-events:none}
.rts-toast{--rts-toast-accent:var(--rts-alert-info);display:grid;grid-template-columns:5px minmax(0,1fr) 30px;align-items:start;gap:12px;padding:14px 12px 14px 0;border:1px solid color-mix(in srgb,var(--rts-toast-accent) 30%,#dce5ee);border-radius:var(--rts-alert-radius);background:var(--rts-alert-bg);color:var(--rts-alert-text);box-shadow:0 18px 48px rgba(14,40,72,.18);opacity:0;transform:translateX(22px);transition:opacity .2s ease,transform .2s ease;pointer-events:auto;overflow:hidden}
.rts-toast.is-visible{opacity:1;transform:none}
.rts-toast.is-leaving{opacity:0;transform:translateX(22px)}
.rts-toast--success{--rts-toast-accent:var(--rts-alert-success)}
.rts-toast--error{--rts-toast-accent:var(--rts-alert-error)}
.rts-toast--info{--rts-toast-accent:var(--rts-alert-info)}
.rts-toast__mark{align-self:stretch;background:var(--rts-toast-accent)}
.rts-toast__message{padding-top:1px;font-size:13px;line-height:1.5}
.rts-toast__message a{color:var(--rts-primary);font-weight:700}
.rts-toast__close{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:transparent;color:#718397;font-size:21px;line-height:1}
.rts-toast__close:hover{background:#f0f3f6;color:#263f59}

/* Admin editor spacing */
.rts-admin-editor-field{grid-column:1/-1}
.rts-admin-editor-field .wp-editor-wrap{max-width:100%}

@media(max-width:1180px){
  .rts-industry-grid-v07{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .single-product div.product{grid-template-columns:minmax(0,1.05fr) minmax(310px,.75fr)!important;gap:28px!important}
  .single-product div.product .woocommerce-product-gallery__image img{height:450px!important}
}

@media(max-width:900px){
  .rts-industry-grid-v07{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .single-product div.product{grid-template-columns:1fr!important}
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs){padding-left:86px!important}
  .rts-product-detail__grid{grid-template-columns:1fr!important;gap:28px!important}
  .rts-product-detail__aside{position:static;order:2;grid-template-columns:repeat(2,minmax(0,1fr))}
  .rts-anchor-tabs{top:0}
}

@media(max-width:680px){
  .rts-industry-grid-v07{grid-template-columns:1fr!important}
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs){padding-left:0!important;padding-bottom:78px!important}
  .single-product .flex-control-thumbs{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%!important;flex-direction:row!important;overflow:auto}
  .single-product .flex-control-thumbs li{width:64px!important;flex:0 0 64px}
  .single-product .flex-control-thumbs img{width:64px!important;height:58px!important}
  .single-product div.product .woocommerce-product-gallery__image img{height:330px!important;padding:16px!important}
  .rts-product-detail__aside{grid-template-columns:1fr}
  .rts-anchor-tabs{gap:20px;overflow:auto}
  .rts-anchor-tabs a{white-space:nowrap;font-size:11px!important}
  .rts-toast-stack{top:10px;right:10px;width:calc(100vw - 20px)}
}
