/* Only resize the web viewport while the fallback banner is visible. */
body.lido-app-store-visible {
  display: flex;
  flex-direction: column;
}

body.lido-app-store-visible > #root {
  flex: 1;
  height: auto;
  min-height: 0;
}

#lido-app-store-banner[hidden] { display: none; }

#lido-app-store-banner {
  flex: none;
  color: #241912;
  background: #fff8f0;
  border-bottom: 1px solid #e8d9cc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
}

.lido-app-store-content {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 12px 10px 0;
}

#lido-app-store-dismiss {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #715b4d;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

#lido-app-store-banner img {
  flex: none;
  border-radius: 11px;
}

.lido-app-store-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.lido-app-store-copy strong { font-size: 15px; }
.lido-app-store-copy span { font-size: 11px; line-height: 1.35; }

#lido-app-store-banner a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  background: #b73423;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

#lido-app-store-banner :focus-visible {
  outline: 2px solid #b73423;
  outline-offset: 2px;
}

@media (max-width: 359px) {
  .lido-app-store-content { gap: 6px; padding-right: 8px; }
  #lido-app-store-banner img { width: 40px; height: 40px; }
  #lido-app-store-banner a { padding: 0 9px; font-size: 11px; }
}

@media (prefers-color-scheme: dark) {
  #lido-app-store-banner { background: #261d18; color: #fff8f0; border-bottom-color: #4b3930; }
  #lido-app-store-dismiss { color: #dec8b8; }
  #lido-app-store-banner a { background: #e65c46; color: #1c100c; }
  #lido-app-store-banner :focus-visible { outline-color: #f18d78; }
}
