/* GENERAL STYLES
-------------------------------*/

#consent-modeV2-modal h6 {
  font-weight: normal;
  margin-top: 0;
  font-size: 30px;
  margin-bottom: 20px;
}

#consent-modeV2-modal button {
  padding: 7px 10px;
  margin-right: 5px;
}

/* MODAL STYLES
-------------------------------*/
#consent-modeV2-modal .jw-modal {
  display: block;
   position: fixed;
  inset: 0;

  /* z-index must be higher than everything else on the page */
  z-index: 1000000000;
  
  /* semi-transparent black background exposed by padding */
  background-color: rgba(0, 0, 0, .75);
  padding: 40px;

  /* enables scrolling for tall modals */
  overflow: auto;
  visibility: hidden; /* Start with modal not visible */
  opacity: 0; /* Start fully transparent */
  transition: opacity 0.5s ease, visibility 0.5s; /* Smooth transition */
}

#consent-modeV2-modal .jw-modal.open {
  visibility: visible; /* Make modal visible */
  opacity: 1; /* Make modal fully opaque */
}

.jw-modal-body {
  padding: 20px;
  background: #fff;
  width: 80%;
  max-width: 500px;
  border-radius: 20px;
  left: 50%;
  transform: translate(-50%, 0%);
  position: absolute;
}

#consent-modeV2-modal #prefferences-jw{
  border-color: black;
  border-width: 2px;
  width: 100px;
  border-radius: 12px;
  transition: transform 0.6s ease;
  margin-bottom: 8px;
}

#consent-modeV2-modal #accept-jw{
  padding: 10px;
  background-color: #DC2B19;
  color: white;
  border-radius: 20px;
  max-width: 210px;
  margin-top: 12px;
  
  border-width: 0;
  transition: transform 0.6s ease;
}
#consent-modeV2-modal #accept-jw:hover{
  background-color: #a32112;
}

@media (min-width: 361px) {
  #consent-modeV2-modal #accept-jw {
    font-size: 18px;
  }
}

/*Toggle switch*/
/* The switch - the box around the slider */
#consent-modeV2-modal .switchConsent {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  #consent-modeV2-modal .switchConsent .ConsentInput {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  #consent-modeV2-modal .sliderConsent {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  #consent-modeV2-modal .sliderConsent:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  #consent-modeV2-modal input:checked + .sliderConsent {
    background-color: #DC2B19;
  }
  
  #consent-modeV2-modal input:focus + .sliderConsent {
    box-shadow: 0 0 1px #DC2B19;
  }
  
  #consent-modeV2-modal input:checked + .sliderConsent:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  #consent-modeV2-modal .sliderConsent.round {
    border-radius: 34px;
  }
  
  #consent-modeV2-modal .sliderConsent.round:before {
    border-radius: 50%;
  }
  #consent-modeV2-modal .grid-container {
    display: grid;
    grid-template-columns: 60px 1fr; /* 1st column is 80px, 2nd column takes the remaining space */
    grid-template-rows: repeat(4, 1fr); /* 4 rows that divide the space equally */
    gap: 10px; /* Optional: Adds some space between grid items */
    padding: 10px;
}
  
#consent-modeV2-modal .grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
  }
.grid-item-name{
  background-color: rgb(254, 234, 234);
  border-radius: 5px;
}
  
/*Switch*/
#consent-modeV2-modal .inactiveMixin {
  content: "";
  position: absolute;
  display: block;
}

#consent-modeV2-modal .beforeAnimation {
  -moz-transition: 0.2s cubic-bezier(0.24, 0, 0.5, 1);
  -o-transition: 0.2s cubic-bezier(0.24, 0, 0.5, 1);
  -webkit-transition: 0.2s cubic-bezier(0.24, 0, 0.5, 1);
  transition: 0.2s cubic-bezier(0.24, 0, 0.5, 1);
}

#consent-modeV2-modal .afterAnimation {
  box-shadow: 0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 0px 0 hsla(0, 0%, 0%, 0.04), 0 4px 9px hsla(0, 0%, 0%, 0.13), 0 3px 3px hsla(0, 0%, 0%, 0.05);
  -moz-transition: 0.35s cubic-bezier(0.54, 1.6, 0.5, 1);
  -o-transition: 0.35s cubic-bezier(0.54, 1.6, 0.5, 1);
  -webkit-transition: 0.35s cubic-bezier(0.54, 1.6, 0.5, 1);
  transition: 0.35s cubic-bezier(0.54, 1.6, 0.5, 1);
}

#consent-modeV2-modal .toggleWrapper {
  margin: auto;
  width: 55px;
  border: 1px solid lightgray;
  margin-top: 20px;
  border-radius: 5px;
}

#consent-modeV2-modal .toggleWrapper input.mobileToggle {
  opacity: 0;
  position: absolute;
}

#consent-modeV2-modal .toggleWrapper input.mobileToggle + label {
  position: relative;
  display: inline-block;
  user-select: none;
  -moz-transition: 0.4s ease;
  -o-transition: 0.4s ease;
  -webkit-transition: 0.4s ease;
}

/*Flexbox за втория прозорец*/
.jw-modal-flexbox-container{
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap onto the next line/row */
  justify-content: space-around; /* Space items evenly in the container */
  margin-left: 15px;
  margin-right: 15px;
}
.jw-modal-flexbox-container p{
  margin-bottom: 10px;
  margin-top: 5px;
}
.jw-modal-flexbox-name{
  font-weight: bold;
  display: flex;
  width: 100%;
  justify-content: center;
  font-size: 20px;
}
/* .jw-modal-flexbox-description{
  width: 100%;
} */
/* Премести класовете */
.consent-description {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}



