/* 1. CORE MODAL OVERLAY CONTEXT (Fixes rendering below content) */
#tb-priv-modal-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* Dimmed backdrop background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999; /* Forces modal over absolutely all other web elements */
  transition: opacity 0.3s ease;
}

/* Hidden Utility Class (Make sure your JS toggles this) */
.tb-priv-hidden-view {
  display: none !important;
}

/* Modal Internal Layout Window */
#tb-priv-modal-view .modal-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  box-sizing: border-box;
}

#tb-priv-close-x {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

/* Row Layout Configurations */
.cookie-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #ededed;
}
.cookie-text {
  max-width: 75%;
}
.cookie-text h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #333;
}
.cookie-text p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* 2. SLIDER TOGGLE SWITCH STYLES (Pure Blue) */
.cookie-toggle-wrapper {
  position: relative;
  width: 50px;
  height: 26px;
}
.cookie-toggle-wrapper input[type='checkbox'] {
  display: none; /* Hide default ugly browser checkboxes */
}

/* Slider Track Base */
.toggle-slider-label {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ccc;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

/* Slider Circular Knob */
.toggle-slider-label::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

/* Active State: Changes track to Blue when activated */
.cookie-toggle-wrapper input[type='checkbox']:checked + .toggle-slider-label {
  background-color: #007bff; /* Standard Digital Blue accent */
}
.cookie-toggle-wrapper input[type='checkbox']:checked + .toggle-slider-label::after {
  transform: translateX(24px); /* Shifts knob forward */
}

/* Disabled State: Lock the strictly necessary category slider */
.cookie-toggle-wrapper input[type='checkbox']:disabled + .toggle-slider-label {
  background-color: #007bff;
  opacity: 0.5; /* Muted blue indicating it cannot be clicked off */
  cursor: not-allowed;
}

/* Save Action Button styling */
.modal-footer {
  margin-top: 24px;
  text-align: right;
}
.btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover {
  background-color: #0056b3;
}

#privacy-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a1a; /* Dark sleek background */
  color: #ffffff;
  padding: 15px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 999998; /* Sits just slightly below the modal overlay */
  box-sizing: border-box;
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.banner-container p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  max-width: 700px;
}

.banner-buttons {
  display: flex;
  gap: 10px;
}

/* BANNER BUTTON STYLES */
.banner-buttons button {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-accept {
  background-color: #007bff; /* Matching Your Blue Theme */
  color: white;
}
.btn-accept:hover {
  background-color: #0056b3;
}

.btn-decline {
  background-color: #e0e0e0;
  color: #333;
}
.btn-decline:hover {
  background-color: #cccccc;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff !important;
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .banner-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}
