:root {
  --cookie-consent-bg: #F3C7C7;
  --cookie-consent-fg: #f7f4ef;
  --cookie-consent-muted: #c7d0d8;
  --cookie-consent-border: rgba(255, 255, 255, 0.18);
  --cookie-consent-primary: #2dd4bf;
  --cookie-consent-primary-fg: #06211f;
  --cookie-consent-secondary: rgba(255, 255, 255, 0.1);
  --cookie-consent-focus: #f5c542;
}

.cookie-consent {
  position: fixed;
  box-sizing: border-box;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  inset-inline: 0;
  bottom: 0;
  z-index: 2147483647;
  display: none;
  padding: 16px;
  color: var(--cookie-consent-fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.cookie-consent__panel {
  box-sizing: border-box;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 18px;
  background: #F3C7C7;
  border: 1px solid #000;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.cookie-consent__title {
  font-family: Bitter, sans-serif;
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  color: #000;
}

.cookie-consent__text {
  margin: 0;
  color: #000;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-consent__link {
  color: #0000FF;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #000;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.cookie-consent__button:focus-visible {
  outline: 3px solid var(--cookie-consent-focus);
  outline-offset: 2px;
}

.cookie-consent__button--accept {
  background: var(--cookie-consent-primary);
  color: #000;
  
}

.cookie-consent__button--reject {
  background: #FF6347;
  color: #000;
}

@media (min-width: 720px) {
  .cookie-consent__panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
  }

  .cookie-consent__actions {
    margin-top: 0;
    justify-content: end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent.is-visible .cookie-consent__panel {
    animation: cookie-consent-enter 180ms ease-out;
  }

  @keyframes cookie-consent-enter {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
