@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

.form-ctrl-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
  background-color: rgba(170, 57, 57, 0.25);
  border-radius: 18px;
  transition: all 0.3s;
}
.form-ctrl-switch::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius:50%;
  background-color: white;
  top: 1px;
  left: 1px;
  transition: all 0.3s;
}
.form-ctrl-switch:has(>input:checked)::after {
  left : 18px;
}
.form-ctrl-switch:has(>input:checked) {
  background-color: #96c564;
}
.form-ctrl-switch:has(>input:disabled) {
  opacity: 0.5;
}
.form-ctrl-switch input {
  display : none;
}
#cookie-consent-dialog{
  max-width: 600px;
  padding: 0;
  position: relative;
  border: 2px solid;
  border-radius: 12px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  transition: all 0.5s ease-in-out;
  height: 70vh;
}
#cookie-consent-dialog[open]{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
#cookie-consent-dialog header{
  top: 0;
  background-color: #f7f5f5;
  color: #629429;
  padding: 1.2em 2em 0.7em 2em;
  border-bottom: 2px solid #302f2f59;
}
#cookie-consent-dialog header:focus-visible{
  outline: none;
}
#cookie-consent-dialog header .title{
  margin: 0;
  font-size: 1.6em;
  font-family: "Roboto Condensed", Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 500;
}
#cookie-consent-dialog h2{
  margin: 0 0 0.5em;
  font-size: 1.4em;
  font-family: "Roboto Condensed", Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 500;
}
#cookie-consent-dialog main{
  overflow: scroll;
  flex-grow: 1;
  margin-top: 0.5rem;
}
#cookie-consent-dialog #general_cookie_info{
  padding: 1em 2em;
}
#cookie-consent-dialog #cookie-category-settings{
  padding: 0 2em;
}
#cookie-consent-dialog summary{   
  font-size: 1em;
  font-weight: bold;
  padding-bottom: 0.5em;
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
#cookie-consent-dialog details[open] summary::before{
  transform: rotate(90deg);
  transition: all 0.2s ease-in-out;
}
#cookie-consent-dialog summary::before{
  display: inline-block;
  font-size: 1.2em;
  content: "›";
  margin-right: 0.5em;
  transition: all 0.2s ease-in-out;
}
#cookie-consent-dialog summary .form-ctrl-switch{
  float: right;
  margin-right: 0.5em;
}  
#btn-close-cookie-dialog{
  position: absolute;
  top: 0.8em;
  right: 0.8em;
  background-color: #f7f5f5;
  border: 1px solid white;
  border-radius: 50%;
  font-size: 0;
  height: 35px;
  width: 35px;
}
#btn-close-cookie-dialog::after{
  content: "\002b";
  font-size: 30px;
  color:rgb(56, 56, 56);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
#cookie-consent-dialog footer{
  background-color: white;
  bottom:0;
  padding: 0.5em 2em;
  margin-top:auto;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.5em;
  align-items: flex-start;
}
#cookie-consent-dialog footer button{
  margin-right: 0.5em;
  padding: 0.35em;
  border: 1px solid;
  border-radius: 5px;
  background-color: rgb(249, 248, 242);
}
#cookie-consent-dialog #btn-accept-cookies{
  color: #40601b;
  float: right;
}  
#cookie-consent-dialog #btn-accept-selected{
  display: none;
  margin-bottom: 0.5em;
}
#cookie-consent-dialog #btn-reject-cookies{
  display: none;
  color: rgba(170, 57, 57, 0.6);
}
#cookie-consent-dialog.setup #btn-reject-cookies, #cookie-consent-dialog.setup #btn-accept-selected{
  display: inline-block;
}
.setup #btn-customize-cookies{
  display: none;
}
.setup #general_cookie_info{
  display: none;
}
dialog:not(.closing)[open] {
  animation: fadein 0.5s ease-in forwards;
}
dialog.closing[open] {
  animation: fadeout 0.5s ease-in forwards;
}

@keyframes fadein{
  0%{
    opacity:0;
  }
  100%{
    opacity:1;
  }
} 

@keyframes fadeout{
  0%{
    opacity:1;
  }
  100%{
    opacity:0;
  }
}

@media only screen and (max-width: 768px) {
  #cookie-consent-dialog{
      margin: 5vh 0.2em;
      height: 80vh;
  }
  #btn-customize-cookies{
    display: block;
    margin-bottom: 0.5em;
  }
  #cookie-consent-dialog footer button{
    margin-right: 0.3em;
  }
  #cookie-consent-dialog footer {
    flex-direction: column;
    align-items: stretch;
  }
}