/* Cookie Consent Banner */
.cookie-consent-banner{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  padding: 15px;
  background-color: #2c3e50;
  color: #ffffff;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
}

.cookie-content p{
  color: #fff;
  font-size: 14px;
  margin: 0 0 10px 0;
}

.cookie-details{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-category{
  flex: 1 1 200px;
  background: #34495e;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Category header + toggle */
.cookie-category label{
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  margin: 0 0 5px 0;
}

.cookie-category .cookie-label-text{
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}

.cookie-category label .toggle{
  flex: 0 0 auto;
  margin-left: auto;
}

.view-details{
  color: #ffd700;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Details panel */
.cookie-info{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  font-size: 12px;
  margin-top: 5px;
}

.cookie-info.open{
  max-height: 500px;
}

.cookie-info p{
  margin: 5px 0;
  line-height: 1.4;
}

.cookie-info strong{
  color: #ffd700;
}

/* Buttons */
.cookie-buttons{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.cookie-buttons button{
  background-color: #27ae60;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-buttons button:hover{
  background-color: #219150;
}

.cookie-buttons button#decline-all{
  background-color: #c0392b;
}

.cookie-buttons button#decline-all:hover{
  background-color: #a02d20;
}

/* Toggle Switch */
.toggle{
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  transition: background 0.3s;
}

.toggle::before{
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

input[type="checkbox"]:checked + .toggle{
  background-color: #28a745;
}

input[type="checkbox"]:checked + .toggle::before{
  transform: translateX(20px);
}

/* Force 'always-on' toggle to appear suggesting ON state */
.toggle.always-on{
  background-color: #28a745;
}

.toggle.always-on::before{
  transform: translateX(20px);
}

/* Disabled state styling */
.toggle.disabled{
  background-color: #aaa;
  cursor: not-allowed;
  opacity: 0.7;
}

.toggle.disabled::before{
  background-color: #ddd;
}

/* Small screens: slightly smaller toggle + better spacing */
@media (max-width: 480px){
  .cookie-category label{ gap: 10px; }
  .cookie-category label .toggle{
    transform: scale(0.92);
    transform-origin: right center;
  }
}
