.cookie-consent {
  background: var(--panel);
  border-top: 1px solid var(--line);
  bottom: 0;
  box-shadow: 0 -8px 24px rgba(29, 36, 51, 0.08);
  left: 0;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  position: fixed;
  right: 0;
  z-index: 1000;
}

.cookie-consent-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

.cookie-consent-copy {
  flex: 1 1 18rem;
  min-width: 0;
}

.cookie-consent-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.cookie-consent-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-consent-desc a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.65rem 1.1rem;
}

.cookie-consent-btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.cookie-consent-btn-secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.cookie-consent-btn-secondary:hover {
  background: var(--paper);
}

.cookie-settings-link {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
