/* Compact, in-flow App Store offer. No overlay, polling or animation. */
.ts-app-promo[hidden],
html[data-ts-app-shell="1"] .ts-app-promo {
  display: none !important;
}

.ts-app-promo {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-height: 76px;
  box-sizing: border-box;
  padding: 10px max(12px, env(safe-area-inset-right)) 10px max(4px, env(safe-area-inset-left));
  background: #f4f5f7;
  color: #17202b;
  border-bottom: 1px solid #dce0e6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Georgian", sans-serif;
}

.ts-app-promo__close {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #596270;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ts-app-promo__link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  color: inherit;
  text-decoration: none !important;
  border-radius: 12px;
}

.ts-app-promo__icon {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #e9ecf0;
}

.ts-app-promo__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ts-app-promo__copy strong {
  color: #17202b;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.ts-app-promo__copy > span {
  color: #505a69;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.ts-app-promo__action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 44px;
  box-sizing: border-box;
  margin-left: auto;
  padding: 8px 13px;
  border-radius: 12px;
  background: #d31335;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.ts-app-promo__link:active .ts-app-promo__action {
  background: #b8102e;
}

.ts-app-promo__close:focus-visible,
.ts-app-promo__link:focus-visible {
  outline: 2px solid #9c1230;
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="dark"] .ts-app-promo {
    background: #20252d;
    border-bottom-color: #353e4b;
    color: #f4f6fa;
  }
  html[data-theme="dark"] .ts-app-promo__copy strong { color: #f4f6fa; }
  html[data-theme="dark"] .ts-app-promo__copy > span,
  html[data-theme="dark"] .ts-app-promo__close { color: #c3cad5; }
}
