/* ===== Main Centered Popup ===== */
#cc-center {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  overflow: hidden;
}
.cc-box {
  background: #fff;
  color: #333;
  width: 90%;
  max-width: 420px;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-family: system-ui, sans-serif;
  animation: cc-fadein 0.3s ease-out;
}
.cc-box h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
.cc-box p {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  color: #444;
}
.cc-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cc-btn {
  border: 1px solid #ccc;
  background: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}
.cc-btn:hover {
  background: #e2e2e2;
}
.cc-btn-primary {
  background: #0078ff;
  border-color: #0078ff;
  color: #fff;
}
.cc-btn-primary:hover {
  background: #006ae0;
}
/* ===== Manage Preferences Modal ===== */
#cc-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}
.cc-modal-content {
  background: #fff;
  color: #333;
  padding: 1.5rem;
  width: 90%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  font-family: system-ui, sans-serif;
  text-align: left;
  animation: cc-fadein 0.3s ease-out;
}
.cc-modal-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.cc-modal-content label {
  display: block;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}
.cc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
/* ===== Animations ===== */
@keyframes cc-fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ===== Mobile Adjustments ===== */
@media (max-width: 480px) {
  .cc-box, .cc-modal-content {
    width: 95%;
    padding: 1rem;
  }
}
/* ---- Buttons ---- */
.cc-btn-secondary {
  background: #f5f5f5;
  border-color: #ccc;
  color: #333;
}
.cc-btn-secondary:hover {
  background: #e9e9e9;
}
/* ---- Links ---- */
.cc-links {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #555;
}
.cc-links a {
  color: #0078ff;
  text-decoration: none;
}
.cc-links a:hover {
  text-decoration: underline;
}

/* ===== Floating Cookie Preferences Button ===== */
.cc-fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 12000;
}
.cc-fab-btn {
  display: flex;
  align-items: center;
  gap: 0.45em;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.5em 1.1em;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  transition: background 0.2s, box-shadow 0.2s;
}
.cc-fab-btn:hover,
.cc-fab-btn:focus {
  background: #006adc;
  box-shadow: 0 6px 18px rgba(0,0,0,0.21);
  outline: none;
}
.cc-fab-btn svg {
  display: inline;
}
.cc-fab-text {
  font-size: 1rem;
  font-family: system-ui,sans-serif;
}

/* Responsive: smaller on mobile */
@media (max-width: 700px) {
  .cc-fab-container {
    bottom: 12px;
    right: 10px;
  }
  .cc-fab-btn {
    padding: 0.4em 0.8em;
    font-size: 0.92rem;
  }
  .cc-fab-text {
    display: none;
  }
}
