/* ============================================================
   GDPR & CCPA Cookie Consent — Stylesheet
   ============================================================ */

/* Overlay */
#gccc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1rem 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  #gccc-overlay {
    align-items: center;
  }
}

/* Banner card */
#gccc-banner {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 560px;
  padding: 1.75rem;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.6;
}

/* Header row */
.gccc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.gccc-icon {
  font-size: 22px;
  line-height: 1;
}

.gccc-header h2,
#gccc-prefs h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

/* Body text */
#gccc-simple p,
#gccc-prefs p {
  margin: 0 0 0.75rem;
  color: #444;
  font-size: 13.5px;
}

#gccc-simple a,
#gccc-prefs a {
  text-decoration: underline;
}

/* CCPA notice */
.gccc-ccpa-only {
  background: #f0f6fc;
  border-left: 3px solid #0073aa;
  padding: 0.6rem 0.75rem;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  margin-bottom: 1rem !important;
}

/* Button row */
.gccc-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
  align-items: center;
}

/* Buttons */
.gccc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem !important;
  flex-grow: 1;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}

.gccc-btn:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

/* Primary: solid */
.gccc-btn-primary {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.gccc-btn-primary:focus {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.gccc-btn-primary:hover {
  background: #1a1a1add;
  border-color: #1a1a1add;
}

/* Secondary: outline */
.gccc-btn-secondary {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
}
.gccc-btn-secondary:hover {
  background: #1a1a1a25;
  color: #1a1a1a;
}

/* Link style */
.gccc-btn-link {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  font-size: 13px;
}
.gccc-btn-link:hover {
   background: #1a1a1a25;
  color: #1a1a1a;
}

/* ── Preferences panel ─────────────────────────────────── */
#gccc-prefs h2 {
  margin-bottom: 1rem;
}

.gccc-category {
  border-top: 1px solid #e8e8e8;
  padding: 0.9rem 0;
}

.gccc-category:last-of-type {
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 0.25rem;
}

.gccc-category-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}

.gccc-category-info {
  flex: 1;
}

.gccc-category-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #111;
  margin-bottom: 3px;
}

.gccc-category-info p {
  font-size: 12.5px;
  color: #666;
  margin: 0 !important;
}

/* "Always On" badge */
.gccc-badge {
  display: inline-block;
  background: #eaf7ee;
  color: #1a7a3c;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Toggle switch ─────────────────────────────────────── */
.gccc-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.gccc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.gccc-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.2s;
}

.gccc-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.gccc-toggle input:checked + .gccc-toggle-slider {
  background: #0073aa;
}

.gccc-toggle input:checked + .gccc-toggle-slider::before {
  transform: translateX(18px);
}

.gccc-toggle input:focus-visible + .gccc-toggle-slider {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

/* ── Floating settings button ──────────────────────────── */
#gccc-settings-btn {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #333;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}

@media(max-width: 768px){
    #gccc-settings-btn {
        bottom: 5.25rem;
        left: 0.6rem;
    }
}

#gccc-settings-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

#gccc-settings-btn:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

#gccc-settings-btn[hidden] {
  display: none;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
  #gccc-banner { padding: 1.25rem; }
  .gccc-btn-row { flex-direction: column; align-items: stretch; }
  .gccc-btn { text-align: center; }
  #gccc-settings-btn { font-size: 11.5px; padding: 0.4rem 0.7rem; }
}
