.top-mobile-banner {
  /* Цвета блока. Позже их можно без правок разметки вынести в :root. */
  --tmb-bg: #cce4ff;
  --tmb-text: #152149;
  --tmb-close-bg: rgba(21, 33, 73, 0.05);
  --tmb-close-icon: rgba(21, 33, 73, 0.66);
  --tmb-button-bg: #ffffff;
  --tmb-button-text: #152149;
  --tmb-star: #ff8f33;

  position: relative;
  z-index: 1001;
  display: none;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px;
  background: var(--tmb-bg);
  color: var(--tmb-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.top-mobile-banner *,
.top-mobile-banner *::before,
.top-mobile-banner *::after {
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .top-mobile-banner {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

.top-mobile-banner__state {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.top-mobile-banner__close {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--tmb-close-bg) !important;
  box-shadow: none !important;
  color: var(--tmb-close-icon);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.top-mobile-banner__close svg {
  display: block;
  width: 20px;
  height: 20px;
}

.top-mobile-banner__app-logo {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.top-mobile-banner__logo-bg {
  fill: var(--tmb-button-bg);
}

.top-mobile-banner__logo-mark {
  fill: var(--tmb-text);
}

.top-mobile-banner__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.top-mobile-banner__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.top-mobile-banner__wordmark {
  display: block;
  flex: 0 0 auto;
  width: 47.95px;
  height: 10.08px;
}

.top-mobile-banner__wordmark-mark {
  fill: var(--tmb-text);
}

.top-mobile-banner__stars {
  display: block;
  flex: 0 0 auto;
  width: 50px;
  height: 10px;
  color: var(--tmb-star);
}

.top-mobile-banner__text {
  margin: 0;
  color: var(--tmb-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.top-mobile-banner__download {
  display: flex;
  flex: 0 0 86px;
  align-items: center;
  justify-content: center;
  width: 86px;
  min-height: 32px;
  height: 32px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--tmb-button-bg);
  color: var(--tmb-button-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.top-mobile-banner__download:hover {
  text-decoration: none;
}

.top-mobile-banner__download:focus-visible,
.top-mobile-banner__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.top-mobile-banner--hidden {
  display: none !important;
}
