/* Cookie Consent Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(10px);
  color: #fff;
  z-index: 99999;
  padding: 20px 32px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

#cookie-banner.hidden {
  display: none;
}

#cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 280px;
  color: #ccc;
}

#cookie-banner p a {
  color: #c9a96e;
  text-decoration: underline;
}

#cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#cookie-banner-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

#cookie-accept-all {
  background: #c9a96e;
  color: #fff;
}

#cookie-accept-all:hover {
  background: #b8955a;
}

#cookie-reject-all {
  background: transparent;
  color: #ccc;
  border: 1px solid #444 !important;
}

#cookie-reject-all:hover {
  background: #222;
  color: #fff;
}

#cookie-settings-btn {
  background: transparent;
  color: #ccc;
  border: 1px solid #444 !important;
}

#cookie-settings-btn:hover {
  background: #222;
  color: #fff;
}

/* Modal */
#cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookie-modal-overlay.hidden {
  display: none;
}

#cookie-modal {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 32px;
  max-width: 540px;
  width: 100%;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}

#cookie-modal h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

#cookie-modal > p {
  color: #aaa;
  font-size: 14px;
  margin: 0 0 24px;
}

.cookie-category {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

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

.cookie-category-header strong {
  font-size: 15px;
}

.cookie-category p {
  color: #aaa;
  font-size: 13px;
  margin: 0;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #444;
  border-radius: 24px;
  transition: 0.3s;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #c9a96e;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: #c9a96e;
  cursor: not-allowed;
  opacity: 0.7;
}

#cookie-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

#cookie-modal-buttons button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  min-width: 120px;
}

#cookie-save-settings {
  background: #c9a96e;
  color: #fff;
}

#cookie-save-settings:hover {
  background: #b8955a;
}

#cookie-modal-accept-all {
  background: #333;
  color: #fff;
}

#cookie-modal-accept-all:hover {
  background: #444;
}

@media (max-width: 600px) {
  #cookie-banner {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  #cookie-banner-buttons {
    width: 100%;
  }
  #cookie-banner-buttons button {
    flex: 1;
  }
}
