.form-switch {
  display: inline-block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.form-switch i {
  position: relative;
  display: inline-block;
  margin-right: .5rem;
  width: 46px;
  height: 26px;
  background-color: #e6e6e6;
  border-radius: 23px;
  vertical-align: text-bottom;
  transition: all 0.3s linear;
}

.form-switch i::before {
  content: "";
  position: absolute;
  left: 0;
  width: 42px;
  height: 22px;
  background-color: #fff;
  border-radius: 11px;
  transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
  transition: all 0.25s linear;
}

.form-switch i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
  transform: translate3d(2px, 2px, 0);
  transition: all 0.2s ease-in-out;
}

.form-switch:active i::after {
  width: 28px;
  transform: translate3d(2px, 2px, 0);
}

.form-switch:active input:checked + i::after {
  transform: translate3d(16px, 2px, 0);
}

.form-switch input {
  display: none;
}

.form-switch input:checked + i {
  background-color: #591D7450;
}

.form-switch input:checked + i::before {
  transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0);
}

.form-switch input:checked + i::after {
  transform: translate3d(22px, 2px, 0);
}

.popin-wrapper {
  background-color: rgba(0, 0, 0, .5);
  display: none;
  min-height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 999;
}

.popin-wrapper.toggle {
  align-content: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.popin {
  background-color: #fff;
  border-radius: 8px;
  color: #000;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: 100vh;
  max-width: 100vw;
  max-width: 60%;
  margin: 0 auto;
}

.popin-header {
  height: 60px;
  padding: 16px;
}

  .popin-header h2 {
    text-align: center;
    font-size: 18px;
  }

.popin-body {
  font-size: 14px;
  height: calc(100% - 120px);
  overflow: auto;
}

  .popin-body .popin-content {
    padding: 0 16px;
  }

    .popin-body .popin-content a, .popin-body .popin-content a:hover,
    .popin-body .popin-content a:visited, .popin-body .popin-content a:active {
      color: #000;
      font-weight: bold;
    }

    .popin-body .popin-content p {
      margin: 0;
    }

    .popin-body .popin-content p + p {
      margin-bottom: 64px;
      margin-top: 16px;
    }

    .popin-body .popin-content .cookies-list {
      display: flex;
      flex-direction: row;
    }

      .popin-body .popin-content .cookies-list div {
        padding: 8px;
      }

      .popin-body .popin-content .cookies-list div:first-child {
        font-weight: bold;
      }

      .popin-body .popin-content .cookies-list div:nth-child(2) {
        word-break: break-word;
      }

.popin-footer {
  display: flex;
  height: 40px;
  padding: 16px;
  justify-content: center;
}

  .popin-footer button {
    appearance: none;
    background-color: #591D74;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    width: 80%;
  }

@media (max-width: 640px) {
  .popin {
    max-width: 100%;
    max-height: -webkit-fill-available;
  }
}

@supports (-webkit-touch-callout: none) {
  .popin-wrapper {
    /* The hack for Safari */
    min-height: -webkit-fill-available;
  }
}




