/* =======================
   Cookie Banner Base Styles
   ======================= */
.cc-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 1100px;
  padding: 20px 24px;
  background: #0A0A23; /* deep luxury navy */
  color: #FFFFFF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 100000;
  flex-wrap: wrap;
  font-family: "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.cc-banner:focus-visible {
  outline: 3px solid #FFD700; /* Gold focus outline */
  outline-offset: 4px;
}
.cc-banner.hidden {
  display: none;
}
.cc-banner h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFD700; /* Gold for contrast */
}
.cc-banner p {
  margin: 0;
  color: #EAEAEA;
  font-size: 1rem;
}
/* Link styling */
.cc-banner a {
  color: #D4AF37; /* Gold link */
  text-decoration: underline;
  font-weight: 500;
}
.cc-banner a:focus-visible {
  outline: 2px dotted #FFD700;
  outline-offset: 3px;
}

/* =======================
   Buttons Styles
   ======================= */
.cc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
}
.btn:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 3px;
}
.btn.primary {
  background: #D4AF37; /* Gold button */
  color: #0A0A23;       /* Deep navy text */
  border: 2px solid transparent;
}
.btn.primary:hover,
.btn.primary:focus-visible {
  background: #FFD700;
  transform: scale(1.05);
  border-color: #FFA500;
}
.btn.secondary {
  background: #444; /* Dark gray */
  color: #FFFFFF;
  border: 2px solid transparent;
}
.btn.secondary:hover,
.btn.secondary:focus-visible {
  background: #555;
  border-color: #666;
}
.btn.link {
  background: none;
  color: #FFD700;
  border: none;
  text-decoration: underline;
  padding: 0;
  font-weight: 600;
}
.btn.link:hover,
.btn.link:focus-visible {
  color: #FFE066;
  text-decoration: none;
  outline: none;
}

/* =======================
   Modal (for Cookie Preferences)
   ======================= */
.cc-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  background: rgba(0, 0, 0, 0.7);
}
.cc-modal:focus-visible {
  outline: none;
}
.cc-modal.hidden {
  display: none;
}
.cc-modal-inner {
  width: 520px;
  max-width: 90%;
  background: #0A0A23;
  color: #FFFFFF;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}
.cc-modal-inner:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 4px;
}
.cc-modal-footer {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #BBB;
  text-align: center;
}
.cc-modal-footer a {
  color: #D4AF37;
  text-decoration: underline;
}
.cc-modal-footer a:focus-visible {
  outline: 2px dotted #FFD700;
  outline-offset: 3px;
}
.cc-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* =======================
   Persistent Left Sidebar & Floating Panel (User Control)
   ======================= */
#cc-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #0A0A23;
  color: #FFFFFF;
  border-radius: 0 25px 25px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  z-index: 100003;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}
#cc-sidebar .btn-close {
  background-color: transparent;
  border: none;
  color: #FFD700;
  font-weight: bold;
  font-size: 1rem;
}
#cc-sidebar .btn-close:hover,
#cc-sidebar .btn-close:focus-visible {
  color: #FFE066;
  outline: none;
}
#cc-icon-panel {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #D4AF37; /* Gold */
  color: #0A0A23;      /* Deep navy text */
  border-radius: 0 25px 25px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 100002;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.35);
  max-width: 300px;
  transition: transform 0.3s ease;
}
#cc-icon-panel.close {
  transform: translateY(-50%) rotate(180deg);
}
#cc-icon-panel img {
  height: 30px;
  width: auto;
}
#cc-icon-panel:focus-visible {
  outline: 3px solid #0A0A23;
  outline-offset: 4px;
}
.cc-text {
  font-size: 0.9rem;
  line-height: 1.3rem;
  font-weight: 600;
}

/* =======================
   Consent State Visual Cues
   ======================= */
.cc-banner.accepted {
  background-color: #D4AF37 !important; /* Gold for accepted */
  color: #0A0A23 !important; /* Deep navy text */
  box-shadow: 0 8px 40px rgba(212, 175, 55, 0.7);
}

.cc-banner.accepted h2,
.cc-banner.accepted p,
.cc-banner.accepted a {
  color: #0A0A23 !important;
}

.cc-banner.rejected {
  background-color: #444 !important; /* Dark gray for rejected */
  color: #EEE !important;
  box-shadow: 0 8px 40px rgba(68, 68, 68, 0.7);
}

.cc-banner.rejected h2,
.cc-banner.rejected p,
.cc-banner.rejected a {
  color: #EEE !important;
}
