/* Cookie consent — Industrial Matte */

/* Full-screen gatekeeper — transparent blur teaser */
.md-cookie-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.md-cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--z-toast, 13000) + 200);
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.28s var(--ease-standard, ease),
    transform 0.28s var(--ease-standard, ease);
}

.md-cookie-consent--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.md-cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 14px 14px 0 0;
  background: rgba(23, 23, 23, 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  color: #e8eaed;
  font-family: var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif);
}

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

.md-cookie-consent__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f4f5;
}

.md-cookie-consent__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #a1a1aa;
}

.md-cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.md-cookie-consent__btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.md-cookie-consent__btn--decline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
}

.md-cookie-consent__btn--decline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fafafa;
}

.md-cookie-consent__btn--accept {
  background: #3f3f46;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fafafa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.md-cookie-consent__btn--accept:hover {
  background: #52525b;
  border-color: rgba(255, 255, 255, 0.18);
}

.md-cookie-consent__btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

body.md-cookie-consent-open {
  /* Reserve space only when needed — banner is overlay, no layout shift */
}

@media (max-width: 640px) {
  .md-cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px 12px 0 0;
    padding: 14px 16px;
  }

  .md-cookie-consent__actions {
    width: 100%;
  }

  .md-cookie-consent__btn {
    flex: 1 1 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-cookie-consent {
    transition: none;
  }
}
