/* Cookie consent — compact floating bar at bottom (152-ФЗ) */
.vet-cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100200;
  display: none;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  pointer-events: none;
  background: transparent;
}

.vet-cookie-consent.is-open {
  display: block;
}

.vet-cookie-consent[hidden] {
  display: none !important;
}

.vet-cookie-consent__dialog {
  pointer-events: auto;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.vet-cookie-consent__copy {
  flex: 1 1 220px;
  min-width: 0;
}

.vet-cookie-consent__title {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f8fafc;
}

.vet-cookie-consent__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.vet-cookie-consent__text a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vet-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.vet-cookie-consent__btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  box-sizing: border-box;
}

.vet-cookie-consent__btn--primary {
  padding: 10px 16px;
  min-height: 40px;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--vet-cookie-accent, #0ea5e9);
  color: #fff !important;
}

.vet-cookie-consent__btn--primary:hover,
.vet-cookie-consent__btn--primary:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.vet-cookie-consent__btn--secondary {
  padding: 4px 6px;
  min-height: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  background: transparent;
  color: #94a3b8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vet-cookie-consent__btn--secondary:hover,
.vet-cookie-consent__btn--secondary:focus-visible {
  color: #e2e8f0 !important;
  outline: none;
}

@media (max-width: 639px) {
  .vet-cookie-consent__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .vet-cookie-consent__btn--primary {
    width: 100%;
  }

  .vet-cookie-consent__btn--secondary {
    align-self: center;
  }
}
