.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(51, 51, 51, 0.98);
  color: white;
  padding: 20px;
  z-index: 1999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  font-family: "AveriaSerif", serif;
}

.cookie-header p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  opacity: 0.9;
}

.cookie-categories {
  margin: 15px 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-info strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  font-family: "AveriaSerif", serif;
}

.cookie-info p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.3;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background: #666;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.toggle-switch.active {
  background: var(--color-link, #00554e);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
  transform: translateX(26px);
}

.toggle-required {
  font-size: 10px;
  margin-left: 55px;
  opacity: 0.7;
  white-space: nowrap;
}

/* Buttons */
.cookie-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-family: "AveriaSerif", serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 120px;
}

.btn-accept-all {
  background: var(--color-link, #00554e);
  color: white;
}

.btn-accept-all:hover {
  background: var(--color-link-active, #002b27);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-settings {
  background: rgba(108, 117, 125, 0.9);
  color: white;
}

.btn-settings:hover {
  background: rgba(84, 91, 98, 0.9);
  transform: translateY(-2px);
}

.btn-save {
  background: #28a745;
  color: white;
}

.btn-save:hover {
  background: #218838;
  transform: translateY(-2px);
}

.btn-essential {
  background: rgba(108, 117, 125, 0.9);
  color: white;
}

.btn-essential:hover {
  background: rgba(84, 91, 98, 0.9);
  transform: translateY(-2px);
}

/* Embed Placeholders */
.embed-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  margin: 10px 0;
}

.embed-placeholder-content h4 {
  margin: 0 0 10px 0;
  color: var(--color-black, #333);
  font-family: "AveriaSerif", serif;
  font-size: 1.2rem;
}

.embed-placeholder-content p {
  margin: 10px 0;
  color: var(--color-gray, #505050);
  font-size: 0.95rem;
  line-height: 1.4;
}

.btn-enable,
.btn-settings-small {
  background: var(--color-link, #00554e);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 5px;
  transition: all 0.3s ease;
}

.btn-enable:hover {
  background: var(--color-link-active, #002b27);
  transform: translateY(-1px);
}

.btn-settings-small {
  background: #6c757d;
}

.btn-settings-small:hover {
  background: #545b62;
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .cookie-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cookie-toggle {
    align-self: flex-end;
  }

  .cookie-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cookie-buttons button {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 15px;
  }

  .cookie-header h3 {
    font-size: 1.2rem;
  }

  .embed-placeholder {
    padding: 20px;
  }
}
