/* Mobile app download popup — see site/snippets/apppopup.php */

.app-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25em;
}

.app-popup[hidden] {
  display: none;
}

/* Desktop and laptop visitors never see this, even if the script mis-fires. */
@media screen and (min-width: 901px) {
  .app-popup {
    display: none !important;
  }
}

.app-popup-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .65);
}

.app-popup-panel {
  position: relative;
  width: 100%;
  max-width: 22em;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--color-white, #fff);
  border-radius: 4px;
  padding: 1.5em 1.25em 1.25em 1.25em;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.app-popup-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.4em;
  height: 2.4em;
  font-size: 1.5em;
  line-height: 1;
  color: var(--color-code-black, #231f20);
}

.app-popup-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1em;
  border-radius: 2px;
}

.app-popup-title {
  font-size: 1.25em;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-code-blue, #003876);
  padding-bottom: .5em;
}

.app-popup-message {
  font-size: 1em;
  line-height: 1.45;
  color: #545454;
  padding-bottom: 1em;
}

.app-popup-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5em;
}

.app-popup-badges img {
  display: block;
  height: 2.75em;
  width: auto;
}

.app-popup-extra-link {
  display: inline-block;
  margin-top: 1em;
  font-size: .95em;
  font-weight: 600;
  color: var(--color-code-red, #a63070);
  text-decoration: underline;
}

.app-popup-continue {
  display: block;
  width: 100%;
  margin-top: 1.25em;
  padding-top: .5em;
  font-size: .9em;
  color: var(--color-grey, #777);
  text-decoration: underline;
}

/* Stops the page behind the popup from scrolling while it is open. */
body.app-popup-is-open {
  overflow: hidden;
}
