/* Cookie banner */
.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, #174b36, #0d291e);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  padding: 25px;
  max-width: 500px;
  width: 90%;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-content h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: center;
}

.cookie-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #d8f3e3;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: center;
}

.cookie-content a {
  color: #80e8b2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cookie-content a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cookie-buttons .btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn.accept {
  background: linear-gradient(135deg, #2e8b57, #174b36);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(23, 75, 54, 0.3);
}

.btn.accept:hover {
  background: linear-gradient(135deg, #174b36, #0d291e);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(23, 75, 54, 0.4);
}

.btn.customize,
.btn.reject {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn.customize:hover,
.btn.reject:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Cookie panel */
.cookie-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: #ffffff;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  max-width: 650px;
  width: 90%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

.cookie-panel.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cookie-panel-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  color: #174b36;
  margin: 0;
}

.close-panel {
  font-size: 1.5rem;
  cursor: pointer;
  color: #174b36;
}

.cookie-category {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #f7f7f7;
  transition: background 0.3s;
}

.cookie-category:hover {
  background: #eef7f1;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cookie-category h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: #174b36;
  margin: 0;
}

.always-active {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #666;
}

.cookie-category p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 10px;
}

.cookie-category a {
  color: #174b36;
  text-decoration: none;
  font-weight: 500;
}

.cookie-category a:hover {
  text-decoration: underline;
}

.cookie-panel-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.cookie-panel-buttons .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.95rem;
  border-radius: 8px;
}

.cookie-panel-buttons .btn.accept {
  background: linear-gradient(135deg, #2e8b57, #174b36);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(23, 75, 54, 0.3);
}

.cookie-panel-buttons .btn.accept:hover {
  background: linear-gradient(135deg, #174b36, #0d291e);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(23, 75, 54, 0.4);
}

.btn.select-all {
  background: #eef7f1;
  color: #174b36;
  border: 2px solid #174b36;
}

.btn.select-all:hover {
  background: #d8f3e3;
  transform: scale(1.05);
}

.cookie-panel-buttons .btn.save {
  background: transparent;
  color: #174b36;
  border: 2px solid #174b36;
}

.cookie-panel-buttons .btn.save:hover {
  background: #eef7f1;
  transform: scale(1.05);
}

/* Cookie icon */
.cookie-icon {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #174b36, #0d291e);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9998;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  display: none;
}

.cookie-icon img {
  width: 28px;
  height: 28px;
  filter: invert(100%);
}

.cookie-icon:hover {
  background: linear-gradient(135deg, #0d291e, #174b36);
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 75, 54, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(23, 75, 54, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 75, 54, 0);
  }
}

/* Switches */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #174b36;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Responsive design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 20px;
    max-width: 90%;
  }

  .cookie-content h3 {
    font-size: 1.3rem;
  }

  .cookie-content p {
    font-size: 0.85rem;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-buttons .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .cookie-panel {
    padding: 20px;
  }

  .cookie-panel-header {
    margin-bottom: 15px;
  }

  .cookie-panel-header h2 {
    font-size: 1.4rem;
  }

  .cookie-category {
    margin-bottom: 15px;
    padding: 10px;
  }

  .cookie-category h4 {
    font-size: 1rem;
  }

  .cookie-category p {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .switch {
    width: 40px;
    height: 22px;
  }

  .slider:before {
    height: 16px;
    width: 16px;
  }

  input:checked + .slider:before {
    transform: translateX(18px);
  }

  .cookie-panel-buttons {
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
  }

  .cookie-panel-buttons .btn {
    padding: 8px;
    font-size: 0.85rem;
  }

  .cookie-icon {
    width: 48px;
    height: 48px;
  }

  .cookie-icon img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 15px;
  }

  .cookie-content h3 {
    font-size: 1.1rem;
  }

  .cookie-content p {
    font-size: 0.8rem;
  }

  .cookie-buttons .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .cookie-panel {
    padding: 15px;
  }

  .cookie-panel-header {
    margin-bottom: 12px;
  }

  .cookie-panel-header h2 {
    font-size: 1.2rem;
  }

  .cookie-category {
    margin-bottom: 12px;
    padding: 8px;
  }

  .cookie-category h4 {
    font-size: 0.9rem;
  }

  .cookie-category p {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .switch {
    width: 36px;
    height: 20px;
  }

  .slider:before {
    height: 14px;
    width: 14px;
  }

  input:checked + .slider:before {
    transform: translateX(16px);
  }

  .cookie-panel-buttons .btn {
    padding: 6px;
    font-size: 0.8rem;
  }

  .cookie-icon {
    width: 40px;
    height: 40px;
  }

  .cookie-icon img {
    width: 20px;
    height: 20px;
  }
}
