/* Al Aqiq: homepage APK download badge. Scoped to avoid changing other UI. */
.aq-hero-top-controls { display: contents; }
.aq-hero-top-controls.aq-android-download-enabled {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}
.aq-app-download[hidden] { display: none !important; }
.aq-app-download {
  box-sizing: border-box;
  display: flex;
  direction: rtl;
  align-items: center;
  gap: 11px;
  width: 305px;
  max-width: 100%;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(79, 93, 87, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}
.aq-app-download:hover,
.aq-app-download:focus-visible {
  background: rgba(66, 86, 77, 0.96);
  transform: translateY(-2px);
}
.aq-app-download:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.aq-app-download-brand {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
  overflow: hidden;
}
.aq-app-download-brand img { display: block; width: 44px; height: 44px; object-fit: contain; }
.aq-app-download-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  line-height: 1.25;
}
.aq-app-download-title { color: #ffffff; font-weight: 750; line-height: 1.3; font-size: 15px; white-space: nowrap; }
.aq-app-download-desc { color: rgba(255,255,255,.88); font-size: 11px; font-weight: 500; white-space: nowrap; }
.aq-app-download-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-start: 3px;
  border-radius: 50%;
  background: #47c89a;
  vertical-align: middle;
}
.aq-app-download-action {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b65019;
  color: #ffffff;
}
.aq-dl-en { display: none; }
html[lang="en"] .aq-dl-en { display: inline; }
html[lang="en"] .aq-dl-ar { display: none; }
html[lang="en"] .aq-app-download-copy { direction: ltr; text-align: left; }
html[lang="en"] .aq-app-download { direction: ltr; }
html[lang="en"] .aq-app-download-action { order: 2; }
/* The reference locates the card immediately to the right of the language button in RTL. */
@media (max-width: 900px) {
  .aq-hero-top-controls.aq-android-download-enabled { gap: 10px; }
  .aq-app-download { width: 286px; }
  .aq-app-download-title { font-size: 14px; }
  .aq-app-download-desc { font-size: 10px; }
}
@media (max-width: 767px) {
  .aq-hero-top-controls.aq-android-download-enabled {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .aq-app-download { width: 305px; max-width: 100%; min-height: 70px; }
  .aq-hero-top-controls.aq-android-download-enabled .home-hero-language { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .aq-app-download { transition: none; }
}
