/* Hide unconfigured side panel placeholder from Highend theme */
.side-panel-widgets:empty,
.widgetized-area:empty,
.side-panel-section .textwidget:empty {
  display: none !important;
}

.side-panel-section .textwidget:has(p:only-child),
.side-panel-widgets .textwidget,
#side-panel .textwidget {
  display: none !important;
}

/* Floating CTA panel — fixed on the far right, top set by JS */
.chipmir-cta-float {
  position: fixed;
  top: 320px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: auto;
  min-width: 240px;
  pointer-events: none;
}

.chipmir-cta-float .chipmir-cta-actions,
.chipmir-cta-float .chipmir-cta-contact {
  pointer-events: auto;
}

.chipmir-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.chipmir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.chipmir-btn-primary {
  background: #e63333;
  color: #fff !important;
}

.chipmir-btn-primary:hover {
  background: #cf2b2b;
  transform: translateY(-1px);
}

.chipmir-btn-secondary {
  background: rgba(255, 255, 255, 0.98);
  color: #1a5276 !important;
  border: 2px solid #1a5276;
}

.chipmir-btn-secondary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.chipmir-cta-contact {
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
}

.chipmir-cta-contact-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #333 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.chipmir-cta-contact-link:hover {
  color: #1a5276 !important;
  text-decoration: underline !important;
}

@media (max-width: 767px) {
  .chipmir-cta-float {
    top: auto !important;
    bottom: 16px;
    right: 12px;
    min-width: 200px;
    gap: 8px;
  }

  .chipmir-btn {
    min-height: 40px;
    font-size: 13px;
    padding: 0 12px;
  }

  .chipmir-cta-contact-link {
    font-size: 11px;
  }
}

/* Hide empty default sidebar widgets on blog / popular pages */
.widget_recent_comments:not(:has(li)),
.widget_tag_cloud:not(:has(a)),
.widget_most_commented:not(:has(li)) {
  display: none !important;
}

/* SEO page H1 injected when the builder left empty headings */
.chipmir-page-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#rev_slider_6_1 rs-layer[data-type="text"],
#slider-6-slide-20-layer-0,
#slider-6-slide-201-layer-0 {
  left: 0 !important;
  right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

/* Cooperate / Highend title shortcode: remove black boxed outline */
.shortcode-title h1,
.shortcode-title h2,
.shortcode-title h3,
.shortcode-wrapper.shortcode-title h1,
.page-id-795 .shortcode-title h1 {
  border: none !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.page-id-795 .shortcode-title {
  text-align: center !important;
}

.page-id-795 .shortcode-title h1 {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

#side-panel,
.side-panel-section {
  display: none !important;
}

.chipmir-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 8px 12px;
  background: #1a5276;
  color: #fff !important;
  text-decoration: none !important;
}

.chipmir-skip-link:focus {
  left: 8px;
  top: 8px;
}

.home #main-content {
  padding-top: 12px !important;
}

.home .vc_custom_1441703353873 {
  margin-bottom: 20px !important;
}

#hb-canvas-effect,
#contact-map,
#header-dropdown,
#hb-side-section,
.hb-close-side-section {
  display: none !important;
}

.home .flexslider .slides a {
  pointer-events: none;
  cursor: default;
}

.home .flex-direction-nav,
.home .flex-control-nav {
  display: none !important;
}

.author-box,
.author-description,
section:has(> .author-description),
.hb-related-posts:not(:has(.related-item)),
.chipmir-post-kicker,
.div-cat-title:empty,
#hb_recent_comments_widget-1:not(:has(li)),
#hb_ad_twofifty_widget-1,
.hb_ad_twofifty_widget,
#tag_cloud-1.widget_tag_cloud,
#hb-preloader,
#hb_most_commented_posts_widget-1,
.widget_most_commented,
.hb-open-side-section,
#show-nav-menu,
.flex-direction-nav a.flex-disabled,
.flexslider:has(.slides > li:only-child) .flex-direction-nav,
.flexslider:has(.slides > li:only-child) .flex-control-nav {
  display: none !important;
}

.chipmir-icon-whatsapp {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.04 2C6.58 2 2.15 6.43 2.15 11.89c0 1.76.46 3.48 1.34 5L2 22l5.25-1.38a9.86 9.86 0 0 0 4.79 1.22h.01c5.46 0 9.89-4.43 9.89-9.89C21.94 6.43 17.5 2 12.04 2zm5.76 14.08c-.24.68-1.4 1.26-1.94 1.34-.5.07-1.13.1-1.82-.11-.42-.13-.96-.31-1.66-.61-2.92-1.26-4.82-4.21-4.97-4.4-.14-.2-1.18-1.57-1.18-3 0-1.42.74-2.12 1.01-2.41.26-.28.58-.35.77-.35h.55c.18 0 .42-.07.66.5.24.58.82 2 .89 2.15.07.14.12.31.02.5-.1.2-.14.31-.28.48-.14.16-.3.37-.42.5-.14.14-.28.29-.12.56.16.28.7 1.16 1.5 1.88 1.04.93 1.91 1.22 2.18 1.36.28.14.44.12.6-.07.16-.2.7-.81.88-1.09.18-.28.37-.23.62-.14.26.1 1.64.77 1.92.91.28.14.47.21.54.32.07.12.07.68-.17 1.36z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.04 2C6.58 2 2.15 6.43 2.15 11.89c0 1.76.46 3.48 1.34 5L2 22l5.25-1.38a9.86 9.86 0 0 0 4.79 1.22h.01c5.46 0 9.89-4.43 9.89-9.89C21.94 6.43 17.5 2 12.04 2zm5.76 14.08c-.24.68-1.4 1.26-1.94 1.34-.5.07-1.13.1-1.82-.11-.42-.13-.96-.31-1.66-.61-2.92-1.26-4.82-4.21-4.97-4.4-.14-.2-1.18-1.57-1.18-3 0-1.42.74-2.12 1.01-2.41.26-.28.58-.35.77-.35h.55c.18 0 .42-.07.66.5.24.58.82 2 .89 2.15.07.14.12.31.02.5-.1.2-.14.31-.28.48-.14.16-.3.37-.42.5-.14.14-.28.29-.12.56.16.28.7 1.16 1.5 1.88 1.04.93 1.91 1.22 2.18 1.36.28.14.44.12.6-.07.16-.2.7-.81.88-1.09.18-.28.37-.23.62-.14.26.1 1.64.77 1.92.91.28.14.47.21.54.32.07.12.07.68-.17 1.36z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.social-list .whatsapp a {
  color: #25d366;
}

#top-custom-link-widget a[href=""] {
  pointer-events: none;
  cursor: default;
}

a#to-top:focus,
.chipmir-btn:focus,
.chipmir-cta-contact-link:focus {
  outline: 2px solid #1a5276;
  outline-offset: 2px;
}
