@import url(../css/base.css);

.cookies-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99999999; /* Sit on top */
  padding-top: 70px; /* Location of the box */
  padding-bottom: 25px;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: var(--km-dark); /* Fallback color */
  background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

/* Modal Content */
.cookies-modal-content {
  background-color: var(--km-light);
  margin: auto;
  padding: 20px;
  border: 1px solid var(--km-grey-2);
  width: 80%;
}

.cookie-description {
  line-height: normal;
  font-size: 12px;
}

.accept-preferences {
  display: flex;
  justify-content: flex-end;
}

.accept-preferences * {
  width: auto;
}

/* Close Button */
.close-cookies-modal {
  color: var(--km-grey-3);
  float: right;
  font-size: 28px;
  font-family: var(--km-font-family-bold);
}

.close-cookies-modal:hover,
.close-cookies-modal:focus {
  color: var(--km-dark);
  text-decoration: none;
  cursor: pointer;
}

/* Toggle Input */
.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 26px;
  float: right;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--km-grey-4);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--km-light);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--km-ornery-tangerine);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--km-ornery-tangerine);
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.switch .always-active {
  font-size: 10px;
  font-family: var(--km-font-family-thin);
  white-space: nowrap;
  position: relative;
  right: 15px;
}