/* One app-download destination for all care and booking entry points. */
#app-dialog.download-popup {
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #dde7e1;
  border-radius: 26px;
  color: #17352f;
  background: #fff;
  box-shadow: 0 28px 90px #073f394d;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#app-dialog.download-popup::backdrop {
  background: #073f39b8;
  backdrop-filter: blur(5px);
}
#app-dialog .download-popup-shell {
  position: relative;
}
#app-dialog .download-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  color: #17352f;
  background: #fffffff2;
  box-shadow: 0 3px 12px #073f3920;
  cursor: pointer;
}
#app-dialog .download-popup-close svg {
  width: 22px;
  height: 22px;
}
#app-dialog .download-popup-photo {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #073f39;
}
#app-dialog .download-popup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
#app-dialog .download-popup-brand {
  position: absolute;
  top: 19px;
  left: 24px;
  padding: 4px 10px;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  color: #fff;
  background: #073f39b3;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.4;
}
#app-dialog .download-popup-content {
  padding: 27px 34px 25px;
  text-align: center;
}
#app-dialog .download-popup-eyebrow {
  margin: 0 0 11px;
  color: #00685f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 1.5;
}
#app-dialog #app-dialog-title {
  max-width: 480px;
  margin: 0 auto;
  color: #17352f;
  font-family: Inter, sans-serif;
  font-size: clamp(27px, 4vw, 37px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -1.3px;
}
#app-dialog #app-dialog-description {
  max-width: 450px;
  margin: 13px auto 0;
  color: #52665e;
  font-size: 14px;
  line-height: 1.6;
}
#app-dialog .download-popup-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin-top: 23px;
  padding: 13px 18px;
  border: 1px solid #00685f;
  border-radius: 14px;
  color: #fff;
  background: #00685f;
  box-shadow: 0 4px 12px #00685f20;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}
#app-dialog .download-popup-primary:hover {
  background: #073f39;
  box-shadow: 0 5px 16px #00685f2b;
}
#app-dialog .download-popup-primary svg {
  width: 21px;
  height: 21px;
}
#app-dialog .download-popup-stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}
#app-dialog .download-popup-store {
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #dde7e1;
  border-radius: 12px;
  color: #17352f;
  background: #f7f9f6;
  text-align: left;
}
#app-dialog .download-popup-store svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
}
#app-dialog .download-popup-store strong,
#app-dialog .download-popup-store small {
  display: block;
  line-height: 1.35;
}
#app-dialog .download-popup-store strong {
  font-size: 12px;
  font-weight: 600;
}
#app-dialog .download-popup-store small {
  margin-top: 2px;
  color: #52665e;
  font-size: 10px;
}
#app-dialog .download-popup-status {
  min-height: 18px;
  margin: 13px 0 0;
  color: #52665e;
  font-size: 11px;
  line-height: 1.55;
}
#app-dialog .download-popup-status.is-requested {
  color: #00685f;
}
#app-dialog button:focus-visible {
  outline: 3px solid #ddf48a;
  outline-offset: 3px;
}
#app-dialog .download-popup-primary:focus-visible {
  outline-color: #17352f;
}
/* A native button spans each pricing card, without nesting interactive elements. */
.pricing-card[data-plan-card] {
  position: relative;
  cursor: pointer;
}
.pricing-card .pricing-card-action {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.pricing-card .pricing-card-action:focus-visible {
  outline: 3px solid #00685f;
  outline-offset: 4px;
}
.pricing-card[data-plan-card]:hover {
  border-color: #00685f;
  box-shadow: 0 6px 20px #1e4a3f12;
}
@keyframes download-popup-arrive {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes download-popup-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #app-dialog.download-popup[open] {
    animation: download-popup-arrive 230ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  #app-dialog.download-popup[open]::backdrop {
    animation: download-popup-backdrop 180ms ease-out both;
  }
}
@media (max-width: 600px) {
  #app-dialog.download-popup {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    margin: 0;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }
  #app-dialog .download-popup-photo {
    height: 155px;
    object-position: center 66%;
  }
  #app-dialog .download-popup-content {
    padding: 22px 22px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  #app-dialog .download-popup-brand {
    top: 15px;
    left: 18px;
    font-size: 18px;
  }
  #app-dialog .download-popup-close {
    top: 10px;
    right: 10px;
  }
  #app-dialog #app-dialog-title {
    max-width: 350px;
    font-size: 29px;
    letter-spacing: -1px;
  }
  #app-dialog #app-dialog-description {
    font-size: 13px;
    line-height: 1.5;
  }
}
@media (max-width: 600px) and (max-height: 650px) {
  #app-dialog .download-popup-photo {
    height: 104px;
  }
  #app-dialog .download-popup-content {
    padding: 16px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  #app-dialog .download-popup-eyebrow {
    display: none;
  }
  #app-dialog #app-dialog-title {
    font-size: 25px;
    line-height: 1.13;
  }
  #app-dialog #app-dialog-description {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.45;
  }
  #app-dialog .download-popup-primary {
    min-height: 46px;
    margin-top: 14px;
    padding-block: 11px;
    font-size: 15px;
  }
  #app-dialog .download-popup-stores {
    gap: 9px;
    margin-top: 10px;
  }
  #app-dialog .download-popup-store {
    min-height: 43px;
    padding: 6px 8px;
    gap: 7px;
  }
  #app-dialog .download-popup-status {
    margin-top: 8px;
    font-size: 10.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #app-dialog.download-popup[open],
  #app-dialog.download-popup[open]::backdrop {
    animation: none !important;
  }
  #app-dialog button {
    transition: none !important;
  }
}
