/* InWeb MTL theme utilities + floating contact rail */

html {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #c50a2c;
}

a:hover,
a:focus {
  color: #9a0823;
}

.padding-top-10 {
  padding-top: 10px !important;
}

.padding-top-0 {
  padding-top: 0 !important;
}

.padding-bottom-0 {
  padding-bottom: 0 !important;
}

.color-white {
  color: #fff !important;
}

/* Hide leftover Autoshowroom chrome if any plugin leftover still prints it */
body.mtl-has-plugin-header header.tz-header,
body.mtl-has-plugin-header .tz-header,
body.mtl-has-plugin-footer footer.autoshowroom-footer,
body.mtl-has-plugin-footer .autoshowroom-footer {
  display: none !important;
}

/* Floating contact rail */
#fixedbutton-contact {
  position: fixed;
  z-index: 999;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 5px 15px;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
  opacity: 0.75;
}

#fixedbutton-contact i {
  color: #c50a2c !important;
  font-size: 25px;
  padding: 0;
}

#fixedbutton-contact .text-center {
  padding: 10px 0;
  position: relative;
}

#fixedbutton-contact .text-center a {
  width: 100%;
  height: 100%;
  display: block;
  text-align: center;
}

#fixedbutton-contact .text-center > .icon-hover {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

#fixedbutton-contact .text-center:hover > .icon-hover {
  opacity: 1;
  background: #fff;
  right: 40px;
  min-width: 75px;
  font-size: 120%;
  text-align: center;
  color: #c50a2c;
  font-weight: bold;
  padding: 5px;
  top: 10px;
  transition: all 0.3s ease;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

@media (max-width: 767px) {
  #fixedbutton-contact {
    padding: 4px 10px;
  }

  #fixedbutton-contact i {
    font-size: 20px;
  }

  #fixedbutton-contact .text-center {
    padding: 8px 0;
  }
}
