/* Cookie Banner - bottom bar */
#simpcity-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a2e;
  color: #ccc;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-banner-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner-inner a {
  color: #90caf9;
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

#simpcity-cookie-banner .cookie-btn-accept,
#simpcity-cookie-banner .cookie-btn-reject {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

#simpcity-cookie-banner .cookie-btn-accept {
  background: #4caf50;
  color: #fff;
}

#simpcity-cookie-banner .cookie-btn-accept:hover {
  background: #43a047;
}

#simpcity-cookie-banner .cookie-btn-reject {
  background: #555;
  color: #fff;
}

#simpcity-cookie-banner .cookie-btn-reject:hover {
  background: #666;
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    padding: 14px 16px;
    gap: 12px;
  }
  .cookie-banner-buttons {
    width: 100%;
  }
  .cookie-banner-buttons button {
    flex: 1;
  }
}

/* ========================================
   Cookie Preferences Page
   ======================================== */
#cookie-preferences-center {
  max-width: 800px;
  margin: 20px 0 40px;
}

.cookie-pref-category {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.cookie-pref-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cookie-pref-info { flex: 1; }

.cookie-pref-info h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #1a1a2e;
}

.cookie-pref-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.cookie-pref-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.cookie-switch input { opacity: 0; width: 0; height: 0; }

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  transition: 0.3s;
}

.cookie-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-switch input:checked + .cookie-slider { background: #4caf50; }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(24px); }
.cookie-switch input:disabled + .cookie-slider { background: #4caf50; opacity: 0.7; cursor: not-allowed; }

.cookie-always-on {
  font-size: 11px;
  color: #4caf50;
  font-weight: 600;
  text-transform: uppercase;
}

.cookie-gpc-notice {
  font-size: 11px;
  color: #e65100;
  font-weight: 600;
  margin-top: 4px;
}

.cookie-pref-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cookie-btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; }
.cookie-btn-save { background: #1976d2; color: #fff; }
.cookie-btn-save:hover { background: #1565c0; }
.cookie-btn-accept { background: #4caf50; color: #fff; }
.cookie-btn-accept:hover { background: #43a047; }
.cookie-btn-reject { background: #555; color: #fff; }
.cookie-btn-reject:hover { background: #666; }

.cookie-pref-confirmation {
  margin-top: 16px;
  padding: 14px 20px;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 6px;
  color: #2e7d32;
  font-weight: 600;
}

.cookie-pref-confirmation p { margin: 0; }

@media (max-width: 768px) {
  .cookie-pref-header { flex-direction: column; gap: 12px; }
  .cookie-pref-actions { flex-direction: column; }
  .cookie-pref-actions .cookie-btn { width: 100%; }
}
