/* H5 bottom download banner – layout & responsive visibility. */

html.ml-dl-active {
  --ml-dl-height: 64px;
}

.ml-dl-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: calc(var(--ml-dl-height) + env(safe-area-inset-bottom));
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #12263c 0%, #0e1b2a 100%);
  border-top: 1px solid rgba(254, 252, 251, 0.1);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
  color: #fefcfb;
  font-family: inherit;
}

.ml-dl-logo {
  display: block;
  flex: none;
  width: 38px;
  height: 42px;
  object-fit: contain;
}

.ml-dl-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ml-dl-name {
  margin: 0;
  overflow: hidden;
  color: #fefcfb;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ml-dl-sub {
  margin: 0;
  overflow: hidden;
  color: #adb0b5;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ml-dl-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 9999px;
  background-color: #44cf6c;
  box-shadow: 0 2px 8px rgba(68, 207, 108, 0.25);
  color: #0e1b2a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ml-dl-btn:hover,
.ml-dl-btn:focus-visible {
  background-color: #5bdd80;
}

.ml-dl-btn svg {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
}

@media (max-width: 767.98px) {
  .ml-dl-banner {
    display: flex;
  }

  html.ml-dl-active body {
    padding-bottom: calc(var(--ml-dl-height, 64px) + env(safe-area-inset-bottom));
  }

  html.ml-dl-active .ml-help-launcher {
    bottom: calc(var(--ml-dl-height, 64px) + env(safe-area-inset-bottom) + 12px);
  }
}

@media (max-width: 359.98px) {
  .ml-dl-sub {
    display: none;
  }
}
