/* Cookie Banner - GDPR Compliant */
.cookie-banner-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2147483644;
  display: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2147483645;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding: 20px 30px;
  box-sizing: border-box;
  font-family: "Signika", Helvetica, Verdana, sans-serif;
  display: none;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cookie-banner h3 {
  font-size: 1.1em;
  font-weight: bold;
  color: #24273F;
  margin: 0 0 10px 0;
}

.cookie-banner-description {
  font-size: 0.9em;
  color: #505050;
  line-height: 1.5;
  margin-bottom: 15px;
  text-align: left;
}

.cookie-banner-description a {
  color: #505050 !important;
  text-decoration: underline !important;
  font-weight: normal !important;
}

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

.cookie-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 0.85em;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  text-align: center;
  min-width: 140px;
  float: none;
  margin: 0;
  font-family: "Signika", Helvetica, Verdana, sans-serif;
}

.cookie-btn:hover {
  opacity: 0.85;
}

.cookie-btn-accept {
  background: #24273F;
  color: #fff;
}

.cookie-btn-reject {
  background: #E8E8E8;
  color: #636363;
}

.cookie-btn-config {
  background: #fff;
  color: #24273F;
  border: 2px solid #24273F;
}

/* Configuration panel */
.cookie-config-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147483646;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  padding: 30px;
  box-sizing: border-box;
  max-width: 550px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  font-family: "Signika", Helvetica, Verdana, sans-serif;
  display: none;
}

.cookie-config-panel h3 {
  font-size: 1.2em;
  font-weight: bold;
  color: #24273F;
  margin: 0 0 15px 0;
}

.cookie-config-panel p {
  font-size: 0.85em;
  color: #505050;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
  padding: 0;
}

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

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

.cookie-category-name {
  font-weight: bold;
  font-size: 0.95em;
  color: #24273F;
}

.cookie-category-desc {
  font-size: 0.82em;
  color: #777;
  margin-top: 6px;
  line-height: 1.4;
}

.cookie-category-tag {
  font-size: 0.75em;
  color: #999;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

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

.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: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

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

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: #24273F;
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-config-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Manage cookies floating button */
.cookie-manage-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 2147483640;
  background: #24273F;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 0.82em;
  cursor: pointer;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
  display: none;
  font-family: "Signika", Helvetica, Verdana, sans-serif;
  float: none;
  margin: 0;
}

.cookie-manage-btn:hover {
  transform: scale(0.97);
}

@media only screen and (max-width: 600px) {
  .cookie-banner {
    padding: 15px 18px;
  }
  .cookie-banner-buttons {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
    min-width: auto;
  }
  .cookie-config-panel {
    padding: 20px;
    width: 95%;
  }
  .cookie-config-buttons {
    flex-direction: column;
  }
  .cookie-config-buttons .cookie-btn {
    width: 100%;
  }
}
