/* Cookie Banner Styles - GDPR Compliant */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1A3A52;
  color: #E8DCC8;
  padding: 24px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner-header {
  margin-bottom: 16px;
}

.cookie-banner-title {
  font-size: 18px;
  font-weight: 500;
  color: #E8DCC8;
  margin-bottom: 8px;
}

.cookie-banner-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cookie-banner-text a {
  color: #E8A55C;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: #F5B970;
}

.cookie-preferences {
  display: none;
  margin-bottom: 20px;
  padding: 16px;
  background-color: rgba(232, 220, 200, 0.1);
  border-radius: 4px;
}

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

.cookie-category {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(232, 220, 200, 0.2);
}

.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: 8px;
}

.cookie-category-title {
  font-size: 15px;
  font-weight: 500;
  color: #E8DCC8;
}

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

.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: rgba(232, 220, 200, 0.3);
  border-radius: 24px;
  transition: 0.3s;
}

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

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category-description {
  font-size: 13px;
  color: rgba(232, 220, 200, 0.8);
  line-height: 1.5;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  transition: all 0.2s;
}

.cookie-btn-accept {
  background-color: #E8A55C;
  color: #1A3A52;
}

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

.cookie-btn-reject {
  background-color: transparent;
  color: #E8DCC8;
  border: 1px solid #E8DCC8;
}

.cookie-btn-reject:hover {
  background-color: rgba(232, 220, 200, 0.1);
}

.cookie-btn-customize {
  background-color: transparent;
  color: #E8A55C;
  border: 1px solid #E8A55C;
}

.cookie-btn-customize:hover {
  background-color: rgba(232, 165, 92, 0.1);
}

.cookie-btn-save {
  background-color: #E8A55C;
  color: #1A3A52;
}

.cookie-btn-save:hover {
  background-color: #F5B970;
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 20px 16px;
  }

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

  .cookie-btn {
    width: 100%;
  }

  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
