/* confirm-modal.css — стили окна принятия условий */
/* Автор: Борис Гусев (bgus.ru), Версия: 1.0.0 */

:root {
  --glass-bg: rgba(255,255,255,0.82);
  --text-dark: #111;
  --text-muted: #555;
  --accent: linear-gradient(90deg,#007bff,#6f42c1,#d63384);
  --radius: 24px;
}
body {
  background: linear-gradient(135deg,#f7f8fa,#e9ecef);
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","Inter","Segoe UI",sans-serif;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.modal-content {
  border: none;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  overflow: hidden;
}

/* Размер модального окна */
.modal-dialog {
  max-width: 720px !important;
}
@media (min-width: 992px) {
  .modal-dialog {
    max-width: 800px !important;
  }
}

.modal-content {
  animation: modalFadeIn 0.5s ease both;
}
@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-header {
  border: none;
  text-align: center;
  padding-top: 1.8rem;
  background: transparent;
}
.modal-title {
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.modal-body {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 1.7rem 2rem 1rem;
}
.modal-body b, .modal-body strong {
  color: var(--text-dark);
  font-weight: 600;
}
.modal-footer {
  border: none;
  padding: 1.2rem 1.8rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
  position: relative;
}
.btn {
  border-radius: 100px;
  font-weight: 350;
  letter-spacing: .2px;
  padding: .7rem 1.4rem;
  transition: all .2s ease;
}
.btn-gradient {
  background: var(--accent);
  background-size: 200% 100%;
  color: #fff !important;
  border: none;
  box-shadow: 0 6px 16px rgba(111,66,193,.25);
}
.btn-gradient:hover {
  background-position: right center;
  box-shadow: 0 8px 24px rgba(111,66,193,.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(240,240,240,0.8);
  color: #222 !important;
  border: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.95);
  color: #000 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.modal-footer {
  border: none;
  padding: 1.2rem 1.8rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
  position: relative;
}
#downloadingMessage {
  position: absolute;
  left: 1.5rem;
  bottom: 2.5rem;
  color: #6c757d;
  display: none;
  white-space: nowrap;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}
#downloadingMessage.active {
  display: block;
  opacity: 1;
  animation: blinking-text 1.6s ease-in-out infinite;
}
@keyframes blinking-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}