/*

Overwites a link to ensure it's correct color for black background
See .consent-banner-button for buttons


*/

#consent-banner-modal p {
	margin: 8px 0px 8px 0px !important;
}
#consent-banner-main a {
	color: black !important;
}
#consent-banner-main a:hover {
	color: black !important;
}
.consent-banner-button {
  text-decoration: none;
  border: 2px solid yellow !important;
	border-radius: 10px !important;
	box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px !important;
  white-space: nowrap;
  color: black !important;
  background: yellow !important;
  padding: 0px 8px !important;
	margin-bottom: 8px !important;
	font-size: 16px !important;
}
.consent-banner-button:hover {
	border: 2px solid black !important;
  color: black !important;
  background: yellow !important;	
}

/* Floating bottom right icon */
.sticky {
	position: fixed; right: 20px; bottom: 20px; max-width: 1.5cm; transition: bottom 0.1s linear;
}
	@media screen and (max-width: 800px) {
		.sticky {
			max-width: 0.9cm;
		}
	}

.sticky img {
  max-width: 100%; height: auto; display: block;
}

/* Bottom bar */
#consent-banner-main[data-mode="bar"] #consent-banner-modal[open] {
  position: fixed;
  bottom: 50px;
  left: 10px;
  right: 10px;
  top: auto;
	width: 15cm;	
	margin: 0 auto;
  z-index: 2147483647;
  border: 4px solid #7E98E6 !important;
  border-radius: 15px;
  padding: 5px;
	font-size: 16px !important;
}
		@media screen and (max-width: 800px) {
			#consent-banner-main[data-mode="bar"] #consent-banner-modal[open] {
				width: 100%;
				min-width: 0;
				max-width: 80%;
			}
		}


/* Settings popup */
#consent-banner-modal,
#consent-banner-settings {
	border: none;
 	padding: 0;
 	background: #FBF57A;
	color: black;
	border: 4px solid #7E98E6 !important;
 	border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.4) 0 0 20px;
}

#consent-banner-main dialog::backdrop {
  background: rgba(0, 0, 0, .7);
}

#consent-banner-main {
  position: relative;
  z-index: 2147483647;
}

#consent-banner-main[data-wall="false"] dialog::backdrop {
  display: none;
}

#consent-banner-modal {
  padding: 25px 10px 30px !important;
}

#consent-banner-modal .consent-banner-modal-wrapper {
  display: flex;
  margin: 0 auto;
	margin-top: -10px !important;
	margin-bottom: -10px !important;
  justify-content: center;
  padding: 0;
}

#consent-banner-settings .consent-banner-heading {
  padding-bottom: 15px;
  /*border-bottom: 1px solid #ededed;*/
  display: block;
}

#consent-banner-modal .consent-banner-modal-wrapper p {
  margin-bottom: 0;
}

#consent-banner-modal .consent-banner-modal-buttons {
  margin-top: 12px;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: flex-end;
}

#consent-banner-modal .consent-banner-modal-buttons [href="#settings"] {
  margin-left: 10px;
}

#consent-banner-settings .consent-banner-settings-buttons {
  margin-top: 15px;
  text-align: center;
  display: flex;
  justify-content: space-around;
  grid-gap: 5px;
}

#consent-banner-modal .consent-banner-modal-buttons .consent-banner-button {
  margin-left: 10px;
}

#consent-banner-settings .consent-banner-settings-buttons [href="#close"] {
  margin-left: 10px;
}

#consent-banner-settings {
  padding: 20px 30px 15px;
  overflow-x: hidden;
  max-height: none;
}

#consent-banner-settings ul {
  list-style: none;
  padding-left: 0;
}

#consent-banner-settings ul label {
  font-weight: 500;
  margin-left: 5px;
}

#consent-banner-settings ul li {
  /*border-bottom: 1px solid rgba(0, 0, 0, .2);*/
  margin-bottom: 15px;
}

#consent-banner-settings ul p {
  margin-left: 25px;
}

.consent-banner-button:hover {
  color: rgba(231, 78, 30, .85);
  border-color: rgba(231, 78, 30, .85);
}

#consent-banner-settings .consent-banner-settings-buttons .consent-banner-button {
  flex: 1;
}

.consent-banner-button[href="#accept"] {
  color: #ffffff;
  border-color: rgb(231, 78, 30);
  background-color: rgb(231, 78, 30);
}

.consent-banner-button[href="#accept"]:hover {
  background-color: rgb(220, 114, 80);
  border-color: rgb(220, 114, 80);
}

#consent-banner-modal .consent-banner-modal-wrapper .consent-banner-heading {
  display: block !important;
}

#consent-banner-main .consent-banner-heading {
  font-size: 18px;
  font-weight: bold;
}

#consent-banner-settings > div > form div:nth-child(2) {
  max-height: 65vh;
  overflow-x: hidden;
}

#consent-banner-main[data-mode="bar"] #consent-banner-modal {
  margin: 0;
  max-width: none;
  width: auto;
}

#consent-banner-main[data-mode="bar"] .consent-banner-modal-buttons {
  margin-left: 20px;
}

#consent-banner-main[data-mode="modal"] .consent-banner-modal-wrapper {
  display: block;
}

@media (max-width:576px) {
  #consent-banner-settings {
    width: auto;
    margin: 0;
    border-radius: 0;
    min-width: auto;
    height: 100vh;
    max-height: none;
  }
  #consent-banner-main:not([data-mode="bar"]) #consent-banner-modal {
    margin: 0;
    width: 90vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  #consent-banner-settings .consent-banner-settings-buttons {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 16px 50px 30px;
    text-align: center;
    display: block;
  }
  #consent-banner-modal .consent-banner-modal-buttons {
    margin: 0 !important;
  }
  #consent-banner-settings .consent-banner-settings-buttons .consent-banner-button {
    display: block;
    margin: 0 0 10px;
    text-align: center;
  }
  #consent-banner-settings ul {
    padding-bottom: 100px;
  }
}

@media (max-width:768px) {
  #consent-banner-modal .consent-banner-modal-wrapper p {
    margin-bottom: 10px;
  }
  #consent-banner-modal .consent-banner-modal-wrapper img {
    margin-left: 10px;
  }	
  #consent-banner-modal .consent-banner-modal-buttons {
    display: block;
  }
  #consent-banner-modal .consent-banner-modal-wrapper {
    display: block;
  }
  #consent-banner-modal .consent-banner-modal-buttons .consent-banner-button {
    display: block;
    margin: 0 0 10px;
    text-align: center;
  }
}
