/* Contract 1: keep this marker compatible with markup and JavaScript. */
#fl-download-dialog.fl-dl-dialog {
  --fl-dl-contract: 1;
  box-sizing: border-box; position: fixed; inset: 0; margin: auto;
  padding: 12px 22px 22px; width: calc(100% - 32px); max-width: 480px; height: fit-content;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  border: 0; border-radius: 26px; background: #fff; color: #1c2833;
  font-family: Tahoma, Arial, sans-serif; font-size: 16px; line-height: 1.7;
  text-align: right; direction: rtl; overflow: hidden;
  box-shadow: 0 24px 70px #1c283344; overscroll-behavior: contain;
}
#fl-download-dialog:not([open]) { display: none !important; }
#fl-download-dialog[open] { display: flex; flex-direction: column; }
#fl-download-dialog::backdrop { background: rgba(28, 40, 51, .5); }
#fl-download-dialog *, #fl-download-dialog *::before, #fl-download-dialog *::after { box-sizing: border-box; }
#fl-download-dialog .fl-dl-sheet-handle { flex: 0 0 auto; width: 42px; height: 4px; background: #d9dfe5; border-radius: 999px; margin: 0 auto 14px; }
#fl-download-dialog .fl-dl-sheet-head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 12px; }
#fl-download-dialog #fl-dl-title { font: inherit; font-size: 1.15em; font-weight: 700; line-height: 1.6; margin: 0; min-width: 0; overflow-wrap: anywhere; color: #1c2833; }
#fl-download-dialog #fl-dl-title { max-height: 28vh; max-height: 28dvh; overflow-y: auto; }
#fl-download-dialog #fl-dl-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: #f0f2f5; color: #1c2833; cursor: pointer; box-shadow: none; }
#fl-download-dialog #fl-dl-close svg { display: block; width: 20px; height: 20px; }
#fl-download-dialog .fl-dl-sheet-sub { flex: 0 0 auto; font: inherit; font-size: .85em; line-height: 1.7; color: #596979; margin: 6px 0 14px; overflow-wrap: anywhere; }
#fl-download-dialog .fl-dl-sheet-sub { max-height: 14vh; max-height: 14dvh; overflow-y: auto; }
#fl-download-dialog .fl-dl-options { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 4px; }
#fl-download-dialog .fl-dl-sheet-row { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 76px; margin: 0 0 9px; border: 1px solid #e5eaf0; border-radius: 16px; background: #f9fafb; color: #1c2833; text-decoration: none; box-shadow: none; font: inherit; }
#fl-download-dialog .fl-dl-sheet-row:last-child { margin-bottom: 0; }
#fl-download-dialog .fl-dl-sheet-row:hover { background: #ecf8f0; border-color: #a6d4b7; color: #1c2833; }
#fl-download-dialog .fl-dl-logo { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; background: #fff; border-radius: 12px; color: #2c3e50; }
#fl-download-dialog .fl-dl-logo-android { color: #237a38; }
#fl-download-dialog .fl-dl-logo img, #fl-download-dialog .fl-dl-logo svg { display: block; width: 28px; height: 28px; max-width: 100%; margin: 0; object-fit: contain; }
#fl-download-dialog .fl-dl-sheet-row-copy { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
#fl-download-dialog .fl-dl-sheet-row-copy b { font: inherit; font-weight: 700; font-size: .95em; color: #1c2833; }
#fl-download-dialog .fl-dl-sheet-row-copy > span { font: inherit; font-size: .8em; color: #596979; }
#fl-download-dialog .fl-dl-chev { flex: 0 0 18px; width: 18px; height: 18px; margin-inline-start: auto; color: #596979; }
#fl-download-dialog :focus-visible { outline: 3px solid #13784a; outline-offset: 2px; }
a.fl-dl-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid #13784a; border-radius: 12px; background: #13784a; color: #fff; font: inherit; line-height: 1.7; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
a.fl-dl-button:hover, a.fl-dl-button:focus { background: #0e603b; color: #fff; }
a.fl-dl-button:focus-visible { outline: 3px solid #13784a; outline-offset: 3px; }
@media (max-width: 719px) {
  #fl-download-dialog.fl-dl-dialog {
    inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 480px;
    max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px);
    border-radius: 26px 26px 0 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-height: 500px) {
  #fl-download-dialog .fl-dl-sheet-handle { margin-bottom: 6px; }
  #fl-download-dialog .fl-dl-sheet-sub { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  #fl-download-dialog, #fl-download-dialog * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
