/* =========================================================================
 * Suntech — Cookie Consent Manager
 * ========================================================================= */

/* Banner */
#sc-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(7,9,26,0.97);
  border-top: 1px solid rgba(148,163,184,0.14);
  padding: 18px 24px;
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#sc-banner.sc-visible { transform: translateY(0); }

#sc-banner .sc-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
#sc-banner .sc-text {
  flex: 1 1 320px;
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.55;
}
#sc-banner .sc-text strong { color: #F1F5F9; }
#sc-banner .sc-text a { color: #38BDF8; text-decoration: none; }
#sc-banner .sc-text a:hover { text-decoration: underline; }

#sc-banner .sc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Overlay */
#sc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(7,9,26,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#sc-overlay.sc-visible { display: flex; }

/* Modal */
#sc-modal {
  background: #0F1424;
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}
#sc-modal h2 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #F1F5F9;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
#sc-modal .sc-modal-lead {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.55;
  margin: 0 0 20px;
}
#sc-modal .sc-modal-lead a { color: #38BDF8; text-decoration: none; }

.sc-category {
  border: 1px solid rgba(148,163,184,0.10);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.sc-category-info { flex: 1; }
.sc-category-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
  margin-bottom: 3px;
}
.sc-category-info span {
  font-size: 12px;
  color: #64748B;
  line-height: 1.45;
}

/* Toggle switch */
.sc-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}
.sc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.sc-toggle .sc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(148,163,184,0.18);
  border-radius: 12px;
  transition: background .2s;
}
.sc-toggle input:checked + .sc-slider { background: #38BDF8; }
.sc-toggle input:disabled + .sc-slider { opacity: 0.45; cursor: not-allowed; }
.sc-toggle .sc-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.sc-toggle input:checked + .sc-slider::before { transform: translateX(18px); }

.sc-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Buttons (re-use site btn style inline to avoid dependency order issues) */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  line-height: 1;
}
.sc-btn-primary {
  background: linear-gradient(120deg, #38BDF8 0%, #2DD4BF 55%, #818CF8 100%);
  color: #07091A;
}
.sc-btn-primary:hover { opacity: .92; }
.sc-btn-ghost {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.22);
  color: #94A3B8;
}
.sc-btn-ghost:hover { border-color: rgba(148,163,184,0.45); color: #F1F5F9; }
.sc-btn-link {
  background: none;
  border: none;
  color: #64748B;
  padding: 9px 10px;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.sc-btn-link:hover { color: #94A3B8; }

/* Footer re-open button */
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  line-height: inherit;
}
.footer-link-btn:hover { color: #F1F5F9; }

/* Responsive */
@media (max-width: 600px) {
  #sc-banner { padding: 16px 16px 20px; }
  #sc-banner .sc-inner { gap: 14px; }
  #sc-banner .sc-actions { width: 100%; }
  #sc-banner .sc-actions .sc-btn { flex: 1; justify-content: center; }
  #sc-modal { padding: 20px 18px; border-radius: 16px 16px 0 0; }
  #sc-overlay { align-items: flex-end; padding: 0; }
}
