/* Hide elements */
/* ==========================
   Cookie Banner
========================== */

.cookie-banner {
  position:fixed;
  bottom:20px;
 left:50%; 
  transform:translateX(-50%);
  width:min(92%,900px);
  background:#fff;
  border-radius:20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  overflow:hidden;
  transition: max-height .35s ease, padding .35s ease;
  z-index:999999;
}

#cookie-simple{
  padding:30px;
}

#cookie-preferences{
  padding:30px;
  border-top:1px solid #eee;
}

.cookie-banner__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 28px;
}

.cookie-banner__left {
  flex: 1;
}

.cookie-banner__left h2 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #222;
}

.cookie-banner__left p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.cookie-banner__left a {
  display: inline-block;
  margin-top: 12px;
  color: #0055cc;
  text-decoration: none;
  font-weight: 600;
}

.cookie-banner__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.hidden {
  display: none !important;
}

/* ==========================
   Buttons
========================== */

.btn {
  padding: 14px 24px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: .25s;
  border: none;
}

.btn-primary {
  background: #0b6efd;
  color: white;
}

.btn-primary:hover {
  background: #0056d2;
}

.btn-secondary {
  background: white;
  color: #222;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

.btn-outline {
  background: transparent;
  border: 1px solid #0b6efd;
  color: #0b6efd;
}

.btn-outline:hover {
  background: #0b6efd;
  color: white;
}

.btn-danger {
  background: #d9534f;
  color: white;
}

.btn-danger:hover {
  background: #c9302c;
}

/* ==========================================================
   Cookie Category
========================================================== */

.cookie-category {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-category h3 {
  margin: 0;
  font-size: 18px;
}

.cookie-category p {
  margin: 8px 0 0;
  color: #666;
}

.cookie-always {
  background: #eaf8ea;
  color: #2b7a2b;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================
   Toggle Switch
========================================================== */

.cookie-switch {
  position: relative;
  width: 120px;
  height: 30px;
  display: inline-block;
}

.cookie-switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #cfcfcf;
  border-radius: 30px;
  transition: .3s;
  cursor: pointer;
}

.slider:before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}

.cookie-switch input:checked+.slider {
  background: #0d6efd;
}

.cookie-switch input:checked+.slider:before {
  transform: translateX(24px);
}
/* ==========================================================
   Footer Buttons
========================================================== */

.cookie-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
}

.cookie-actions-left {
  width: 180px;
}

.cookie-actions-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions-right .btn {
  width: auto;
  min-width: 170px;
}

/* ==========================
   Mobile
========================== */

@media (max-width:768px) {

  .cookie-banner {
    bottom: 15px;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .cookie-banner__buttons {
    width: 100%;
  }

  .cookie-banner__buttons button {
    width: 100%;
  }
  
  .cookie-banner__left h2 {
    font-size: 22px;
  }
    .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions-left,
  .cookie-actions-right {
    width: 100%;
  }

  .cookie-actions-right {
    flex-direction: column;
  }

  .cookie-actions-right .btn {
    width: 100%;
  }

  .cookie-switch{
    width:54px;
  }
}