/* Cookie-consent banner — plain-CSS port of the Tailwind classes in
   Vernast-v2.0/src/components/CookieConsent.tsx, so both sites look identical.
   Design D: Vernast branding, bottom-anchored card, no full-screen overlay. */

.vc-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  /* The wrapper spans the full width; without this it becomes an invisible
     catcher over anything anchored to the bottom of the viewport. The card
     re-enables pointer events for itself. */
  pointer-events: none;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (min-width: 640px) {
  .vc-wrap { padding: 1.5rem; }
}

.vc-card {
  pointer-events: auto;
  max-width: 28rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-left: 4px solid #dc2626;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  overflow: hidden;
  box-sizing: border-box;
}

/* Header */
.vc-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.25rem 1.25rem 0.25rem;
}

.vc-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.vc-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}

/* Body */
.vc-body { padding: 0.75rem 1.25rem; }

.vc-text {
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.625;
  margin: 0;
}

.vc-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  color: #dc2626;
  cursor: pointer;
  transition: color 150ms;
}

.vc-more:hover { color: #b91c1c; }
.vc-more svg { width: 0.875rem; height: 0.875rem; }

/* Granular rows */
.vc-rows {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.vc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  background: #f9fafb;
}

.vc-row-label { font-size: 11px; font-weight: 500; color: #374151; }
.vc-row-sub { font-size: 9px; color: #9ca3af; margin: 0; }

/* Toggle */
.vc-toggle {
  width: 34px;
  height: 17px;
  border: 0;
  border-radius: 9999px;
  position: relative;
  flex-shrink: 0;
  background: #d1d5db;
  cursor: pointer;
  transition: background-color 150ms;
  padding: 0;
}

.vc-toggle.is-on { background: #dc2626; }
.vc-toggle:disabled { opacity: 0.8; cursor: default; }

.vc-toggle .vc-knob {
  position: absolute;
  top: 2.5px;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transform: translateX(2px);
  transition: transform 150ms;
}

.vc-toggle.is-on .vc-knob { transform: translateX(18px); }

.vc-toggle:focus-visible { outline: 2px solid #dc2626; outline-offset: 2px; }

/* Actions */
.vc-actions {
  padding: 0 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vc-btn-pair { display: flex; gap: 0.5rem; }
.vc-btn-pair .vc-btn { flex: 1; }

.vc-btn {
  width: 100%;
  padding: 0.625rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms, color 150ms;
}

.vc-btn-primary { background: #16a34a; color: #fff; }
.vc-btn-primary:hover { background: #15803d; }

.vc-btn-ghost {
  background: #fff;
  border-color: #e5e7eb;
  color: #6b7280;
  font-weight: 500;
}

.vc-btn-ghost:hover { background: #f9fafb; }
.vc-btn:focus-visible { outline: 2px solid #dc2626; outline-offset: 2px; }

.vc-legal { font-size: 9px; color: #9ca3af; margin: 0; }
.vc-legal a { color: #dc2626; text-decoration: none; }
.vc-legal a:hover { text-decoration: underline; }

/* This site has a sticky mobile call/contact bar at the bottom; lift the banner
   above it and clear the iOS home indicator. */
@media (max-width: 999px) {
  .vc-wrap {
    padding-bottom: calc(1rem + 4rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vc-toggle, .vc-toggle .vc-knob, .vc-btn, .vc-more { transition: none; }
}

/* Withdraw-consent link, appended to the page footer by consent.js. Neutral and
   inherited-colour so it blends into both footer flavours (dark WP-mirror footer
   and the redesign footers) without needing per-page overrides. */
.vc-reopen {
  display: block;
  margin: 1rem auto 0;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.7;
  text-decoration: underline;
  cursor: pointer;
}

.vc-reopen:hover { opacity: 1; }
.vc-reopen:focus-visible { outline: 2px solid #dc2626; outline-offset: 2px; }
