/* ARCSoft cookie consent framework — portable.
   Host project sets --cc-accent + --cc-accent-hover in its own :root (mapped
   from --accent / --primary / --color-accent etc.). Inline fallbacks are
   baked into each usage so this file doesn't override the host's :root by
   loading later in the cascade.
*/
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #ffffff;
  color: #1f2937;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
  font-family: inherit;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cc-banner.cc-visible { transform: translateY(0); opacity: 1; }
.cc-banner[hidden] { display: none !important; }
.cc-banner-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.cc-text {
  flex: 1; min-width: 0;
  font-size: 0.9rem; line-height: 1.5;
}
.cc-text strong { display: block; margin-bottom: 0.25rem; font-weight: 700; }
.cc-text p { margin: 0; color: #4b5563; }
.cc-text a {
  color: var(--cc-accent, #27ae60); text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-text a:hover { color: var(--cc-accent-hover, #1f8a4d); }
.cc-actions {
  display: flex; gap: 0.5rem; flex-shrink: 0;
}
.cc-btn {
  font: inherit; cursor: pointer;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 0.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.cc-btn-secondary {
  background: transparent; color: #1f2937;
  border-color: #e5e7eb;
}
.cc-btn-secondary:hover { background: #f3f4f6; border-color: #d1d5db; }
.cc-btn-primary {
  background: var(--cc-accent, #27ae60); color: #fff;
  border-color: var(--cc-accent, #27ae60);
}
.cc-btn-primary:hover {
  background: var(--cc-accent-hover, #1f8a4d);
  border-color: var(--cc-accent-hover, #1f8a4d);
}

@media (max-width: 640px) {
  .cc-banner-inner {
    flex-direction: column; align-items: stretch; gap: 0.75rem;
    padding: 1rem;
  }
  .cc-actions { justify-content: stretch; }
  .cc-btn { flex: 1; }
  .cc-text { font-size: 0.85rem; }
}

/* Footer link that re-opens the banner */
.cc-footer-link {
  background: none; border: none; padding: 0; font: inherit;
  color: inherit; text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}
.cc-footer-link:hover { opacity: 0.8; }

/* Cookie policy page table */
.cookie-table {
  width: 100%; border-collapse: collapse;
  margin: 1rem 0 1.5rem; font-size: 0.92rem;
}
.cookie-table th,
.cookie-table td {
  border: 1px solid #e5e7eb;
  padding: 0.55rem 0.75rem;
  text-align: left; vertical-align: top;
}
.cookie-table th {
  background: #f3f4f6; font-weight: 600;
}
.cookie-table code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; }
@media (max-width: 640px) {
  .cookie-table, .cookie-table thead, .cookie-table tbody,
  .cookie-table th, .cookie-table td, .cookie-table tr { display: block; }
  .cookie-table thead { display: none; }
  .cookie-table tr { margin-bottom: 0.75rem; border: 1px solid #e5e7eb; }
  .cookie-table td { border: none; border-bottom: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; }
  .cookie-table td:last-child { border-bottom: none; }
  .cookie-table td::before {
    content: attr(data-label); font-weight: 600;
    display: block; font-size: 0.75rem; text-transform: uppercase;
    color: #4b5563; margin-bottom: 0.15rem;
  }
}
