.toggle-bg {
  display: flex;
  width: 1.6rem;
  min-width: 1.6rem;
  height: 1rem;
  border-radius: 4px;
  background-color: #ececec;
  border: rgba(0, 0, 0, 0.2);
}

.cookie-dialog .toggle {
  margin-left: -2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background-color: #ececec;
  transition: all 0.3s;
}

.cookie-dialog .on {
  margin-left: 11px;
  margin-right: -2px;
  background-color: var(--primary);
  border-color: var(--primary);
}

.cookie-dialog .disabled {
  background-color: #c8c8c8;
}

.cookie-dialog .disabled .toggle {
  background-color: #c8c8c8;
  margin-left: 11px;
  margin-right: -2px;
}

.cookie-dialog {
  border-radius: 10px;
  max-height: 80vh;
  overflow-y: auto;
  background-color: white;
  width: 80vw;
  padding-bottom: 25px;
  position: fixed;
  left: 10vw;
  margin: auto;
  bottom: 10px;
  z-index: 1001;
}

.cookie-dialog-title {
  background-color: var(--primary);
  padding: 10px 0;
}

.cookie-dialog-title p {
  text-align: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0;
}

.cookie-dialog-content {
  padding: 10px 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 32%);
  gap: 10px;
}

.cookie-dialog label {
  display: flex;
  gap: 5px;
  align-items: center;
  font-weight: bold;
}

.backdrop {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

#statLabel:hover,
#marketingLabel:hover,
#statToggle:hover,
#marketingToggle:hover {
  cursor: pointer;
}

@media screen and (max-width: 47.99rem) {
  .grid-3 {
    display: block;
  }
}
