/**
 * Cookie consent bar — VitaConsalt
 */

.vc-cookie {
  --vc-cookie-teal: #007660;
  --vc-cookie-teal-deep: #005c4b;
  --vc-cookie-ink: #1c1f1e;
  --vc-cookie-muted: #5f6864;
  --vc-cookie-paper: #ffffff;
  --vc-cookie-line: #d8dedb;

  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 100001;
  display: none;
  font-family: "TildaSans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.vc-cookie.is-visible {
  display: block;
}

/* Keep footer/contacts readable while the bar is open */
body.vc-cookie-open {
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.vc-cookie__panel {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--vc-cookie-paper);
  color: var(--vc-cookie-ink);
  border: 1px solid rgba(0, 118, 96, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(16, 28, 24, 0.18);
}

.vc-cookie__panel *,
.vc-cookie__panel *::before,
.vc-cookie__panel *::after {
  box-sizing: border-box;
}

.vc-cookie__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--vc-cookie-muted);
}

.vc-cookie__text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--vc-cookie-ink);
}

.vc-cookie__text a {
  color: var(--vc-cookie-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vc-cookie__text a:hover {
  color: var(--vc-cookie-teal-deep);
}

.vc-cookie__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.vc-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vc-cookie__btn--accept {
  background: var(--vc-cookie-teal);
  color: #fff;
}

.vc-cookie__btn--accept:hover {
  background: var(--vc-cookie-teal-deep);
}

.vc-cookie__btn--reject {
  background: transparent;
  color: var(--vc-cookie-ink);
  border-color: var(--vc-cookie-line);
}

.vc-cookie__btn--reject:hover {
  border-color: #b7c0bc;
  background: #f3f6f4;
}

@media screen and (max-width: 720px) {
  .vc-cookie {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }

  .vc-cookie__panel {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 14px 12px;
  }

  .vc-cookie__actions {
    width: 100%;
  }

  .vc-cookie__btn {
    flex: 1 1 0;
  }

  body.vc-cookie-open {
    padding-bottom: calc(210px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vc-cookie__btn {
    transition: none;
  }
}
