/* Banner mode */
.app-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  z-index: 999999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.app-install-banner--bottom { bottom: 15px; }
.app-install-banner--top { top: 12px; }

.app-install-banner__inner {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #111;
  color: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.app-install-banner__logo {
  width: 50px;
}

.app-install-modal__logo {
  width: 80px;
}

.app-install-banner__brand {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.app-install-banner__text { flex: 1; min-width: 0; }
.app-install-banner__title { font-weight: 800; font-size: 16px; line-height: 1.2; }
.app-install-banner__message { font-size: 13px; opacity: 0.85; margin-top: 2px; line-height: 1.2; }

.app-install-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-install-banner__button {
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.app-install-banner__button--primary {
  background: #fff;
  color: #111;
}

.app-install-banner__button--ghost {
  background: transparent;
  color: #fff;
  padding: 8px 2px;
  font-size: 20px;
  opacity: 0.9;
}

/* Modal mode */
.app-install-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.app-install-modal__card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.app-install-modal__header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-install-modal__brand {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.app-install-modal__text { flex: 1; min-width: 0; }
.app-install-modal__title { font-weight: 900; font-size: 16px; line-height: 1.2; }
.app-install-modal__message { font-size: 13px; color: #444; margin-top: 2px; line-height: 1.2; }

.app-install-modal__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.app-install-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.app-install-modal__button {
  flex: 1;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.app-install-modal__button--primary {
  border: 0;
  background: #111;
  color: #fff;
}

.app-install-modal__button--secondary {
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
}
