.hidden {
  display: none !important;
}

#cookie-consent-banner {

  position: fixed;

  bottom: 0;

  left: 0;

  right: 0;

  background: #000;

  color: var(--text-color);

  padding: 1rem;

  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 0.9rem;

  z-index: 1000;

  flex-wrap: wrap; /* Allow wrapping on small screens */



  /* Animation defaults */

  transform: translateY(100%);

  opacity: 0;

  transition: transform 0.4s ease, opacity 0.4s ease;

}

/* #cookie-consent-banner  > * */
.cookie-content
{
  width:80%;
  max-width: 1200px;
  vertical-align: middle;
  flex-wrap: wrap;
  text-align: center;
  margin:auto;
}

#cookie-consent-banner div> *
{
  margin: 10px;
}


#cookie-consent-banner.show {

  transform: translateY(0);

  opacity: 1;

}



#cookie-consent-banner button {

  cursor: pointer;


  padding: 0.4rem 0.8rem;

  margin-left: 0.5rem;

  font-size: 0.9rem;

}



#btn-accept, #save-preferences {

  background: var(--darkened-text-col);

  color: #000;
  border: none;

}

#btn-accept:hover,  #btn-accept:focus, #save-preferences:hover, #save-preferences:focus{

  background: var(--text-color);

  color: #000;

}



#btn-reject, #btn-preferences, #close-modal  {

  background: black;

  border: 1px solid #222; 

  color: var(--darkened-text-col);

}


/* 
{

  background: black;

  border: 1px solid #222; 

  color: var(--darkened-text-col);

  cursor: pointer;

} */

#btn-preferences:hover,  #btn-preferences:focus, #btn-reject:hover, #btn-reject:focus{

  color: var(--text-color);

}



/* Mobile-friendly layout */

@media (max-width: 600px) {

  #cookie-consent-banner {

    flex-direction: column;

    /* align-items: flex-start; */

    text-align: left;

  }



  #cookie-consent-banner > div {

    margin-bottom: 0.5rem;

  }



  #cookie-consent-banner button {

    margin-left: 0;

    margin-right: 0.5rem;

    width: auto;

  }

}

/* Modal */
.cookie-modal {
  /* position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; */

  position: fixed;
  top: 0;
  left: 0;
  width:100vw;
  height: 100vh;
  transform: translate(0, -80vh);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index:100;
}

.cookie-modal-content {
  background: var(--bg-color);
  border-radius: 1px;
  border-width: 1px;
  border-color: var(--form-box-col);
  padding: 24px;
  border-radius: 10px;
  width: 400px;
  max-width: 95%;
}

.cookie-option {
  margin-bottom: 16px;
  padding:5px;
}

/* .cookie-option *:not(input[type="checkbox"]){
 
  margin: 4px 0 0 24px;
} */

.cookie-option p {
  font-size: 13px;
  color: var(--text-color);
  flex-basis: 100%;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.check-cookie, .check-cookie:after, .check-cookie:checked:after{
  appearance: none;
  background-color: var(--form-box-col);
  margin:0;
  font: inherit;
  color: var(--text-color);
  width: 1.15em;
  height: 1.15em;
  border: 0.15em var(--border-col);
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  vertical-align: middle;
}

input[type="checkbox"] {
  /* ...existing styles */
  display: grid;
  place-content: center;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--text-color);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.cookie-option
{
  display: flex;
  /* gap:0.5em; */
  align-items: center;
  flex-wrap: wrap;

}

.cookie-option label{
  margin-bottom: 0px;
}

input[disabled]{
   background-color:var(--darkened-text-col);

}

