/* Homepage booking link. Keep the existing fixed-width site layout intact. */
#doctolib-booking {
  position: fixed;
  z-index: 1000;
  top: 180px;
  right: 0;
  display: block;
  width: 100px;
  padding: 10px;
  border-radius: 4px 0 0 4px;
  background: #006fb1;
  color: #fff;
  font: 14px/1.4 Arial, Tahoma, Verdana, sans-serif;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
}

#doctolib-booking:hover {
  background: #00598e;
}

#doctolib-booking:focus {
  outline: 3px solid #00436a;
  outline-offset: 3px;
}

#doctolib-booking .doctolib-name {
  display: block;
  margin: 10px auto 0;
  font-size: 16px;
  font-weight: bold;
}

/* This legacy page has no viewport meta tag: phones use a wide layout
   viewport. Device width selects phones; vw keeps the button legible after
   their automatic page scaling. The width query also covers narrow windows. */
@media screen and (max-width: 767px), screen and (max-device-width: 767px) {
  body {
    padding-bottom: 22vw;
  }

  #doctolib-booking {
    top: auto;
    right: 2vw;
    bottom: 3vw;
    left: 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3vw;
    box-sizing: border-box;
    width: auto;
    min-height: 14vw;
    padding: 3vw;
    border-radius: 1vw;
    font-size: 4.5vw;
  }

  #doctolib-booking br {
    display: none;
  }

  #doctolib-booking .doctolib-name {
    margin: 0;
    font-size: 4.5vw;
  }
}
