/* Desktop: original compact caption and platform icons beside one common QR. */
.reference-download--common {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  scroll-margin-top: 20px;
}
.reference-download--common .reference-download__text { flex: 0 1 100px; min-width: 0; }
.reference-download--common [data-common-download] { color: #ffe7b2; font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.reference-download--common .reference-download__platforms { gap: 12px; margin-top: 10px; }
.reference-download--common .reference-download__platforms a { display: block; width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.reference-download--common .reference-download__platforms img { display: block; width: 100%; height: 100%; object-fit: contain; }
.reference-download--common a[aria-disabled="true"] { opacity: .5; cursor: default; }
.reference-download--common [data-download-platform][hidden], .reference-download--common [data-common-qr][hidden] { display: none !important; }
.reference-download--common a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.reference-download--common [data-common-qr] { width: 80px; height: 80px; border: 2px solid #fff; flex: none; }
.reference-download--common [data-download-status] { display: block; margin-top: 8px; font-size: 12px; line-height: 1.2; color: #d2b783; }
.reference-download--common [data-download-status]:empty { display: none; }
.reference-mobile-actions { display: none; }

@media (max-width: 1023px) {
  .reference-download--common { display: none !important; }
  :is(.sun-reference-home, #modalContentRegister) .reference-center > .loginForm.reference-auth,
  .reference-center > .reference-divider,
  .reference-center > .reference-play { display: none !important; }
  .reference-mobile-actions { display: flex; flex-direction: column; width: min(370px, 76vw); max-width: 100%; margin: 0 auto; }
  .reference-mobile-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 556 / 92;
    padding: 0 10px;
    border: 0;
    border-radius: 99px;
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #ffe5b7;
    font: inherit;
    font-size: clamp(15px, 4.1vw, 20px);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }
  .reference-mobile-action--install { background-image: url(install-blank-DEybwk0N.webp); }
  /* The provided platform artwork already contains its matching icon and caption. */
  .reference-mobile-action--install [data-mobile-download-icon] { position: absolute; inset: 0; display: none; width: 100%; height: 100%; pointer-events: none; }
  .reference-mobile-action--install [data-mobile-download-label] { position: relative; }
  .reference-mobile-action--install:is([aria-label="Cài đặt App Store"], [aria-label="Cài đặt file APK"]) [data-mobile-download-icon] { display: block; }
  .reference-mobile-action--install:is([aria-label="Cài đặt App Store"], [aria-label="Cài đặt file APK"]) [data-mobile-download-label] { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .reference-mobile-action--install[aria-disabled="true"] { opacity: .55; cursor: default; }
  .reference-mobile-download-hint { min-height: 18px; margin: 18px -12px 24px; color: #cdbda7; font-size: 12px; line-height: 1.4; text-align: center; }
  .reference-mobile-action--web { background-image: url(access-bg-BnvOXkud.webp); }
  .reference-mobile-action--register { margin-top: 18px; background-image: url(register-Dz64LSAb.webp); }
  .reference-mobile-action:focus-visible { outline: 2px solid #ffe3a0; outline-offset: 4px; }
}
