/* Unified download buttons + download page + placements */
.dgs-dl-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fb-dl { display: contents; }
.fb-dl[hidden] { display: none !important; }
.dgs-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--dgs-design-radius-pill);
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid transparent;
}
.dgs-dl-btn--android {
  background: var(--dgs-design-brand-deep);
  color: var(--dgs-design-white) !important;
}
.dgs-dl-btn--ios {
  background: var(--dgs-design-bg-soft);
  color: var(--dgs-design-brand-deep) !important;
  border-color: var(--dgs-design-line);
}

.dgs-dl-footer {
  margin: 16px 0 8px;
}
.dgs-dl-footer__label {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--dgs-design-text);
}
/* Footer download buttons follow dgs-ui primary / secondary on the bar background. */
.dgs-design-footer .dgs-dl-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--dgs-design-radius-sm, 8px);
  font-size: 15px;
  font-weight: 700;
}
.dgs-design-footer .dgs-dl-btn--android {
  background: var(--dgs-design-brand);
  color: var(--dgs-design-on-accent) !important;
  border-color: transparent;
}
.dgs-design-footer .dgs-dl-btn--android:hover {
  background: var(--dgs-design-brand-hover);
  color: var(--dgs-design-on-accent) !important;
}
.dgs-design-footer .dgs-dl-btn--ios {
  background: transparent;
  color: var(--dgs-design-text) !important;
  border-color: var(--dgs-design-muted);
}
.dgs-design-footer .dgs-dl-btn--ios:hover {
  background: var(--dgs-design-card-hover);
  color: var(--dgs-design-text) !important;
}

.dgs-dl-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--dgs-design-brand-deep);
  color: var(--dgs-design-white);
  font-size: 13px;
}
.dgs-dl-topbar__text { flex: 1; }
.dgs-dl-topbar__cta {
  color: var(--dgs-design-brand-deep) !important;
  background: var(--dgs-design-white);
  border-radius: var(--dgs-design-radius-pill);
  padding: 6px 12px;
  font-weight: 700;
  text-decoration: none !important;
}
.dgs-dl-topbar__x {
  border: 0;
  background: transparent;
  color: var(--dgs-design-white);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.dgs-dl-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.dgs-dl-page__hero {
  display: grid;
  gap: 20px;
}
.dgs-dl-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 8px;
  line-height: 1.15;
}
.dgs-dl-page__lead {
  margin: 0 0 16px;
  color: var(--dgs-design-muted-2);
}
.dgs-dl-page__media img,
.dgs-dl-page__media picture {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  background: var(--dgs-design-bg-soft);
}
.dgs-dl-page__media picture img {
  width: 100%;
  object-fit: cover;
  object-position: var(--dgs-img-pos-mobile, var(--dgs-img-pos-desktop, center));
}
@media (min-width: 769px) {
  .dgs-dl-page__media picture img {
    object-position: var(--dgs-img-pos-desktop, center);
  }
}
.dgs-dl-page__qr {
  margin-top: 16px;
}
.dgs-dl-page__qr img {
  border: 1px solid var(--dgs-design-line);
  border-radius: 12px;
  background: var(--dgs-design-white);
}
.dgs-dl-page__benefits,
.dgs-dl-page__steps,
.dgs-dl-page__faq {
  margin-top: 40px;
}
.dgs-dl-page__cards {
  display: grid;
  gap: 12px;
}
.dgs-dl-page__card {
  border: 1px solid var(--dgs-design-line);
  border-radius: var(--dgs-design-radius);
  padding: 16px;
  background: var(--dgs-design-white);
}
.dgs-dl-page__card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.dgs-dl-page__card p {
  margin: 0;
  color: var(--dgs-design-muted-2);
  font-size: 14px;
}
.dgs-dl-page__steps-body,
.dgs-dl-page__faq-body {
  color: #333;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .dgs-dl-page__hero {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
  .dgs-dl-page__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .dgs-dl-topbar { display: none !important; }
}

/* Bottom download bar. Global bar is shown under the Fine-tune mobile breakpoint
   (inline style from dgs_downloads_bottom_breakpoint_css). Product sticky is the
   same component at every width. */
.dgs-dl-bottom {
  display: none;
  box-sizing: border-box;
}
.dgs-dl-bottom__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dgs-design-text);
}
.dgs-dl-bottom .dgs-dl-group {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 8px;
}
.dgs-dl-bottom .dgs-dl-btn {
  min-height: 44px;
  min-width: 0;
  flex: 1 1 0;
  padding: 0 10px;
  font-size: 13px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
.dgs-dl-bottom--product {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--dgs-design-bar);
  color: var(--dgs-design-text);
  border-top: 1px solid var(--dgs-design-line);
  transform: none;
}
body.single-product:not(.dgs-mode-app):has(.dgs-dl-bottom--product) {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
body.dgs-consent-open .dgs-dl-bottom,
body:not(.dgs-mode-app):has(#dgs-consent-root:not([hidden])) .dgs-dl-bottom {
  display: none !important;
}
body.dgs-consent-open.dgs-design-body,
body:not(.dgs-mode-app):has(#dgs-consent-root:not([hidden])) {
  padding-bottom: 0;
}
@media (max-width: 980px) {
  body.single-product:not(.dgs-mode-app) .dgs-dl-bottom--product {
    display: none !important;
  }
  body.single-product:not(.dgs-mode-app):has(.dgs-dl-bottom--product) {
    padding-bottom: 0;
  }
}
