.app-download-popup {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 80;
  width: min(350px, calc(100vw - 44px));
  padding: 17px;
  border: 1px solid rgba(229, 57, 53, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 50px rgba(52, 26, 23, .22);
  color: #171315;
  font-family: "DM Sans", Arial, sans-serif;
  animation: app-download-enter .25s ease-out;
}

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

.app-download-close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff0ed;
  color: #7d2028;
  font: 800 20px/1 Arial, sans-serif;
  cursor: pointer;
}

.app-download-close:hover,
.app-download-close:focus-visible {
  background: #e53935;
  color: #fff;
  outline: none;
}

.app-download-copy {
  padding-right: 28px;
}

.app-download-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.app-download-copy p {
  margin: 0;
  color: #756c6d;
  font-size: 13px;
  line-height: 1.45;
}

.app-download-stores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-top: 13px;
}

.app-download-stores a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-radius: 8px;
  transition: transform .18s ease;
}

.app-download-stores .app-store-link {
  width: 98px;
  height: 33px;
}

.app-download-stores .google-play-link {
  width: 146px;
  height: 44px;
}

.app-download-stores a:hover,
.app-download-stores a:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(229, 57, 53, .16);
}

.app-download-stores img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@keyframes app-download-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .app-download-popup {
    left: 12px;
    bottom: 82px;
    width: min(342px, calc(100vw - 24px));
    padding: 14px;
    border-radius: 18px;
  }

  .app-download-copy strong {
    font-size: 16px;
  }

  .app-download-copy p {
    font-size: 12px;
  }

  .app-download-stores {
    gap: 11px;
  }

  .app-download-stores .app-store-link {
    width: 92px;
    height: 31px;
  }

  .app-download-stores .google-play-link {
    width: 138px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-download-popup {
    animation: none;
  }
}
