/* Download reminder dock. Mobile placement measures Selora navigation and PDP CTA. */
.selora-download-promo, .selora-download-promo * { box-sizing: border-box; }
.selora-download-promo[hidden] { display: none !important; }
.selora-download-promo {
  position: fixed; left: 0; right: 0; bottom: var(--selora-download-promo-bottom, 18px); z-index: 2001;
  display: flex; align-items: center; gap: 13px;
  width: min(536px, calc(100% - 28px)); margin-inline: auto;
  padding: 13px; border: 1px solid #e6e8f1; border-radius: 22px;
  background: #fff; color: #171e38; direction: rtl;
  box-shadow: 0 16px 60px rgba(18,29,76,.19);
  font-family: IRANSansX, Tahoma, sans-serif;
  animation: selora-download-up .24s ease both;
}
.selora-download-promo__logo { flex: none; width: 48px; height: 48px; border: 1px solid #e6e9fd; border-radius: 15px; overflow: hidden; background: #f4f6ff; }
.selora-download-promo__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.selora-download-promo__content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.selora-download-promo__content strong { font-size: 14px; font-weight: 800; line-height: 1.5; }
.selora-download-promo__content span { font-size: 11px; font-weight: 500; color: #64708e; line-height: 1.7; }
.selora-download-promo__actions { display: flex; gap: 6px; flex: none; align-items: center; }
.selora-download-promo__download, .selora-download-promo__later {
  min-height: 37px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; font-family: inherit; font-weight: 750; font-size: 12px;
  line-height: 1.5; text-decoration: none; cursor: pointer;
}
.selora-download-promo__download { border: 1px solid #2a39c6; background: #2a39c6; color: #fff !important; }
.selora-download-promo__later { border: 1px solid #e3e7ef; background: #f6f7fa; color: #47516c; }
.selora-download-promo__download:focus-visible, .selora-download-promo__later:focus-visible { outline: 3px solid #94a1f7; outline-offset: 2px; }
@keyframes selora-download-up { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
  /* Stay attached to the bottom edge, but above any fixed buy bar or bottom navigation. */
  .selora-download-promo {
    bottom: var(--selora-download-promo-bottom, calc(90px + env(safe-area-inset-bottom, 0px)));
    width: calc(100% - 16px); max-width: 560px;
    padding: 11px; gap: 9px;
    border-radius: 18px; box-shadow: 0 10px 30px rgba(18,29,76,.14);
  }
  .selora-download-promo__logo { width: 42px; height: 42px; border-radius: 13px; }
  .selora-download-promo__content strong { font-size: 12px; }
  .selora-download-promo__content span { font-size: 10px; }
  .selora-download-promo__download, .selora-download-promo__later { padding: 0 10px; font-size: 11px; }
  body.has-selora-download-promo::after {
    content: ""; display: block; width: 100%;
    height: var(--selora-download-promo-reserve, 0px);
    pointer-events: none; flex-shrink: 0;
  }
}
@media (max-width: 370px) {
  .selora-download-promo { flex-wrap: wrap; }
  .selora-download-promo__content { flex-basis: calc(100% - 60px); }
  .selora-download-promo__actions { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) { .selora-download-promo { animation: none; } }
