.cookie-container {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: bottom 0.5s ease-in-out;
}

.cookie-container.active {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-text {
  flex: 3;
  min-width: 300px;
}

.cookie-text p {
  margin-bottom: 0;
}

.cookie-text a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-text a:hover {
  text-decoration: none;
}

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

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.accept-all {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.accept-all:hover {
  background-color: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.necessary-only {
  background-color: transparent;
  border-color: white;
  color: white;
}

.necessary-only:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.customize {
  background-color: transparent;
  color: white;
  text-decoration: underline;
  border: none;
}

.customize:hover {
  text-decoration: none;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background-color: white;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.cookie-modal-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1.5rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.cookie-modal-header h3 {
  margin-bottom: 0;
  color: white;
}

.cookie-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cookie-modal-close:hover {
  transform: rotate(90deg);
}

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-preference {
  margin-bottom: 2rem;
}

.cookie-preference:last-child {
  margin-bottom: 0;
}

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

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

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

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

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

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--accent-color);
}

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

.always-on {
  background-color: var(--primary-color);
}

.cookie-modal-footer {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid #eee;
}

.cookie-save {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-save:hover {
  background-color: transparent;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    margin-top: 1rem;
    width: 100%;
    justify-content: space-between;
  }
}
