//due to a bug in the minifier, we cannot point to the same file in the assets directory.
@import 'variables.less';
//hide by default, show with javascript.
//banner default hidden, for CLS purposes.
#cmplz-tcf-wrapper, .cmplz-tcf-banner-hidden.cc-type-categories {
  display:none;
}
.cmplz_tcf_legitimate_interest_checkbox {
  display:none;
}

.cmplz-tcf-type-description {
  display:none;
}

/*set max height, so we get scrollbars */
#cc-window.cmplz-tcf-banner {
  border-width:0;
  background-color:#fff;
  top: 10vh;
  transform: translate(-50%);
  max-height: 80vh;
  .cc-header {
	color:#333;
  }

  &.cc-floating {
	@media screen and (min-width: 672px) {
	  min-width: 672px;
	}
  }

  .cc-message {
	font-size:13px;
	color:#333;
  }

  &.cc-type-categories.cc-floating {
  //.cc-compliance .cc-btn.cc-save {
	//border-color:#333;
	//color:#333;
	//background-color:#fff;
  //}
  .cc-compliance .cc-accept-all {
	width: calc(50% - 0.8em);
	float:left;
	//background-color:#333;
	//color:#fff;
	//border-color:#333;
  }

  .cc-compliance .cc-btn.cc-dismiss {
	position:absolute;
	color:#333;
	top:5px;
	right:0;
	text-align: right;
	margin-right: 30px;
	background-color: initial !important;
	border:0;
	&:hover {
	  background-color: initial;
	}

	@media screen and (max-width: 672px) {
	  position:relative;
	  text-align: center;
	  width:100%;
	}
  }

  .cmplz-tcf-purposes-readmore {
	float:right;
	padding-right:10px;
  }

  @media screen and (max-width: 468px) {
	.cmplz-tcf-purposes-readmore {
	  float:left;
	}
  }

  .cmplz-tcf-header {
	font-size:15px;
	font-weight: bold;
	margin-bottom: 18px;
  }

  .cmplz-tcf-main {
	overflow-y:scroll;
	&::-webkit-scrollbar-track {
	  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
	  background-color: transparent;
	}

	&::-webkit-scrollbar {
	  width: 8px;
	  background-color: transparent;
	}

	&::-webkit-scrollbar-thumb {
	  background-color: #000;
	}
  }

	// cmplz-dropdown grid
	.cmplz-dropdown{
	  	summary{
			&::-webkit-details-marker, &::marker {
			  display: none;
			  content: '';
			}
		  div {
		  	display: grid;
			grid-template: "heading paragraph chevron";
			grid-template-columns: 2fr auto 35px;
			grid-gap: 15px;

			h3{
				grid-area: heading;
				margin: 0;
			}
			p {
				grid-area: paragraph;
			}
			&:after{
				grid-area: chevron;
			}
		  }
		}
	}

	// cmplz-dropdown styling
	.cmplz-dropdown{
	  background-color:rgba(239, 239, 239, 0.25);
	summary{
		background-color: rgba(239, 239, 239, 0.5);
	    align-items: center;
	    justify-items: stretch;
	  	padding: 0 10px;
	  	margin:5px 0;
	    h4 {
	      padding: 0;
	      border-bottom: 0;
	      font-size: 15px;
		  line-height: inherit;
	      border-bottom: 0;
		  color:#333;
	    }
	    p{
	      text-align: right;
	      padding: 0 5px;
	      margin: 7px 0;
	      font-size: 14px;
	      border-bottom: 0;
	    }
	    div:after {
	      content: '';
	      background: url(../images/down.png) no-repeat;
	      transform: rotate(0deg);
	      -webkit-transition: all 0.5s ease;
	      -moz-transition: all 0.5s ease;
	      -o-transition: all 0.5s ease;
	      transition: all 0.5s ease;
	      background-size: cover;
	      height: 25px;
	      width: 25px;
	      margin: 5px 5px;
		  cursor:pointer;
	    }
		.cmplz-tcf-active {
			color: @rsp-green;
			font-weight: normal;
			font-size: 13px;
		}
	  }
	  &[open] summary div:after {
	      transform: rotate(180deg);
	    }
	  h4 {
	     font-size: 15px;
	     margin: 5px 0;
	   }
	   p{
	   	font-size: 13px;
	   }
	   .cmplz-tcf-expl-desc{
	   		padding: 5px;
		 	margin:0;
	   }
	}
}
}

#cmplz-document {
  .cmplz-tcf-rm:after {
	background: url(../images/info-white.svg) no-repeat;
  }
  .cmplz-tcf-rl:after {
	background: url(../images/info-black.svg) no-repeat;
  }
  .cmplz-tcf-toggle, .cmplz-tcf-toggle-vendor{
	&:after {
	  content: '';
	  display: inline-block;
	  height: 15px;
	  width: 15px;
	  background-size:cover;
	}
  }

  .cmplz-tcf-expl-header{
	margin-top:15px;
  }
}
.cmplz-tcf-category-expl{
  p, a {
	font-size:13px;
	color:#333;
  }
  a {text-decoration:underline;}

  .cmplz-tcf-banner-marketing-purposes, .cmplz-tcf-banner-statistics-purposes {
	max-width: fit-content;
  }
}

.cmplz-tcf-template {
  display:none;
}

.cmplz-tcf-buttons {
  margin-top:20px;
  button {
	margin-right:20px;
	margin-bottom:20px;
  }
}

.cmplz-tcf-container {
  max-height:400px;
  overflow-y:auto;
  padding:10px;
  .cmplz-tcf-vendor-container {
	margin-bottom:20px;
  }

  .cmplz-tcf-checkbox-container{
	input {
	  margin-right: 5px;
	}

	.cmplz-tcf-links {
	  display:flex;
	  .cmplz-tcf-policy-url {
		margin-left: 30px;
		min-width:125px;
		//flex: 0 0 125px;
	  }

	  .cmplz-tcf-showinfo {
		margin-left:20px;
	  }
	}

	.cmplz-tcf-info{
	  display:none;
	  .cmplz-tcf-info-content {
		.retention_seconds, .retention_days, .session-storage, .non-cookie-storage-inactive, .non-cookie-storage-active,.non-cookie-refresh-inactive, .non-cookie-refresh-active {
		  display:none;
		}
		line-height:33px;
		margin-left:30px;
		display:flex;
		.cmplz-tcf-header {
		  min-width:125px;
		  //flex: 0 0 125px;
		}
		.cmplz-tcf-description{
		  display:flex;
		  flex-wrap:wrap;
		  .cmplz-tcf-purpose{
			//width:50%;
		  }
		  input {
			margin-left:15px;
		  }
		}
	  }
	}

  }
}
