/* ========================
   Cookie Banner
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 20px;
}

.cookie-banner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cookie-banner-text p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.cookie-policy-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-policy-link:hover {
  color: var(--secondary-color);
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.cookie-btn-accept:hover {
  background-color: #1a4460;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36, 88, 128, 0.3);
}

.cookie-btn-reject {
  background-color: #6c757d;
  color: var(--white);
  border-color: #6c757d;
}

.cookie-btn-reject:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.cookie-btn-customize {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.cookie-btn-customize:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36, 88, 128, 0.2);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background-color: var(--white);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
  padding: 2rem;
  border-bottom: 2px solid var(--bg-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0;
}

.cookie-close-btn {
  background: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-close-btn:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.cookie-settings-body {
  padding: 2rem;
}

.cookie-category {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bg-light);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cookie-category-header h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--primary-color);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: var(--primary-color);
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-category-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-settings-footer {
  padding: 1.5rem 2rem;
  background-color: var(--bg-light);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-radius: 0 0 12px 12px;
}

/* Cookie Preferences Button (floating) */
.cookie-preferences-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(36, 88, 128, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  display: none;
}

.cookie-preferences-btn.show {
  display: block;
}

.cookie-preferences-btn:hover {
  background-color: #1a4460;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(36, 88, 128, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cookie-banner-buttons {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }

  .cookie-settings-content {
    max-height: 95vh;
  }

  .cookie-settings-header,
  .cookie-settings-body {
    padding: 1.5rem;
  }

  .cookie-settings-footer {
    flex-direction: column;
    padding: 1rem 1.5rem;
  }

  .cookie-settings-footer .cookie-btn {
    width: 100%;
  }

  .cookie-preferences-btn {
    bottom: 10px;
    left: 10px;
    font-size: 0.85rem;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .cookie-banner-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}
