/* Consent of lfmdsgvo 14: the theme styles the categories as .dsgvo-type (lfm_dsgvo 1.0), lfmdsgvo 14 renders .dsgvo-category.
   Same rules as in theme.css (Build/Sources/Scss/extensions/_lfmdsgvo.scss), only the class names are new. */
.dsgvo-category {
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
}

.dsgvo-category__text {
  margin-bottom: 20px;
}

.dsgvo-category__checkbox-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Visually hidden but still reachable by keyboard (lfmdsgvo 14 renders it as a switch) */
.dsgvo-category__checkbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.dsgvo-category__checkbox-label {
  display: block;
  position: relative;
  width: 72px;
  height: 36px;
  border-radius: 18px;
  transition: all .2s ease;
  background: #868686;
  cursor: pointer;
  user-select: none;
}

.dsgvo-category__checkbox-label::before {
  content: "";
  display: block;
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  top: 0;
  left: 0;
  transition: all .2s ease;
  background: #bbb;
}

.dsgvo-category__checkbox:checked + .dsgvo-category__checkbox-label {
  background: #E65A2F;
}

.dsgvo-category__checkbox:checked + .dsgvo-category__checkbox-label::before {
  background: #ee9073;
  left: 50%;
}

.dsgvo-category__checkbox:focus-visible + .dsgvo-category__checkbox-label {
  outline: 2px solid #E65A2F;
  outline-offset: 2px;
}

.dsgvo-category__checkbox-wrap--default {
  display: none;
}

.dsgvo-category__checkbox-wrap--disabled {
  display: flex;
  opacity: .4;
}

.dsgvo-category__checkbox:disabled + .dsgvo-category__checkbox-label {
  cursor: default;
}

@media (min-width: 768px) {
  .dsgvo-consent--inline .dsgvo-category {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.dsgvo-consent--inline .dsgvo-category__checkbox-wrap {
  justify-content: flex-start;
}
