/* ================= iOS TOGGLE ================= */
.ios,
.tick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 15px;
  position: relative;
}

/* hide input */
.ios input,
.tick input {
  position: absolute;
  opacity: 0;
}

/* TOGGLE TRACK */
.track {
  width: 46px;
  height: 26px;
  background: #ccc;
  border-radius: 999px;
  position: relative;
  transition: background 0.25s ease;
}

/* TOGGLE KNOB */
.track::after {
  content: "";
  width: 22px;
  height: 22px;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

/* TOGGLE ON */
.ios input:checked + .track {
  background: #4cd964;
}
.ios input:checked + .track::after {
  transform: translateX(20px);
}

/* TOGGLE DISABLED ✅ */
.ios input:disabled + .track {
  /*background: #e5e7eb;*/
  cursor: not-allowed;
}
.ios input:disabled + .track::after {
  background: #f9fafb;
  box-shadow: none;
}
.ios input:disabled ~ span {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ================= ANIMATED CHECKBOX ================= */
.box {
  width: 22px;
  height: 22px;
  border: 2px solid #2563eb;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

/* tick */
.box::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}

/* checked */
.tick input:checked + .box {
  background: #2563eb;
}
.tick input:checked + .box::after {
  transform: rotate(45deg) scale(1);
}

/* CHECKBOX DISABLED ✅ */
.tick input:disabled + .box {
  /* background: #e5e7eb; */
  border-color: #cbd5e1;
}
.tick input:disabled + .box::after {
  border-color: #fff;
  opacity: 0.7;
}
.tick input:disabled ~ span {
  color: #9ca3af;
  cursor: not-allowed;
}

/* LABEL TEXT */
label span:last-child {
  font-size: 15px;
}

 
.dpdpa--popup {
  visibility:hidden;
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  -webkit-transform:translateY(100%);
  -ms-transform:translateY(100%);
  transform:translateY(100%);
  background-color:#fff;
  padding:15px;
  -webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,0.25);
  box-shadow:0 2px 5px 0 rgba(0,0,0,0.25);
  line-height:1.6;
  z-index: 99;
  -webkit-transition:1s all;
  transition:1s all
}

.dpdpa--popup .container {
  max-width:1200px;
  margin:auto
}
.dpdpa--popup-container {
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  position:relative
}
.dpdpa--popup.active {
  visibility:visible;
  -webkit-transform:translateY(0);
  -ms-transform:translateY(0);
  transform:translateY(0)
}
.dpdpa--popup.hide-close .dpdpa--popup-close {
  display:none
}
.dpdpa--popup.hide-close .dpdpa--popup-button-group {
  padding-right:0
}
.dpdpa--popup-settings {
  display:inline-block;
  margin-right:20px
}
.dpdpa--popup-icon {
  display:none
}
.dpdpa--popup-text {
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-align:center;
  -ms-flex-align:center;
  align-items:center;
  padding-right:2em;
  -webkit-box-flex:1;
  -ms-flex-positive:1;
  flex-grow:1
}
.dpdpa--popup-text p {
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#444
}
.dpdpa--popup-text a {
  display:inline-block;
  margin:0 1px;
  color:#3860be;
  font-weight:500
}
.dpdpa--popup-text a:hover {
  text-decoration:underline;
  color:#2c4c97
}
.dpdpa--popup-button-group {
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-flex:1;
  -ms-flex-positive:1;
  flex-grow:1;
  -webkit-box-align:center;
  -ms-flex-align:center;
  align-items:center;
  -webkit-box-pack:end;
  -ms-flex-pack:end;
  justify-content:flex-end;
  padding-right:30px
}
.dpdpa--popup-button-group a {
  margin-right:15px
}
.dpdpa--popup-button-group a:last-child {
  margin-right:0
}
a.dpdpa--popup-button {
  display:inline-block;
  padding:8px 20px;
  font-size:14px;
  font-weight:bold;
  text-align:center;
  border-radius:3px;
  background-color:#ab8d58;
  color:#fff;
  text-decoration:none;
  clear:both;
  white-space:nowrap
}
a.dpdpa--popup-button:hover,
a.dpdpa--popup-button:visited {
  color:#fff;
  text-decoration:none;
  background-color:#ab8d58;
  -webkit-transition:0.2 all;
  transition:0.2 all
}


@media only screen and (max-width:860px) {
  .dpdpa--popup {
    padding:1em;
    max-width:480px;
    margin:auto;
    left:1em;
    right:1em;
    bottom:1em;
    border-radius:6px
  }

  .dpdpa--popup.hide-close .dpdpa--popup-text {
    padding-right:0
  }

  .dpdpa--popup-container {
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
    -ms-flex-direction:column;
    flex-direction:column
  }

  .dpdpa--popup-text {
    padding-right:30px
  }

  .dpdpa--popup-text p {
    font-size:13px;
    line-height:1.6
  }

  .dpdpa--popup-button-group {
    margin-top:12px;
    padding-right:0;
    -webkit-box-pack:end;
    -ms-flex-pack:end;
    justify-content:flex-end
  }

  a.dpdpa--popup-button {
    padding:5px 20px;
    font-size:13px
  }

  .dpdpa--popup-close {
    top:-5px;
    right:0;
    -webkit-transform:translate(0,0);
    -ms-transform:translate(0,0);
    transform:translate(0,0)
  }

  .dpdpa--popup-sidebar-container {
    bottom:4em
  }
}

@media only screen and (max-width:782px) {
  .logged-in .dpdpa--popup-sidebar {
    top:46px
  }
}

@media only screen and (max-width:600px) {
  .logged-in .dpdpa--popup-sidebar {
    top:0
  }
}
