/* Bottom-sheet cookie consent surface. Renders only for EU/EEA/UK
   visitors on first visit (see shared/cookie-banner.js). Equal-weight
   Accept / Reject buttons per GDPR guidance — no dark-pattern styling
   that makes one choice more prominent than the other. */

.cc-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(28, 27, 24, 0.08);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 16px;
  animation: cc-slide-up 0.3s ease-out;
}

.cc-sheet-hidden {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.cc-sheet-text {
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 620px;
}

.cc-sheet-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-sheet-text a:hover {
  color: var(--text-2);
}

.cc-sheet-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.cc-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cc-btn:hover {
  border-color: var(--border-md);
}

.cc-btn-accept {
  background: var(--accent);
  color: var(--accent-inv);
  border-color: var(--accent);
}

.cc-btn-accept:hover {
  opacity: 0.85;
  border-color: var(--accent);
}

@keyframes cc-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (max-width: 560px) {
  .cc-sheet {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .cc-sheet-actions {
    justify-content: flex-end;
    margin-left: 0;
  }
}
