/* cookie-consent.css — softograph.com main site only */
:root {
  --cc-bg: #ffffff;
  --cc-text: #1a1a1a;        /* 17.4:1 on white */
  --cc-link: #0b57d0;        /* 6.4:1 on white */
  --cc-focus: #0b57d0;
  --cc-border: #1a1a1a;
}

.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  background: var(--cc-bg);
  color: var(--cc-text);
  border-top: 2px solid var(--cc-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  font-size: 1rem;
  line-height: 1.5;
}
.cc-inner { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 1.25rem; }

.cc-title { margin: 0 0 0.25rem; font-size: 1.125rem; font-weight: 700; color: var(--cc-text); }
.cc-text  { margin: 0 0 0.75rem; color: var(--cc-text); }
.cc-banner a, .cc-dialog a { color: var(--cc-link); text-decoration: underline; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* All buttons identical: Accept is never highlighted over Reject */
.cc-btn {
  min-height: 44px;
  min-width: 9rem;
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--cc-text);
  background: var(--cc-bg);
  border: 2px solid var(--cc-border);
  border-radius: 4px;
  cursor: pointer;
}
.cc-btn:hover { background: var(--cc-text); color: var(--cc-bg); }

.cc-btn:focus-visible,
.cc-banner a:focus-visible,
.cc-dialog a:focus-visible,
.cc-cat input:focus-visible,
.cc-footer-link:focus-visible {
  outline: 3px solid var(--cc-focus);
  outline-offset: 2px;
}

.cc-dialog {
  max-width: 36rem;
  width: calc(100% - 2rem);
  box-sizing: border-box;
  padding: 1.5rem;
  color: var(--cc-text);
  background: var(--cc-bg);
  border: 2px solid var(--cc-border);
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
}
.cc-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }

.cc-cat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid #767676;
}
.cc-cat input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--cc-text); }
.cc-cat label { font-weight: 700; }
.cc-desc {
  grid-column: 2;
  margin: 0;
  font-size: 0.9375rem;
  color: #555555 !important;
}
.cc-dialog .cc-actions { margin-top: 1rem; }

/* Footer "Cookie settings" control: a button that looks like the other footer links */
.cc-footer-link {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  color: #a0a0a0 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: inline !important;
}
.cc-footer-link:hover {
  background: transparent !important;
  color: #ffffff !important;
}

.cc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  .cc-actions { flex-direction: column; }
  .cc-btn { width: 100%; }
}

@media (forced-colors: active) {
  .cc-btn { border: 2px solid ButtonText; }
}

@media print {
  .cc-banner, .cc-dialog { display: none !important; }
}
