/* Download dialog — independent of the product screenshot lightbox. */
.dl-root, .dl-root * { box-sizing: border-box; }
.dl-root[x-cloak] { display: none !important; }
.dl-root {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #102847;
  font-family: inherit;
}
.dl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 32, 58, .42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dl-panel {
  position: relative;
  width: min(100%, 740px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 40px;
  border: 1px solid #e1ebf9;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 32px 100px rgba(16, 40, 71, .22);
  animation: dl-arrive .4s cubic-bezier(.2, .75, .25, 1) both;
}
.dl-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eff5ff;
  color: #102847;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dl-close svg { width: 20px; height: 20px; }
.dl-close:hover { background: #e1ecff; transform: rotate(6deg); }
.dl-title { margin: 0 40px 10px 0; font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing:-0.025em; line-height: 1.1; }
.dl-intro { margin: 0 20px 28px 0; color: #506a87; font-size: 17px; line-height: 1.55; }
.dl-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-store { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 24px 20px 20px; border: 1px solid #dae6f5; border-radius: 20px; }
.dl-store-name { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 16px; font-size: 20px; font-weight: 650; letter-spacing:-0.025em; line-height: 1.25; }
.dl-store-name svg { width: 23px; height: 23px; flex: none; }
.dl-qr { display: block; width: min(100%, 196px); height: auto; aspect-ratio: 1; background: #fff; }
.dl-hint { margin: 8px 0 20px; color: #506a87; font-size: 15px; line-height: 1.5; text-align: center; }
.dl-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 11px 15px;
  border: 1px solid #155ef4;
  border-radius: 24px;
  background: #155ef4;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.dl-link:hover { background: #0d4bd0; color: #fff; box-shadow: 0 6px 16px rgba(21,94,244,.16); transform: translateY(-2px); }
.dl-link:active { transform: translateY(0) scale(.98); }
.dl-store--pending { background: #f5f8ff; }
.dl-pending { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 16px 0 22px; text-align: center; }
.dl-pending-icon { width: 64px; height: 64px; margin-bottom: 20px; color: #155ef4; }
.dl-pending strong { max-width: 170px; font-size: 21px; line-height: 1.3; letter-spacing:-0.025em; }
.dl-pending p { max-width: 194px; margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: #506a87; }
.dl-close:focus-visible, .dl-link:focus-visible { outline: 3px solid #155ef4; outline-offset: 4px; }
@keyframes dl-arrive { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .dl-root { padding: 16px; }
  .dl-panel { padding: 30px 22px 22px; max-height: calc(100dvh - 32px); border-radius: 24px; }
  .dl-close { top: 14px; right: 14px; }
  .dl-title { font-size: 30px; }
  .dl-intro { margin: 0 0 20px; font-size: 16px; }
  .dl-stores { grid-template-columns: 1fr; gap: 14px; }
  .dl-store { padding: 20px; }
  .dl-qr { width: 164px; order: 3; }
  .dl-store .dl-link { order: 1; margin: 2px 0 12px; }
  .dl-store .dl-hint { order: 2; }
  .dl-store-name { margin-bottom: 10px; }
  .dl-hint { margin: 6px 0 14px; }
  .dl-store--pending { padding: 18px 20px; }
  .dl-store--pending .dl-store-name { margin-bottom: 9px; }
  .dl-pending { padding: 0; }
  .dl-pending-icon { display: none; }
  .dl-pending strong { max-width: none; font-size: 18px; }
  .dl-pending p { margin-top: 5px; max-width: none; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-panel { animation: none; }
  .dl-root, .dl-close, .dl-link { transition: none !important; }
  .dl-close:hover, .dl-link:hover, .dl-link:active { transform: none; }
}
