:root {
  --smart-app-banner-height: 0px;
}

.smart-app-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 260;
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0.65rem;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fff 0%, #fffbf5 100%);
  border-bottom: 1px solid rgba(57, 40, 0, 0.12);
  box-shadow: 0 4px 18px rgba(44, 36, 22, 0.08);
  color: var(--text, #2c2416);
}

body.has-android-smart-banner {
  --smart-app-banner-height: 3.75rem;
}

body.has-android-smart-banner .smart-app-banner {
  display: flex;
}

body.has-android-smart-banner.has-fixed-header {
  padding-top: calc(var(--site-header-height, 4.25rem) + var(--smart-app-banner-height));
}

body.has-android-smart-banner.has-fixed-header .header {
  top: var(--smart-app-banner-height);
}

.smart-app-banner__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(57, 40, 0, 0.12);
}

.smart-app-banner__body {
  flex: 1;
  min-width: 0;
}

.smart-app-banner__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary, #392800);
}

.smart-app-banner__subtitle {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text-muted, #6b5d4a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-app-banner__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary, #392800);
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.smart-app-banner__cta:hover {
  background: var(--primary-light, #aa6900);
  text-decoration: none;
}

.smart-app-banner__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted, #6b5d4a);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.smart-app-banner__close:hover {
  background: rgba(57, 40, 0, 0.06);
  color: var(--text, #2c2416);
}

@media (min-width: 768px) {
  .smart-app-banner {
    display: none !important;
  }

  body.has-android-smart-banner {
    --smart-app-banner-height: 0px;
  }
}
