/* ===========================================================
   ANLUTON — Cookie Consent v2
   ----------------------------------------------------------
   Категории: essential / analytics / marketing
   Google Consent Mode v2 совместимо.
   =========================================================== */

/* === Banner (first view) === */
.anl-cc-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 760px; margin: 0 auto;
  background: rgba(44, 51, 79, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(59, 107, 255, 0.15);
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #D6DDF5;
  animation: anlCcSlideUp 0.4s ease-out;
}
.anl-cc-banner.anl-cc-visible { display: flex; }
@keyframes anlCcSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.anl-cc-text strong { color: #FFFFFF; font-weight: 700; }
.anl-cc-text a { color: #3B6BFF; text-decoration: underline; }
.anl-cc-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.anl-cc-btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.anl-cc-btn-primary {
  background: linear-gradient(135deg, #1A38D4, #3B6BFF);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(26, 56, 212, 0.4);
}
.anl-cc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26, 56, 212, 0.55); }
.anl-cc-btn-secondary {
  background: transparent;
  color: #D6DDF5;
  border-color: rgba(255, 255, 255, 0.18);
}
.anl-cc-btn-secondary:hover { background: rgba(255, 255, 255, 0.05); color: #FFFFFF; }
.anl-cc-btn-ghost {
  background: transparent;
  color: #B8C0D9;
  border-color: transparent;
  text-decoration: underline;
  padding: 10px 8px;
}
.anl-cc-btn-ghost:hover { color: #FFFFFF; }

/* === Modal (settings view) === */
.anl-cc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  animation: anlCcFadeIn 0.25s ease-out;
}
.anl-cc-modal-overlay.anl-cc-visible { display: flex; }
@keyframes anlCcFadeIn { from { opacity: 0; } to { opacity: 1; } }

.anl-cc-modal {
  background: #2C334F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  max-width: 600px; width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #D6DDF5;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.anl-cc-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.anl-cc-modal-header h3 {
  margin: 0 0 8px;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
}
.anl-cc-modal-header p {
  margin: 0;
  font-size: 13px;
  color: #B8C0D9;
  line-height: 1.55;
}
.anl-cc-modal-body { padding: 8px 24px; }
.anl-cc-modal-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* === Category card === */
.anl-cc-cat {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.anl-cc-cat:last-child { border-bottom: none; }
.anl-cc-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.anl-cc-cat-title {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
}
.anl-cc-cat-required {
  font-size: 11px;
  color: #6B7299;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}
.anl-cc-cat-body {
  font-size: 12.5px;
  color: #B8C0D9;
  line-height: 1.55;
}

/* === Toggle switch === */
.anl-cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.anl-cc-toggle input { opacity: 0; width: 0; height: 0; }
.anl-cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #2A3060;
  border-radius: 24px;
  transition: 0.25s;
}
.anl-cc-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: 0.25s;
}
.anl-cc-toggle input:checked + .anl-cc-toggle-slider {
  background: linear-gradient(135deg, #1A38D4, #3B6BFF);
}
.anl-cc-toggle input:checked + .anl-cc-toggle-slider::before {
  transform: translateX(20px);
}
.anl-cc-toggle input:disabled + .anl-cc-toggle-slider {
  background: #1F2444;
  cursor: not-allowed;
  opacity: 0.6;
}

/* === Re-open trigger (in footer) === */
.anl-cc-trigger {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}
.anl-cc-trigger:hover { color: #FFFFFF; }

/* === Mobile === */
@media (max-width: 640px) {
  .anl-cc-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
  .anl-cc-actions { flex-direction: column; align-items: stretch; }
  .anl-cc-btn { width: 100%; text-align: center; }
  .anl-cc-modal-footer { flex-direction: column; align-items: stretch; }
}
