﻿/* Cookie Banner - Optify */

.privacy-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  width: min(calc(100% - 48px), 640px);
  color: #eeeee4;
  font-family: var(--f-sans);
}

.privacy-consent[hidden] {
  display: none;
}

.privacy-consent-container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 20px;
  align-items: start;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(250, 249, 247, .055), transparent 42%),
    rgba(13, 12, 10, .96);
  border: 1px solid rgba(184, 151, 90, .32);
  box-shadow: 0 24px 60px rgba(13, 12, 10, .34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: consentPanelIn .42s cubic-bezier(.32, .72, 0, 1);
}

.privacy-consent.is-hiding .privacy-consent-container {
  animation: consentPanelOut .28s ease forwards;
}

.privacy-consent-brand {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #faf9f7;
  border: 1px solid rgba(184, 151, 90, .32);
}

.privacy-consent-logo {
  width: 38px;
  height: auto;
  display: block;
}

.privacy-consent-content {
  min-width: 0;
}

.privacy-consent-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.privacy-consent h2 {
  margin: 0 0 8px;
  color: #eeeee4;
  font-family: var(--f-serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
}

.privacy-consent p {
  margin: 0;
}

.privacy-consent-content p:last-child {
  color: rgba(250, 249, 247, .64);
  font-size: .9rem;
  line-height: 1.65;
}

.privacy-consent-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(250, 249, 247, .1);
}

.consent-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-family: var(--f-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .1s ease;
}

.consent-btn:hover {
  transform: translateY(-1px);
}

.consent-btn:active {
  transform: scale(.98);
}

.consent-btn:focus-visible {
  outline: 2px solid var(--accent-lt);
  outline-offset: 3px;
}

.consent-btn-primary {
  background: #eeeee4;
  color: var(--text);
}

.consent-btn-primary:hover {
  background: var(--accent);
  color: var(--dark);
}

.consent-btn-secondary {
  border-color: rgba(184, 151, 90, .58);
  color: #eeeee4;
}

.consent-btn-secondary:hover {
  background: rgba(184, 151, 90, .16);
  border-color: var(--accent);
}

.consent-btn-ghost {
  color: rgba(250, 249, 247, .58);
  border-color: rgba(250, 249, 247, .12);
}

.consent-btn-ghost:hover {
  color: #eeeee4;
  border-color: rgba(250, 249, 247, .28);
}

.consent-notification {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10001;
  max-width: calc(100% - 48px);
  padding: .78rem 1rem;
  background: var(--dark);
  color: #eeeee4;
  border: 1px solid rgba(184, 151, 90, .34);
  font-family: var(--f-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 16px 40px rgba(13, 12, 10, .25);
  animation: consentNoticeIn .24s ease;
}

.consent-notification.is-hiding {
  animation: consentNoticeOut .2s ease forwards;
}

@keyframes consentPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes consentPanelOut {
  to {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes consentNoticeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes consentNoticeOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 720px) {
  .privacy-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .privacy-consent-container {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .privacy-consent-brand {
    width: 46px;
    height: 46px;
  }

  .privacy-consent-logo {
    width: 34px;
  }

  .privacy-consent-actions {
    grid-template-columns: 1fr;
    padding-top: 14px;
  }

  .consent-btn {
    width: 100%;
    min-height: 44px;
  }

  .consent-notification {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent-container,
  .privacy-consent.is-hiding .privacy-consent-container,
  .consent-notification,
  .consent-notification.is-hiding {
    animation: none;
  }

  .consent-btn {
    transition: none;
  }
}

