/**
 * Cookie consent banner — VetDesk-style light card (shared public pages).
 * Higher specificity than legacy `.cookie .cookie-consent` in style.css.
 */
.cookie .cookie-consent.cookie-consent--p0,
.cookie-consent.cookie-consent--p0 {
  position: fixed;
  z-index: 99999;
  inset: auto 0 0 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1rem;
  transform: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

@media (min-width: 640px) {
  .cookie .cookie-consent.cookie-consent--p0,
  .cookie-consent.cookie-consent--p0 {
    padding: 1.5rem;
  }
}

.cookie .cookie-consent--p0 .cookie-consent__panel,
.cookie-consent--p0 .cookie-consent__panel {
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto;
  padding: 1.25rem;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 1rem; /* rounded-2xl */
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
}

.cookie .cookie-consent--p0 .cookie-consent__main,
.cookie-consent--p0 .cookie-consent__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie .cookie-consent--p0 .cookie-consent__title,
.cookie-consent--p0 .cookie-consent__title {
  display: block;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}

.cookie .cookie-consent--p0 .cookie-consent__message,
.cookie-consent--p0 .cookie-consent__message {
  margin: 0.25rem 0 0;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.625;
}

.cookie .cookie-consent--p0 .cookie-consent__message a,
.cookie-consent--p0 .cookie-consent__message a {
  color: var(--primary-color, #0f172a);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 2px;
}

.cookie .cookie-consent--p0 .cookie-consent__message a:hover,
.cookie-consent--p0 .cookie-consent__message a:hover {
  text-decoration: underline;
}

.cookie .cookie-consent--p0 .cookie-consent__actions,
.cookie-consent--p0 .cookie-consent__actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
}

@media (min-width: 640px) {
  .cookie .cookie-consent--p0 .cookie-consent__actions,
  .cookie-consent--p0 .cookie-consent__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.cookie .cookie-consent--p0 .cookie-consent__btn,
.cookie-consent--p0 .cookie-consent__btn {
  appearance: none;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem; /* rounded-xl */
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie .cookie-consent--p0 .cookie-consent__btn:hover,
.cookie-consent--p0 .cookie-consent__btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.cookie .cookie-consent--p0 .cookie-consent__btn--primary,
.cookie-consent--p0 .cookie-consent__btn--primary {
  background: var(--primary-color, #0f172a);
  border-color: var(--primary-color, #0f172a);
  color: #ffffff;
  font-weight: 700;
}

.cookie .cookie-consent--p0 .cookie-consent__btn--primary:hover,
.cookie-consent--p0 .cookie-consent__btn--primary:hover {
  background: var(--primary-color, #0f172a);
  border-color: var(--primary-color, #0f172a);
  color: #ffffff;
  filter: brightness(1.12);
}

.cookie .cookie-consent--p0 .cookie-consent__btn--ghost,
.cookie-consent--p0 .cookie-consent__btn--ghost {
  border-color: transparent;
  background: transparent;
  color: #334155;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie .cookie-consent--p0 .cookie-consent__cats,
.cookie-consent--p0 .cookie-consent__cats {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cookie .cookie-consent--p0 .cookie-consent__cats li,
.cookie-consent--p0 .cookie-consent__cats li {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.85rem 1rem;
}

.cookie .cookie-consent--p0 .cookie-consent__cats label,
.cookie-consent--p0 .cookie-consent__cats label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: #0f172a;
  font-size: 0.875rem;
}

.cookie .cookie-consent--p0 .cookie-consent__cats b,
.cookie-consent--p0 .cookie-consent__cats b {
  font-weight: 600;
}

.cookie .cookie-consent--p0 .cookie-consent__cats small,
.cookie-consent--p0 .cookie-consent__cats small {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.cookie .cookie-consent--p0 .cookie-consent__cats input,
.cookie-consent--p0 .cookie-consent__cats input {
  margin-top: 0.2rem;
}

@media (max-width: 639.98px) {
  .cookie .cookie-consent--p0 .cookie-consent__btn,
  .cookie-consent--p0 .cookie-consent__btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie .cookie-consent--p0 .cookie-consent__btn,
  .cookie-consent--p0 .cookie-consent__btn {
    transition: none;
  }
}
