/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 24px;
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-consent h3 {
  color: #2a2f43;
  font-size: 20px;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.cookie-consent p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.cookie-consent-links {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.cookie-consent-links a,
.cookie-link-btn {
  color: #c0081a;
  text-decoration: underline;
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.cookie-consent-links a:hover,
.cookie-link-btn:hover {
  color: #a00616;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 140px;
}

.cookie-btn-reject {
  background: #ffffff;
  color: #2a2f43;
  border: 2px solid #2a2f43;
}

.cookie-btn-reject:hover {
  background: #f8f9fa;
}

.cookie-btn-necessary {
  background: #ffffff;
  color: #2a2f43;
  border: 2px solid #2a2f43;
}

.cookie-btn-necessary:hover {
  background: #f8f9fa;
}

.cookie-btn-accept {
  background: #ffffff;
  color: #2a2f43;
  border: 2px solid #2a2f43;
}

.cookie-btn-accept:hover {
  background: #f8f9fa;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e8ecef;
}

.cookie-modal-header h2 {
  color: #2a2f43;
  font-size: 24px;
  margin: 0;
  font-weight: 600;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s;
}

.cookie-modal-close:hover {
  color: #2a2f43;
}

.cookie-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.cookie-category {
  border: 1px solid #e8ecef;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.cookie-category-header {
  background: #f8f9fa;
  padding: 16px;
}

.cookie-category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-category-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2a2f43;
  font-size: 16px;
  font-family: inherit;
}

.cookie-toggle-icon {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 20px;
  line-height: 1;
}

.cookie-category-toggle.active .cookie-toggle-icon {
  transform: rotate(90deg);
}

.cookie-always-active {
  color: #666;
  font-size: 14px;
  font-style: italic;
}

.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  cursor: pointer;
}

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

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

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

.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background-color: #24ad73;
}

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

.cookie-category-content {
  padding: 16px;
  background: #ffffff;
  border-top: 1px solid #e8ecef;
}

.cookie-category-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.cookie-modal-footer {
  display: flex;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid #e8ecef;
}

.cookie-btn-primary {
  background: #ffffff;
  color: #2a2f43;
  border: 2px solid #2a2f43;
  flex: 1;
}

.cookie-btn-primary:hover {
  background: #f8f9fa;
}

.cookie-btn-secondary {
  background: #ffffff;
  color: #2a2f43;
  border: 2px solid #2a2f43;
  flex: 1;
}

.cookie-btn-secondary:hover {
  background: #f8f9fa;
}

/* Footer Cookie Link */
.cookieLink {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-align: left;
}

.cookieLink:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent {
    padding: 16px;
  }

  .cookie-consent h3 {
    font-size: 18px;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .cookie-modal-header {
    padding: 16px;
  }

  .cookie-modal-body {
    padding: 16px;
  }

  .cookie-modal-footer {
    flex-direction: column;
    padding: 16px;
  }
}
