/* ==========================================================
   MH Contact Widget (Footer floating form)
   ========================================================== */

.mh-contact-widget {
  bottom: 0;             
  right: 24px;
  position: fixed;
  z-index: 9999;
}

/* Toggle button */
.mh-contact-toggle {
  align-items: center;
  /* background-color: #3e5f6f; */
  background-color: #2A837E;
  border: 0;
  border-radius: 8px 8px 0 0;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 16px;       
  font-weight: 700;
  gap: 10px;
  padding: 16px 22px 10px 22px;    
}

.mh-contact-widget.is-open .mh-contact-toggle {
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.mh-contact-toggle:hover {
  background-color: #2A837E;
}

.mh-contact-icon {
  font-size: 18px;
  line-height: 1;
}

/* Panel */
.mh-contact-panel {
  background-color: #ffffff;
  border-radius: 8px 0 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  box-sizing: border-box;
  display: none;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 16px 20px 20px;
  width: 360px;
}

/* Open state */
.mh-contact-widget.is-open .mh-contact-panel {
  display: block;
}

/* Forminator fixes inside widget */
.mh-contact-panel .forminator-ui {
  margin: 0;
  padding: 0;
}

.mh-contact-panel .forminator-title {
  color: #3e5f6f;
  font-weight: 700;
}

.mh-contact-panel .forminator-ui.forminator-custom-form[data-grid=open] .forminator-row:not(:last-child) {
  margin-bottom: 10px !important;
}

/* Jyrätään Elementor tyylejä: */

h2.elementor-heading-title a,
h3.elementor-heading-title a,
a.elementor-button {
  text-decoration: none !important;
}

footer .elementor-nav-menu--main .elementor-nav-menu ul {
  margin-left: 150px !important;
}

footer.elementor-location-footer {
  position: relative;
}

footer.elementor-location-footer::after {
  background-color: white;
  bottom: -100px;
  content: "";
  display: block;
  height: 100px;        
  left: 0;
  position: absolute;              
  width: 100%;
  z-index: 2;
}

body.search div.page-content {
  margin: 0 auto;
  max-width: 1210px;
  padding-top: 200px;
}

body.search div.page-content .wp-post-image {
  display: none;
}

body.search div.page-content article {
  margin-bottom: 50px;
} 

@media (max-width: 1410px) {
  body.search div.page-content {
    max-width: calc(100% - 200px);
  }
}

/* 1410 */

/* Mobile */
@media (max-width: 600px) {
  .mh-contact-panel {
    max-width: calc(100vw - 32px);
    width: 100%;
  }

  .mh-contact-widget {
    right: 0;
  }

  .mh-contact-toggle {
    padding: 12px 20px 7px 20px;
    /* font-size: 12px; */
  }

  .mh-contact-panel .forminator-ui.forminator-custom-form[data-grid=open] .forminator-row:not(:last-child) {
    margin-bottom: 5px !important;;
  }

  .mh-contact-panel .forminator-ui.forminator-custom-form[data-design=default] .forminator-input {
    padding: 2px;
  }

  footer.elementor-location-footer::after {
    bottom: -200px;
    height: 200px;        
  }

  body.search div.page-content {
    max-width: calc(100% - 40px);
  }
}