/* VetFinder native cookie consent — Cookiebot-parity categories */
#vf-consent-root {
  --vf-c-ink: #171412;
  --vf-c-muted: #5f6f64;
  --vf-c-paper: #fbfcfb;
  --vf-c-accent: #2e4c38;
  --vf-c-accent-dark: #042419;
  --vf-c-line: #d9e0db;
  --vf-c-cta: #f1ae4e;
  --vf-c-shadow: 0 -4px 28px rgba(4, 36, 25, 0.14);
  font-family: Inter, "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--vf-c-ink);
}

#vf-consent-root[hidden] {
  display: none !important;
}

.vf-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: var(--vf-c-paper);
  border-top: 1px solid var(--vf-c-line);
  box-shadow: var(--vf-c-shadow);
  padding: 1rem 1.25rem 1.15rem;
}

.vf-consent-banner__inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.vf-consent-banner h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vf-c-accent);
}

.vf-consent-banner p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--vf-c-muted);
}

.vf-consent-banner a {
  color: var(--vf-c-accent);
  font-weight: 600;
}

.vf-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.vf-consent-btn {
  appearance: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
}

.vf-consent-btn--primary {
  background: var(--vf-c-cta);
  color: #fff;
}

.vf-consent-btn--primary:hover {
  background: var(--vf-c-accent);
}

.vf-consent-btn--secondary {
  background: var(--vf-c-accent);
  color: #fff;
}

.vf-consent-btn--ghost {
  background: transparent;
  color: var(--vf-c-accent);
  border: 1px solid var(--vf-c-line);
}

.vf-consent-btn--ghost:hover {
  border-color: var(--vf-c-accent);
}

.vf-consent-panel {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 36, 25, 0.45);
  padding: 1rem;
}

.vf-consent-panel[hidden] {
  display: none !important;
}

.vf-consent-dialog {
  width: min(560px, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 12px 12px 8px 8px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 16px 48px rgba(4, 36, 25, 0.28);
}

.vf-consent-dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--vf-c-accent);
}

.vf-consent-dialog > p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--vf-c-muted);
  line-height: 1.45;
}

.vf-consent-cat {
  border: 1px solid var(--vf-c-line);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  margin: 0 0 0.65rem;
}

.vf-consent-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.vf-consent-cat__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--vf-c-ink);
}

.vf-consent-cat__desc {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--vf-c-muted);
  line-height: 1.4;
}

.vf-consent-cat__lock {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vf-c-muted);
}

.vf-consent-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.vf-consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.vf-consent-switch span {
  position: absolute;
  inset: 0;
  background: #c5cfc8;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vf-consent-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.vf-consent-switch input:checked + span {
  background: var(--vf-c-accent);
}

.vf-consent-switch input:checked + span::after {
  transform: translateX(18px);
}

.vf-consent-switch input:disabled + span {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .vf-consent-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .vf-consent-panel {
    align-items: center;
  }

  .vf-consent-dialog {
    border-radius: 12px;
  }
}
