/* html {
  box-sizing: border-box;
} */

/* html, body {
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  padding: 0;
  margin: 0;
} */

*,
*:before,
*:after {
  box-sizing: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* MODAL */
.mhp8-body-blackout {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  position: fixed;
  z-index: 1010;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(59, 73, 93, 0.45);
  display: none;
  opacity: 0;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mhp8-body-blackout.is-blacked-out {
  display: block;
  opacity: 1;
}
.mhp8-body-blackout.is-blacked-out-and-hidden {
  display: none;
  opacity: 0;
}

.mhp8-popup-trigger {
  display: inline-block;
}
.mhp8-popup-trigger.hide-trigger {
  position: absolute;
  display: block;
  top: -9999px;
  left: -9999px;
}

.mhp8-popup-modal {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  height: auto;
  max-height: 640px;
  width: 80%;
  max-width: 640px;
  background-color: #fff;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 36px;
  opacity: 0;
  pointer-events: none;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1011;
  box-shadow: 0 19px 38px rgba(0, 0, 0, 0.06), 0 15px 12px rgba(0, 0, 0, 0.04);
  overflow-y: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.mhp8-popup-modal.mhp8-popup-modal-bigger {
  width: 100%;
  max-width: 780px;
  max-height: 100%;
  overflow-y: auto;
}

.mhp8-popup-modal.is--visible {
  opacity: 1;
  pointer-events: auto;
}
.mhp8-popup-modal.is--hidden {
  z-index: -20;
  opacity: 0;
  pointer-events: auto;
}

.mhp8-popup-modal.mhp8-popup-modal-bigger.is--visible {
  top: 0;
  transform: translate(-50%, 0%);
}

.mhp8-popup-modal__close {
  background-color: #00b3c4;
  color: white;
  position: absolute;
  font-size: 1.2rem;
  line-height: 64px;
  text-align: center;
  right: 0;
  top: 0;
  width: 64px;
  height: 64px;
  cursor: pointer;
}
.mhp8-popup-modal__close:hover {
  color: #fff;
}

.mhp8-popup-modal .header {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.mhp8-popup-modal .header .h4 {
  font-size: 18px;
  line-height: 26px;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mhp8-popup-modal .body {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  padding-top: 40px;
}

@media only screen and (max-width: 768px) {
  .mhp8-popup-modal {
    width: 90%;
    padding: 1.5rem;
    max-height: 80vh;
  }

  .mhp8-popup-modal .body {
    padding-top: 54px;
  }
}

@media only screen and (max-width: 520px) {
  .mhp8-popup-modal {
    max-height: 92%;
  }
}

/* TOOLTIP */
.mhp8-tooltip {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(59, 73, 93, 0.05);
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  display: inline-block;
  text-align: center;
  line-height: 24px;
  /* transform: translate3d(-50%, -50%, 0); */
  -webkit-user-select: none;
  font-size: 10px;
  font-weight: 700;
}
.mhp8-tooltip::before {
  content: attr(data-tool);
  position: absolute;
  min-width: 260px;
  max-width: 260px;
  right: -6px;
  bottom: 100%;
  padding: 12px 16px;
  background: rgba(59, 73, 93, 1);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  border-radius: 4px !important;
  transition: all 0.2s ease;
  transform: translate3d(0, 5px, 0) scale(0.5);
  font-size: 11px !important;
  font-weight: 300 !important;
  text-align: left !important;
  line-height: 16px !important;
}
.mhp8-tooltip.active::before {
  opacity: 1;
  transform: translate3d(0, -10px, 0) scale(1);
}

/* CHECKBOX */
.mhp8-switch-holder {
  position: relative;
  display: block;
  padding: 32px 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

.mhp8-switch-holder .mhp8-switch {
  position: relative;
  display: block;
  width: 50%;
  height: auto;
  float: left;
  padding: 12px 16px;
  --line: rgba(59, 73, 93, 0.25);
  --dot: #00b3c4;
  --circle: rgba(59, 73, 93, 0.45);
  --duration: 0.3s;
  --text: #3c454c;
  cursor: pointer;
  text-align: left;
}
.mhp8-switch-holder .mhp8-switch input {
  display: none;
}
.mhp8-switch-holder .mhp8-switch input + div {
  position: relative;
}
.mhp8-switch-holder .mhp8-switch input + div:before,
.mhp8-switch input + div:after {
  --s: 1;
  content: "";
  position: absolute;
  height: 4px;
  top: 10px;
  width: 24px;
  background: var(--line);
  transform: scaleX(var(--s));
  transition: transform var(--duration) ease;
}
.mhp8-switch-holder .mhp8-switch input + div:before {
  --s: 0;
  left: 0;
  transform-origin: 0 50%;
  border-radius: 2px 0 0 2px;
}
.mhp8-switch-holder .mhp8-switch input + div:after {
  left: 28px;
  transform-origin: 100% 50%;
  border-radius: 0 2px 2px 0;
}
.mhp8-switch-holder .mhp8-switch input + div span {
  padding-left: 16px;
  line-height: 24px;
  color: var(--text);
}
.mhp8-switch-holder .mhp8-switch input + div span:before {
  --x: 0;
  --b: var(--circle);
  --s: 4px;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 var(--s) var(--b);
  transform: translateX(var(--x));
  transition: box-shadow var(--duration) ease, transform var(--duration) ease;
}
.mhp8-switch-holder .mhp8-switch input + div span:not(:empty) {
  padding-left: 54px;
}
.mhp8-switch-holder .mhp8-switch input:checked + div:before {
  --s: 1;
}
.mhp8-switch-holder .mhp8-switch input:checked + div:after {
  --s: 0;
}
.mhp8-switch-holder .mhp8-switch input:checked + div span:before {
  --x: 28px;
  --s: 12px;
  --b: var(--dot);
}

@media only screen and (max-width: 768px) {
  .mhp8-switch-holder {
    padding: 16px 0 32px;
  }

  .mhp8-switch-holder .mhp8-switch {
    width: 100%;
    font-size: 14px;
  }

  .mhp8-popup-modal .header h4 {
    font-size: 18px;
    line-height: 24px;
  }

  .mhp8-tooltip::before {
    min-width: 224px;
    max-width: 224px;
  }
}

.mhp8-popup-modal .footer {
  background-color: transparent !important;
  padding: 0 !important;
}

/* BUTTON */
.mhp8-popup-modal .footer .mhp8-button {
  background-color: #00b3c4;
  position: relative;
  display: block;
  width: 100%;
  height: 48px;
  color: #fff;
  font-size: 16px;
  font-weight: 100;
  text-align: center;
  line-height: 48px;
  margin-top: 1.5rem;
  outline: 0px none;
  outline: 0px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.mhp8-popup-modal .footer .mhp8-button:hover {
  opacity: 0.85;
  color: #fff;
}

.mhp8-popup-modal .footer .mhp8-button.save {
  background-color: rgba(59, 73, 93, 0.05);
  color: #3c454c;
  margin-top: 0.75rem;
  cursor: pointer;
}

.mhp8-popup-modal .footer .mhp8-button.without-styles {
  background-color: transparent;
  color: #00b3c4;
  margin-top: 0.325rem;
  font-weight: 700;
}

/* LIST */
.mhp8-popup-modal .footer ul.mhp8 {
  list-style-type: none;
  position: relative;
  margin: 0;
  padding: 0;
  margin-top: 0.75rem;
  text-align: center;
}
.mhp8-popup-modal .footer ul.mhp8 li {
  position: relative;
  display: inline-block;
  padding: 0 4px;
  margin: 0 4px;
  text-align: center;
}

.mhp8-popup-modal .footer ul.mhp8 li:after {
  background-color: rgba(59, 73, 93, 0.25);
  content: "";
  position: absolute;
  display: block;
  width: 1px;
  height: 12px;
  font-size: 14px;
  top: 11px;
  right: -8px;
}

.mhp8-popup-modal .footer ul.mhp8 li:last-child:after {
  display: none;
}

.mhp8-popup-modal .footer ul.mhp8 li a {
  color: rgba(59, 73, 93, 0.45);
  font-size: 14px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mhp8-popup-modal .footer ul.mhp8 li a:hover {
  color: #00b3c4;
}

.mhp8-popup-modal .footer .powered-by {
  position: relative;
  display: inline-block;
  width: 100%;
  height: auto;
  overflow: hidden;
  text-align: center;
  padding-top: 32px;
  margin-bottom: -24px;
}

.mhp8-popup-modal .footer .powered-by span.text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  float: none;
  color: rgba(59, 73, 93, 0.45);
  font-size: 10px;
  line-height: 26px;
  padding-right: 4px;
}

.mhp8-popup-modal .footer .powered-by span.logo {
  background-color: #00b3c4;
  position: relative;
  display: inline-block;
  overflow: hidden;
  float: none;
  margin: 0 auto;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
}

.mhp8-popup-modal .footer .powered-by span.logo img {
  position: relative;
  display: inline-block;
  width: auto;
  height: 18px;
  vertical-align: top;
}

@media only screen and (max-width: 768px) {
  .mhp8-popup-modal .footer .mhp8-button {
    font-size: 13px;
  }

  .mhp8-popup-modal .footer ul.mhp8 li {
    display: block;
    text-align: center;
  }

  .mhp8-popup-modal .footer ul.mhp8 li:after {
    display: none;
  }
}
