:root {
  --mvp-contact-cookie-offset: 0px;
}

#ast-scroll-top {
  display: none !important;
}

.mvp-contact-float,
.mvp-contact-float * {
  box-sizing: border-box;
}

.mvp-contact-float {
  position: fixed;
  z-index: 9000;
  top: 50%;
  right: 24px;
  bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  color: #10213a;
  font-family: Inter, Roboto, Arial, sans-serif;
  transform: translateY(-50%);
}

.mvp-contact-float__item {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.mvp-contact-float__button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(5, 42, 86, .32);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.mvp-contact-float__button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(5, 42, 86, .33);
}

.mvp-contact-float__button:focus-visible,
.mvp-contact-float__close:focus-visible,
.mvp-contact-float__panel a:focus-visible {
  outline: 3px solid #ffdc5b;
  outline-offset: 3px;
}

.mvp-contact-float__button svg {
  width: 26px;
  height: 26px;
}

.mvp-contact-float__button--email {
  background: #0b6fda;
}

.mvp-contact-float__button--whatsapp {
  background: #1e9d58;
}

.mvp-contact-float__button--facebook {
  background: #1877f2;
}

.mvp-contact-float__button--top {
  display: none;
  background: linear-gradient(145deg, #0877ff, #075bd8);
}

.mvp-contact-float__button--top.is-visible {
  display: grid;
}

.mvp-contact-float__panel {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  color: #10213a;
  background: #fff;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(2, 22, 49, .2);
}

.mvp-contact-float__email-panel {
  width: max-content;
  min-width: 210px;
  padding: 12px 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.mvp-contact-float__email:hover .mvp-contact-float__email-panel,
.mvp-contact-float__email:focus-within .mvp-contact-float__email-panel,
.mvp-contact-float__email.is-open .mvp-contact-float__email-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.mvp-contact-float__email-panel span {
  display: block;
  margin-bottom: 3px;
  color: #63768c;
  font-size: 11px;
  font-weight: 700;
}

.mvp-contact-float__email-panel a {
  color: #075fbf;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mvp-contact-float__email-panel a:hover {
  text-decoration: underline;
}

.mvp-contact-float__whatsapp-panel {
  width: 320px;
  padding: 22px;
}

.mvp-contact-float__whatsapp-panel[hidden] {
  display: none;
}

.mvp-contact-float__whatsapp-panel strong {
  display: block;
  padding-right: 26px;
  color: #10213a;
  font-size: 18px;
  line-height: 1.25;
}

.mvp-contact-float__whatsapp-panel p {
  margin: 10px 0 16px;
  color: #5b6e80;
  font-size: 13px;
  line-height: 1.55;
}

.mvp-contact-float__chat-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: #fff !important;
  background: #168a4a;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.mvp-contact-float__chat-link:hover {
  color: #fff !important;
  background: #10753d;
}

.mvp-contact-float__close {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #506477;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.mvp-contact-float__close:hover {
  color: #10213a;
  background: #edf3f7;
}

body:has(.msc-quote-dialog[open]) .mvp-contact-float {
  display: none;
}

@media (max-width: 768px) {
  .mvp-contact-float {
    top: 50%;
    right: max(14px, env(safe-area-inset-right));
    bottom: auto;
    gap: 9px;
  }

  .mvp-contact-float__button {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }

  .mvp-contact-float__panel {
    right: calc(100% + 9px);
  }

  .mvp-contact-float__whatsapp-panel {
    width: min(310px, calc(100vw - 84px));
    padding: 19px;
  }

  body.mvp-rental-page .mvp-contact-float__whatsapp {
    display: none;
  }
}

@media (max-width: 380px) {
  .mvp-contact-float__email-panel {
    min-width: 198px;
  }

  .mvp-contact-float__whatsapp-panel {
    width: calc(100vw - 80px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mvp-contact-float,
  .mvp-contact-float__button,
  .mvp-contact-float__email-panel {
    transition: none;
  }
}
