.mobile-app-banner {
  --app-banner-accent: var(--accent-color, #3972fe);
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1045;
  width: min(460px, calc(100vw - 48px));
  padding: 18px;
  color: var(--default-color, #0b1420);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e4eaf2;
  border-radius: 20px;
  box-shadow: 0 18px 52px rgba(11, 20, 32, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.mobile-app-banner.is-visible {
  animation: mobile-app-banner-in 320ms ease-out both;
}

.mobile-app-banner__body {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-right: 20px;
}

.mobile-app-banner__app-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: #f3f6ff;
  border: 1px solid #e2e9ff;
  border-radius: 14px;
}

.mobile-app-banner__app-icon img {
  display: block;
  max-width: 34px;
  max-height: 42px;
}

.mobile-app-banner__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.mobile-app-banner__copy strong {
  font-family: var(--heading-font, "DM Sans", sans-serif);
  font-size: 16px;
  line-height: 1.25;
}

.mobile-app-banner__copy span {
  color: #5c6675;
  font-size: 13px;
  line-height: 1.35;
}

.mobile-app-banner__cta {
  --app-banner-cta-bg: var(--app-banner-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--app-banner-cta-bg);
  border-radius: 12px;
}

.mobile-app-banner__actions {
  display: none;
  gap: 8px;
}

.mobile-app-banner__cta--apple {
  --app-banner-cta-bg: #0b1420;
}

.mobile-app-banner__cta:hover,
.mobile-app-banner__cta:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--app-banner-cta-bg), #000 12%);
}

.mobile-app-banner__close {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #727b88;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.mobile-app-banner__close:hover,
.mobile-app-banner__close:focus-visible {
  color: #0b1420;
  background: #f0f3f7;
}

@keyframes mobile-app-banner-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
  .mobile-app-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 14px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border-width: 1px 0 0;
    border-radius: 18px 18px 0 0;
  }

  .mobile-app-banner__body {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding-right: 24px;
  }

  .mobile-app-banner__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-app-banner__download {
    display: none;
  }

  .mobile-app-banner__app-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .mobile-app-banner__copy strong { font-size: 14px; }
  .mobile-app-banner__copy span { font-size: 12px; }
  .mobile-app-banner__cta { min-height: 38px; padding: 8px 12px; font-size: 13px; }
  body.has-mobile-app-banner .whatsapp-float {
    bottom: max(120px, calc(104px + env(safe-area-inset-bottom)));
  }
}

@media (max-width: 420px) {
  .mobile-app-banner__body { grid-template-columns: 42px minmax(0, 1fr); }
  .mobile-app-banner__app-icon { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-app-banner.is-visible { animation: none; }
}
