:root {
  --f3cc-background-light-color: #ffffff;
  --f3cc-background-color: #e9e9e6;
  --f3cc-background-inactive-color: #808080;
  --f3cc-accent-color: #ffce00;
  --f3cc-foreground-color: #000000;
}

#f3cc {
  font-size: 1rem;
}

#f3cc .f3cc-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--f3cc-background-color);
  z-index: 2000;
  line-height: 1.25;
  padding: 1rem;
}

#f3cc .f3cc-panel {
  background: rgba(0, 0, 0, 0.66);
  position: fixed;
  min-height: 100vh;
  z-index: 2000;
  left: 0;
  top: 0;
  right: 0;
  overflow: scroll;
}

#f3cc .outer {
  display: flex;
  gap: 1rem;
  max-width: 70rem;
  margin: 0 auto;
  width: 80%;
}

@media screen and (max-width: 60rem) {
  #f3cc .f3cc-banner .outer {
    width: 100%;
    flex-direction: column;
  }

  #f3cc .outer {
    width: auto;
  }
}

#f3cc .inner {
  text-align: left;
}

#f3cc .f3cc-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 25em) {
  #f3cc .f3cc-buttons {
    flex-direction: column;
  }
}

#f3cc .f3cc-revoke .btn-revoke {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
}

#f3cc p {
  margin-bottom: 0;
  line-height: 1.5;
}

#f3cc a {
  border-bottom: none;
}

#f3cc p > a {
  border-bottom: 0.125rem solid var(--f3cc-accent-color);
}

#f3cc p > a:hover {
  color: var(--f3cc-foreground-color);
  opacity: 0.7;
}

#f3cc .btn {
  display: inline-block;
  background: var(--f3cc-accent-color);
  padding: 0.8rem;
  white-space: nowrap;
  text-decoration: none;
}

#f3cc .btn:hover {
  opacity: 0.7;
  color: var(--f3cc-foreground-color);
}

#f3cc .btn-panel,
#f3cc .btn-cancel {
  background-color: var(--f3cc-background-light-color);
}

#f3cc .f3cc-panel .outer {
  background: var(--f3cc-background-color);
  flex-direction: column;
  position: absolute;
}

#f3cc .f3cc-panel .outer > * {
  width: 85%;
  margin: 1rem auto;
}

@media screen and (min-width: 37.5em) {
  #f3cc .f3cc-panel .outer {
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
  }
}

#f3cc .f3cc-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0.25em;
}

#f3cc input[type="checkbox"] {
  position: absolute;
  width: 1em;
  height: 1em;
  opacity: 0;
  left: 0;
  top: 0;
}

#f3cc .f3cc-category {
  position: relative;
  display: block;
  padding: 0 0 0 4.5rem;
  font-size: 0.875em;
  line-height: 1;
}

#f3cc .f3cc-category ~ .f3cc-category {
  margin-top: 2rem;
}

#f3cc .f3cc-category label::before {
  content: " ";
  cursor: pointer;
  width: 48px;
  height: 24px;
  background-color: var(--f3cc-background-inactive-color);
  transition: background-color 0.3s;
  display: block;
  border-radius: 24px;
  position: absolute;
  top: 2px;
  left: 0;
  margin-left: 0;
}

#f3cc .f3cc-category label::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 4px;
  width: 16px;
  height: 16px;
  background-color: var(--f3cc-background-light-color);
  border-radius: 16px;
  transform: translateX(0);
  transition: 0.3s;
}

#f3cc .f3cc-category input[type="checkbox"]:checked + label::before {
  background-color: var(--f3cc-accent-color);
}

#f3cc .f3cc-category input[type="checkbox"]:checked:disabled + label::before {
  cursor: not-allowed;
  filter: brightness(0.7);
}

#f3cc .f3cc-category input[type="checkbox"]:checked:disabled + label::after {
  cursor: not-allowed;
  filter: brightness(0.8);
}

#f3cc .f3cc-category input[type="checkbox"]:checked + label::after {
  transform: translateX(24px);
}
