/*
 * DESEO Immobilien – Cookie-Consent-Banner
 * Eigenstaendiges UI, unabhaengig vom Wix-Markup. Farben aus der Marke:
 * #0C333B (Petrol, dunkel) / #C2A17A (Gold, Akzent).
 */
#cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: #ffffff;
  color: #0c333b;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 24px rgba(12, 51, 59, 0.15);
  font-family: Arial, Helvetica, sans-serif;
}

#cc-banner[hidden],
#cc-banner [hidden] {
  display: none !important;
}

#cc-banner .cc-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
}

#cc-banner .cc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

#cc-banner .cc-text {
  flex: 1 1 420px;
  font-size: 14px;
  line-height: 1.5;
}

#cc-banner .cc-text p {
  margin: 0 0 6px;
}

#cc-banner .cc-text p:last-child {
  margin-bottom: 0;
}

#cc-banner .cc-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 6px;
}

#cc-banner .cc-text a {
  color: #0c333b;
  text-decoration: underline;
}

#cc-banner .cc-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

#cc-banner .cc-btn {
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit;
}

#cc-banner .cc-btn:focus-visible {
  outline: 2px solid #c2a17a;
  outline-offset: 2px;
}

#cc-banner .cc-btn--primary {
  background: #0c333b;
  color: #ffffff;
}

#cc-banner .cc-btn--primary:hover {
  background: #114a55;
}

#cc-banner .cc-btn--outline {
  background: #ffffff;
  color: #0c333b;
  border-color: #0c333b;
}

#cc-banner .cc-btn--outline:hover {
  background: #f2f2f2;
}

#cc-banner .cc-btn--ghost {
  background: transparent;
  color: #0c333b;
  text-decoration: underline;
  padding: 11px 4px;
}

#cc-banner .cc-panel {
  margin-top: 18px;
  border-top: 1px solid #e5e5e5;
  padding-top: 16px;
}

#cc-banner .cc-panel[hidden] {
  display: none !important;
}

#cc-banner .cc-cat {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

#cc-banner .cc-cat:last-of-type {
  border-bottom: none;
}

#cc-banner .cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#cc-banner .cc-cat-title {
  font-weight: 700;
  font-size: 14px;
}

#cc-banner .cc-cat-desc {
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
  color: #333333;
}

#cc-banner .cc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: none;
}

#cc-banner .cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#cc-banner .cc-switch-track {
  position: absolute;
  inset: 0;
  background: #c7c7c7;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

#cc-banner .cc-switch-track::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

#cc-banner .cc-switch input:checked + .cc-switch-track {
  background: #c2a17a;
}

#cc-banner .cc-switch input:checked + .cc-switch-track::before {
  transform: translateX(18px);
}

#cc-banner .cc-switch input:disabled + .cc-switch-track {
  background: #0c333b;
  opacity: 0.5;
}

#cc-banner .cc-switch input:focus-visible + .cc-switch-track {
  outline: 2px solid #c2a17a;
  outline-offset: 2px;
}

#cc-banner .cc-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  #cc-banner .cc-inner {
    padding: 16px;
  }
  #cc-banner .cc-actions {
    width: 100%;
    margin-left: 0;
  }
  #cc-banner .cc-actions .cc-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  #cc-banner .cc-panel-actions {
    width: 100%;
  }
  #cc-banner .cc-panel-actions .cc-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
