/* ==========================================================================
   Cookie Consent V2
   Global lightweight consent strip
   ========================================================================== */

.cookie-consent-v2 {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(680px, calc(100vw - 40px));
  min-height: 60px;
  padding: 18px 22px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 8px 24px rgba(17, 24, 39, 0.08),
    0 24px 60px rgba(17, 24, 39, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px);
  transition:
    opacity 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cookie-consent-v2.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-consent-v2.is-dismissing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
}

.cookie-consent-v2__content {
  min-width: 0;
}

.cookie-consent-v2__title {
  margin: 0 0 2px;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: var(--lh-title);
  letter-spacing: 0.01em;
  color: var(--black-2);
}

.cookie-consent-v2__body {
  margin: 0;
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: var(--lh-caption);
  color: var(--color-text-muted);
}

.cookie-consent-v2__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.cookie-consent-v2__button,
.cookie-consent-v2__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: var(--lh-heading);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.cookie-consent-v2__button {
  border: 2px solid var(--secondary);
  background: var(--secondary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 75, 113, 0.2);
  cursor: pointer;
}

.cookie-consent-v2__link {
  border: 2px solid rgba(23, 75, 113, 0.2);
  background: #ffffff;
  color: var(--secondary);
}

.cookie-consent-v2__button:hover,
.cookie-consent-v2__link:hover {
  transform: translateY(-1px);
}

.cookie-consent-v2__button:hover {
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 75, 113, 0.26);
}

.cookie-consent-v2__link:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.cookie-consent-v2__button:focus-visible,
.cookie-consent-v2__link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .cookie-consent-v2 {
    bottom: 16px;
    flex-direction: column;
    align-items: stretch;
    width: min(420px, calc(100vw - 32px));
    padding: 18px;
    gap: 16px;
  }

  .cookie-consent-v2__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cookie-consent-v2__button,
  .cookie-consent-v2__link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-v2,
  .cookie-consent-v2__button,
  .cookie-consent-v2__link {
    transition-duration: 1ms !important;
  }
}
