#cookies-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  z-index: 100000;
  touch-action: manipulation;
  bottom: 0;
  width: 100vw;
  height: 100vh;
}

#cookies-popup {
  background-image: linear-gradient(to bottom, #4a505a, #2b343d);
  border: 6px solid transparent;
  border-image: linear-gradient(to bottom, #ffee78, #f88b23) 6;

  margin: 0px auto 0px auto;
  width: 480px;
  height: 300px;
  margin-bottom: 12px;
}

.cookies-text-content {
  font-family: 'Arial';
  font-size: 16px;
  font-weight: bold;
  color: #95979A;
  padding: 0px 16px;
}

.cookies-text-content p {
  padding-left: 12px;
  padding-right: 12px;
}

.cookies-text-content a {
  color: white;
}

.cookies-text-content p:first-child {
  padding-top: 12px;
}

.cookies-text-white {
  color: white;
  font-weight: bold;
}

.cookies-text-title {
  color: #419F0F;
  text-align: center;
  padding-top: 15px;
  padding-bottom: 0px;
  font-size: 48px;
}

#cookies-popup-buttons-container {
  font-size: 24px;
}

#cookies-popup-buttons-container,
#cookies-settings-buttons-container {
  position: relative;
  bottom: 25px;
  display: flex;
  justify-content: center;
  column-gap: 25px;
  margin-top: 45px;
}

#cookies-popup-settings-button {
  float: left;
}

#cookies-popup-accept-button {
  float: left;
}

.cookies-button {
  text-align: center;
  background-image: linear-gradient(to right, #8bdd32, #3d9d0d);
  border: 4px solid transparent;
  border-image: linear-gradient(to bottom, #ffee78, #f88b23) 6;
  background-size: 100% 100%;
  width: 198px;
  height: 65px;
  line-height: 36px;
  font-family: 'Arial';
  font-size: 26px;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

#cookies-settings {
  background-image: linear-gradient(to bottom, #4a505a, #2b343d);
  border: 6px solid transparent;
  border-image: linear-gradient(to bottom, #ffee78, #f88b23) 6;

  margin: 0px auto 0px auto;
  position: relative;
  width: 480px;
  height: 95vh;
}

#cookies-policy,
#cookies-privacy,
#cookies-terms {
  background-image: linear-gradient(to bottom, #4a505a, #2b343d);
  border: 6px solid transparent;
  border-image: linear-gradient(to bottom, #ffee78, #f88b23) 6;

  margin: 0px 15px 0px 15px;
  position: absolute;
  z-index: 1;
  width: 90vw;
  height: 90vh;
}

.toggle-control {
  display: block;
  position: relative;
  padding-left: 100px;
  cursor: pointer;
  font-size: 22px;
  user-select: none;
  bottom: 13px;
  right: 90px;
}

.toggle-control input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.toggle-control input:checked~.control {
  background-color: #419F0F;
}

.toggle-control input:checked~.control:after {
  left: 55px;
}

.toggle-control .control {
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 100px;
  border-radius: 25px;
  background-color: darkgray;
  transition: background-color 0.15s ease-in;
}

.toggle-control .control:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 40px;
  height: 40px;
  border-radius: 25px;
  background: white;
  transition: left 0.15s ease-in;
}

.x {
  width: 55px;
  float: right;
  margin: 31px;
}

.scrollable {
  height: 87vh;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-left: 36px;
  position: relative;
  top: 12px;
}


/* iPhone Portrait */
@media screen and (max-device-width: 480px) and (orientation:portrait) {

  #cookies-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    z-index: 100000;
    touch-action: manipulation;
    width: 100vw;
    height: 100vh;
  }

  #cookies-popup {
    width: 95vw;
    height: 50vw;
    padding-bottom: 0px;
  }

  .cookies-text-content {
    font-size: 3vw;
  }

  .cookies-text-content p:first-child {
    padding-top: 0px;
  }

  .cookies-text-white {
    color: white;
    font-weight: bold;
  }

  .cookies-text-title {
    color: #419F0F;
    text-align: center;
    padding-top: 25px;
    padding-bottom: 20px;
    font-size: 2em;
  }

  #cookies-popup-buttons-container,
  #cookies-settings-buttons-container {
    column-gap: 12px;
    bottom: 22px;
  }

  #cookies-popup-settings-button {
    float: left;
  }

  #cookies-popup-accept-button {
    float: left;
  }

  .cookies-button {
    text-align: center;
    width: 40%;
    height: 100px;
    line-height: 36px;
    font-family: 'Arial';
    font-size: 34px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  #cookies-settings {
    background-image: linear-gradient(to bottom, #4a505a, #2b343d);
    border: 6px solid transparent;
    border-image: linear-gradient(to bottom, #ffee78, #f88b23) 6;
    background-size: cover;
    bottom: 100px;
    width: 97vw;
    height: initial;
  }

  #cookies-policy,
  #cookies-privacy,
  #cookies-terms {
    margin: 0px auto 0px auto;
    width: 98vw;
    height: 91vh;
  }

  .toggle-control {
    display: block;
    position: relative;
    cursor: pointer;
    font-size: 22px;
    user-select: none;
    bottom: 4px;
    right: 90px;
  }

  .toggle-control input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }

  .toggle-control input:checked~.control {
    background-color: #419F0F;
  }

  .toggle-control .control {
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    width: 100px;
    border-radius: 25px;
    background-color: darkgray;
    transition: background-color 0.15s ease-in;
  }

  .toggle-control .control:after {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: white;
    transition: left 0.15s ease-in;
  }

  .x {
    width: 120px;
    margin: 10px;
  }

  .scrollable {
    padding-left: 80px;
    margin-top: 24px;
  }
}