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

.app-install-banner {
  position: fixed;
  right: 12px;
  bottom: calc(max(var(--app-install-action-offset, 0px), env(safe-area-inset-bottom, 0px)) + 12px);
  left: 12px;
  z-index: 995;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 12px 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #5e5141;
  border-radius: 14px;
  background: #191b20;
  color: #f4f4f5;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .45);
}

.app-install-icon {
  display: block;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid #4a4237;
  border-radius: 10px;
  background: #28231d;
}

.app-install-copy h2 {
  margin: 0 0 5px;
  color: #f4f4f5;
  font-family: var(--font-default);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.app-install-copy p {
  margin: 0;
  color: #bec3cc;
  font-size: 13px;
  line-height: 1.5;
}

.app-install-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c4c9d1;
  font: 26px/1 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.app-install-close:hover {
  background: #303238;
  color: #fff;
}

.app-install-stores {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}

.app-install-stores a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 4px;
  border: 1px solid #34383f;
  border-radius: 8px;
  background: #111316;
  touch-action: manipulation;
}

.app-install-stores a:hover {
  border-color: #e4c290;
}

.app-install-stores img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
}

.app-install-stores .app-install-rustore {
  width: 82.4%;
  max-width: 123.6px;
}

.app-install-banner a:focus-visible,
.app-install-close:focus-visible {
  outline: 2px solid #e4c290;
  outline-offset: 3px;
}

body.app-install-banner-visible {
  padding-bottom: var(--app-install-space, 0px);
}

@media (max-width: 359.98px) {
  .app-install-banner {
    right: 8px;
    left: 8px;
    padding: 12px;
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    column-gap: 8px;
  }

  .app-install-icon {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
}
