/* The "finding you the best prices" dialog on the results page.

   Compiled on its own into _common/css/loading-dialog.css and linked from
   results.aspx, because main.css is a Compass build we cannot regenerate.
   It replaces the grey spinner gif with a tyre that turns, and takes the empty
   header bar off the top of the box. */
#dialog_loading {
  font-family: "Inter", Helvetica, Arial, sans-serif;
}
#dialog_loading .modal__container {
  position: relative;
  width: min(360px, 100vw - 32px);
  max-width: none;
  padding: 34px 28px 30px;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 18px 50px rgba(20, 25, 35, 0.22);
  text-align: center;
}
#dialog_loading {
  /* the header held nothing but the close control, and read as a blank bar */
}
#dialog_loading .modal__header {
  position: absolute;
  top: 10px;
  right: 10px;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#dialog_loading .modal__title {
  display: none;
}
#dialog_loading .modal__close {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  color: #868C98;
  font-size: 13px;
}
#dialog_loading .modal__close:hover {
  background-color: #f2f4f7;
  color: #202020;
}
#dialog_loading .modal__content {
  margin: 0;
  padding: 0;
}

.loading-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* the logo, breathing gently: this dialog has a white panel of its own, so the
   mark sits on it properly, where the tyre is kept for the bare overlay */
.loading-popup__logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  animation: loading-logo-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-logo-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-popup__logo {
    animation: none;
  }
}
.loading-popup__message {
  max-width: 15em;
  margin: 0;
  color: #202020;
  font-family: "Montserrat", "Inter", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

@media all and (max-width: 767px) {
  #dialog_loading .modal__container {
    padding: 30px 20px 26px;
  }
  .loading-popup {
    gap: 16px;
  }
  .loading-popup__logo {
    width: 165px;
  }
  .loading-popup__message {
    font-size: 12.5px;
  }
}
