/* ── Cookie Consent Banner & Settings Panel ──
   Matches plantanywhere.net cream/green theme.
   Spec: c:/strategy/legal/cookie-consent-spec-mar18.md Section 6.3 */

#pa-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
  background: #1a2e1a; border-top: 2px solid #4caf50;
  padding: 20px 24px; font-family: 'Source Sans 3', sans-serif;
  color: #e8e8e8;
}
.pa-cb-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.pa-cb-text { flex: 1; min-width: 280px; }
.pa-cb-text strong { font-size: 16px; display: block; margin-bottom: 6px; color: #fff; }
.pa-cb-text p { font-size: 13px; line-height: 1.5; margin: 0; color: #ccc; }
.pa-cb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.pa-cb-btn {
  padding: 10px 20px; border-radius: 6px; font-size: 14px;
  font-weight: 600; cursor: pointer; border: none; white-space: nowrap;
}
.pa-cb-btn-primary { background: #4caf50; color: #fff; }
.pa-cb-btn-primary:hover { background: #43a047; }
.pa-cb-btn-secondary {
  background: transparent; color: #4caf50;
  border: 2px solid #4caf50;
  padding: 8px 18px;
}
.pa-cb-btn-secondary:hover { background: rgba(76,175,80,0.12); }
.pa-cb-btn-tertiary {
  background: transparent; color: #aaa; border: none;
  text-decoration: underline; padding: 10px 12px;
}
.pa-cb-btn-tertiary:hover { color: #fff; }

#pa-cookie-settings {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100000; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
}
.pa-cs-inner {
  background: #1a2e1a; border-radius: 12px; max-width: 520px;
  width: 90%; max-height: 80vh; overflow-y: auto; padding: 24px;
  border: 1px solid #4caf50;
}
.pa-cs-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.pa-cs-header h2 { margin: 0; font-size: 18px; color: #fff; }
.pa-cs-header button {
  background: none; border: none; color: #aaa; font-size: 24px; cursor: pointer;
}
.pa-cs-category {
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pa-cs-cat-header {
  display: flex; justify-content: space-between; align-items: center;
}
.pa-cs-cat-header label { font-weight: 600; color: #e8e8e8; font-size: 15px; }
.pa-cs-always-on {
  font-size: 12px; color: #4caf50; font-weight: 600;
  background: rgba(76,175,80,0.12); padding: 2px 8px; border-radius: 4px;
}
.pa-cs-category p { font-size: 13px; color: #aaa; margin: 6px 0 0; line-height: 1.4; }
.pa-cs-footer { margin-top: 16px; text-align: right; }
.pa-cs-footer p { font-size: 12px; color: #888; margin-bottom: 12px; text-align: left; }
.pa-cs-footer a { color: #4caf50; }

.pa-cs-toggle {
  position: relative; display: inline-block; width: 44px; height: 24px;
  flex-shrink: 0;
}
.pa-cs-toggle input { opacity: 0; width: 0; height: 0; }
.pa-cs-toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #555; border-radius: 24px; transition: 0.2s;
}
.pa-cs-toggle-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
  transition: 0.2s;
}
.pa-cs-toggle input:checked + .pa-cs-toggle-slider { background: #4caf50; }
.pa-cs-toggle input:checked + .pa-cs-toggle-slider::before { transform: translateX(20px); }

.footer-legal {
  text-align: center; padding: 20px 16px; font-size: 13px;
  color: #666; border-top: 1px solid #ddd; margin-top: 40px;
  font-family: 'Source Sans 3', sans-serif;
}
.footer-legal a { color: #43A047; text-decoration: none; margin: 0 4px; }
.footer-legal a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .pa-cb-inner { flex-direction: column; align-items: stretch; }
  .pa-cb-actions { flex-direction: column; }
  .pa-cb-btn { width: 100%; text-align: center; }
}
