/* Cookie Dialog */

.cookie-basic {
  background-color :rgba(0,0,0,0.9);
  color: white;
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  font-family: system-ui;
  bottom: 0;
  overflow: auto;
  padding: 10px;
  position: fixed;
  text-align: left;
  width: 100%;
  z-index: 4;
}   
.cookie-basic .title {
  flex: 100%;
}
.cookie-basic .message {
  flex: 100%;
  margin-top: 8px; /* aligns paragraph text with title */
}
.cookie-basic .buttons {
  display: flex;
  display: -webkit-flex;
  flex: 100%;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  padding: 5px;
  margin-top: 5px; /* extra top margin when full width */
}
@media screen and (min-width: 576px) { 
  .cookie-basic .title {
    flex: 20%;
  }
  .cookie-basic .message {
    flex: 80%;
  }
  .cookie-basic .buttons {
    flex: 100%;
  }
}
@media screen and (min-width: 768px) { 
  .cookie-basic .title {
    flex: 0 0 120px;
  }
  .cookie-basic .message {
    flex: 1;
  }
  .cookie-basic .buttons {
    flex: 0 0 140px;
    margin-top: 0; /* remove top margin when own column */
  }
}
@media screen and (min-width: 860px) { 
  .cookie-basic {
    flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
  }
  .cookie-basic .buttons {
    flex: 0 0 280px;
  }
}
.cookie-basic h2 {
  font-family: "quicksand",arial, helvetica, sans-serif;
  font-size: 22px;
  font-weight: 500; margin-bottom: 0;
  text-align: left;
}
.cookie-basic a:hover {
  color: white;
}


/* Settings */
.cookie-settings {
  background-color:white;
  color: black;
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  -ms-flex-direction: column;
  font-family: system-ui;
  left: 50%;
  max-height: 100vh;
 /*jj overflow: auto;*/
  padding: 20px;
  position: fixed;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  z-index: 4;
}   
@media screen and (min-width: 610px) { 
  .cookie-settings {
    border-radius:         10px;
    -moz-border-radius:    10px;
    -webkit-border-radius: 10px;
    max-width: 600px;
  }
}
.cookie-settings .cookie-header {
  border-bottom: 1px solid grey;
}
.cookie-settings .details {
  overflow-x: hidden;
  overflow-y: auto;
}
.cookie-settings h2 {
  font-family: "quicksand",arial, helvetica, sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
}
.cookie-settings h3 {
  font-family: "quicksand",arial, helvetica, sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 0;
}
.cookie-settings .type-container {
  display: flex;
  display: -webkit-flex;
  margin-bottom: 1rem;
}
.cookie-settings .toggle-col {
  flex: 0 0 80px;
}
.cookie-settings .buttons {
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  justify-content: space-evenly;
}
.cookie-settings a:hover {
  color: black;
}


/* common */
.cookie-basic p,
.cookie-settings p {
  font-size: 15px;
  line-height: 1.5em;
}
.cookie-basic p:last-child,
.cookie-settings p:last-child {
  margin-bottom: 0;
}
.cookie-basic a,
.cookie-settings a {
  color: var(--main-link-txt-color);
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 2px;
  transition:         all 0.3s ease-in;
  -webkit-transition: all 0.3s ease-in;
  -moz-transition:    all 0.3s ease-in;
}


.button-style-1,
.button-style-2,
.button-style-3,
.button-style-4 {
  border-radius:         3px;
  -moz-border-radius:    3px;
  -webkit-border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  height: 38px;
  margin: 5px;
  padding: 7px;
  transition:         all 0.3s ease-in;
  -webkit-transition: all 0.3s ease-in;
  -moz-transition:    all 0.3s ease-in;
  width: 120px;
}
.button-style-1 {
  background-color: black;
  color: white;
}
.button-style-1:active,
.button-style-1:hover
{
  background-color: grey;
}
.button-style-2 {
  background-color: white;
  border: 2px solid black;
  color: black;
}
.button-style-2:active,
.button-style-2:hover {
  border: 2px solid grey; 
}
.button-style-3 {
  background-color: white;
  color: black;
}
.button-style-3:active,
.button-style-3:hover {
  background-color: grey;
}
.button-style-4 {
  background-color: black;
  border: 2px solid white;
  color: white;
}
.button-style-4:active,
.button-style-4:hover {
  border: 2px solid grey;
}
/* The switch - the box around the slider */
.switch {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1;
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}


.switch input { /* Hide default HTML checkbox */
  opacity: 0;
  width: 0;
  height: 0;
}
.slider { /* The slider */
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: grey;
  text-align: left;
  transition:         .4s;
  -webkit-transition: .4s;
  -ms-transition:     .4s;
  border-radius: 28px;
}
.slider:after {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition:         .4s;
  -webkit-transition: .4s;
  -ms-transition:     .4s;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -ms-border-radius: 50%;
}
input:checked + .slider {
  background-color:  #49b850;
}
input:checked + .slider:after {
  left: calc(100% - 2px);
  transform:          translateX(-100%);
  -webkit-transform:  translateX(-100%);
  -ms-transform:      translateX(-100%);
}
.slider:before {
  color: white;
  content: "off";
  position: absolute;
  right: 10px;
  top: 6px;
}
input:checked + .slider:before {
  content: "on";
  left: 10px;
  top: 5px;
}
