/* ServQore cookie consent banner + preferences modal */

.sq-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 10000;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: min(920px, calc(100vw - 2rem));
  box-sizing: border-box;
  padding: 0.7rem 1.15rem 0.7rem 1.35rem;
  border-radius: 100px;
  border: 1px solid var(--border2, #243350);
  background: color-mix(in srgb, var(--surface, #0f1726) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sq-consent-banner.sq-consent-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sq-consent-text {
  margin: 0;
  flex: 1 1 16rem;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-muted, #7a8ba8);
}

.sq-consent-text a {
  color: var(--blue, #3b6ef8);
  text-decoration: none;
}

.sq-consent-text a:hover {
  text-decoration: underline;
}

.sq-consent-actions {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.sq-consent-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 100px;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.sq-consent-btn:hover {
  transform: translateY(-1px);
}

.sq-consent-btn-primary {
  background: var(--mint, #00e5a0);
  color: var(--mint-text, #061210);
}

.sq-consent-btn-primary:hover {
  background: var(--mint-dark, #00c488);
}

.sq-consent-btn-secondary {
  background: transparent;
  color: var(--text, #f0f4ff);
  border-color: var(--border2, #243350);
}

.sq-consent-btn-secondary:hover {
  border-color: var(--text-muted, #7a8ba8);
  background: var(--blue-dim, rgba(59, 110, 248, 0.12));
}

/* Modal */
.sq-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sq-consent-modal.sq-consent-modal-open {
  opacity: 1;
  pointer-events: auto;
}

body.sq-consent-modal-active {
  overflow: hidden;
}

.sq-consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-bg, rgba(0, 0, 0, 0.78));
}

.sq-consent-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border2, #243350);
  background: var(--surface, #0f1726);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.sq-consent-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: var(--surface2, #151e2e);
  color: var(--text-muted, #7a8ba8);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.sq-consent-modal-close:hover {
  color: var(--text, #f0f4ff);
}

.sq-consent-modal-panel h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin: 0 2rem 0.5rem 0;
  color: var(--text, #f0f4ff);
}

.sq-consent-modal-sub {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted, #7a8ba8);
  line-height: 1.55;
}

.sq-consent-gpc-notice {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--mint-border, rgba(0, 229, 160, 0.22));
  background: var(--mint-dim, rgba(0, 229, 160, 0.12));
  color: var(--text, #f0f4ff);
  font-size: 0.875rem;
  line-height: 1.45;
}

.sq-consent-category {
  padding: 1rem 0;
  border-top: 1px solid var(--border, #1e2a3f);
}

.sq-consent-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.sq-consent-toggle-row {
  cursor: pointer;
}

.sq-consent-category-name {
  font-weight: 600;
  color: var(--text, #f0f4ff);
}

.sq-consent-always {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #4a5a72);
}

.sq-consent-category-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted, #7a8ba8);
  line-height: 1.5;
}

.sq-consent-toggle {
  width: 2.75rem;
  height: 1.5rem;
  accent-color: var(--mint, #00e5a0);
  cursor: pointer;
}

.sq-consent-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sq-consent-modal-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 0.5rem;
}

.sq-consent-modal-foot {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim, #4a5a72);
  text-align: center;
}

.sq-consent-modal-foot a {
  color: var(--blue, #3b6ef8);
  text-decoration: none;
}

.sq-consent-modal-foot a:hover {
  text-decoration: underline;
}

/* Footer privacy links (shared across legal pages) */
.footer-privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.75rem;
}

.footer-privacy-links a {
  font-size: 0.8rem;
  color: var(--blue, #3b6ef8);
  text-decoration: none;
}

.footer-privacy-links a:hover {
  text-decoration: underline;
}

.footer-privacy-links--minimal {
  justify-content: center;
  margin-top: 1.5rem;
}

.footer-privacy-links--minimal a {
  color: #64748b;
}

@media (max-width: 640px) {
  .sq-consent-banner {
    bottom: 0.85rem;
    width: calc(100vw - 1.25rem);
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    gap: 0.65rem 0.75rem;
  }

  .sq-consent-text {
    text-align: center;
    flex: 1 1 100%;
    font-size: 0.8rem;
  }

  .sq-consent-actions {
    flex: 1 1 100%;
    justify-content: center;
  }
}
