/* Download gate modal — slow download check */

.dl-modal[hidden] {
  display: none;
}

.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.dl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 50, 79, 0.45);
}

.dl-modal__box {
  position: relative;
  width: min(100%, 380px);
  background: #fff;
  border: 1px solid #e3e6e9;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(31, 75, 122, 0.22);
  padding: 1.35rem 1.4rem 1.25rem;
  font-family: 'Open Sans', Arial, sans-serif;
}

.dl-modal__box h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2e2e2e;
}

.dl-modal__box p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #5a5a5a;
}

.dl-robot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e3e6e9;
  border-radius: 6px;
  background: #f0f8fc;
  cursor: pointer;
  user-select: none;
}

.dl-robot input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #00b0f0;
}

.dl-robot span {
  color: #2e2e2e;
  font-size: 0.95rem;
}

.dl-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.dl-modal__btn {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.dl-modal__btn--go {
  background: #fe4f0e;
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(254, 79, 14, 0.24);
}

.dl-modal__btn--go:hover {
  background: #d9410b;
}

.dl-modal__btn--cancel {
  background: #fff;
  color: #2e2e2e;
  border: 1px solid #c8c8c8;
}

.dl-modal__btn--cancel:hover {
  background: #f7f7f7;
}

.dl-modal__status {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.25rem;
  color: #5a5a5a;
  font-size: 0.92rem;
}

.dl-modal.is-loading .dl-robot,
.dl-modal.is-loading .dl-modal__actions {
  display: none;
}

.dl-modal.is-loading .dl-modal__status {
  display: flex;
}

.dl-spin {
  width: 1rem;
  height: 1rem;
  border: 2px solid #e3e6e9;
  border-top-color: #00b0f0;
  border-radius: 50%;
  animation: dl-spin 0.7s linear infinite;
}

@keyframes dl-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dl-spin {
    animation: none;
    border-top-color: #e3e6e9;
  }
}
