/*corporate brand 
main green #338267
hover green #006341
*/

#accn-cookie-consent-wrapper{
	width:100%;
	position: fixed;
    bottom: 0px;
    z-index: 999;
}

#accn-cookie-consent {
	/*     background: #fff3cd; */
	background: #fbfbfb;
	padding: 30px;
	/* font-size: 0.8em;*/
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	/*align-items: center;*/
	/*     border: 1px solid #e9e9e9; */
	border: 1px solid #c2c2c2;
	box-shadow: 0 1px 5px 3px rgba(24,21,21,.3);
	margin:0 auto;
	width:100%; 
/* 	max-width:1350px;  */
/* 	max-width: calc(100% - 40px); */
	bottom: 0px;
}

#accn-cookie-consent p {
    margin: 0 0 -25px 0;
    font-size: 1.1em;
    /* line-height: 1.3em; */
    /* text-align: justify; */
}
#accn-cookie-consent h3 { 
font-size: 1.5em;
}
#accn-cookie-consent a {
    text-decoration: underline;   
     text-decoration-line: underline;
     text-underline-offset: 4px;
     text-decoration-thickness: 1px;
     text-decoration-color: #338267;
    color: #338267;
    font-weight: 500;
}
#accn-cookie-consent a:focus,
#accn-cookie-consent a:hover {
	/* background-color: #e9e9e9; */
	background-color: transparent;
    text-decoration-color: #0b7d56;
    color: #0b7d56;
}

.accn-fade {
display: none;
}

#accn-cookie-consent button {
    background-color: #338267;
    color: white;
    border: 1px solid #338267;
    border-radius: 8px;
    padding: 18px 25px 18px 25px;
    font-size: 1.1em;
    width: 100%;
    margin: 1px 0;
    font-weight: 600;
}

#accn-cookie-consent button:focus,
#accn-cookie-consent button:hover {
    text-decoration: none;   
     text-decoration-line: none;
	cursor:pointer;
/* 	background-color: #585858; */
background-color: #006341;

}

.accn-row-1{
	width:100%;
	display: flex;
	flex-direction:row;
}

.accn-row-2{
	width:100%;
}

.accn-statement{
	width:100%;
	max-width:80%;
	padding-right: 40px;
}

.accn-option-buttons{
	width:100%;
	margin:30px 0px 15px;
}

#details_link_wrapper{
	display:inline-block;
	margin-left:30px;
	font-weight:600;
	font-size: 1.1em;
}
.accn-option-buttons.stacked #details_link_wrapper{
	margin-left:0px;
	display:block;
	float:right;
}

a.details_link, a.details_link span {
    display: flex;
    align-items: center;
}
a.details_link span::before {
    content: "";
    width: 11px;
    height: 11px;
    background-size: 11px;
    background-repeat: no-repeat;
    margin: 0 0 0 8px;
    padding: 0;
    transition: var(--smooth-ease); 
}

a#btn_consent_details_show span::before {
background-image: url('/wp-content/themes/algonquincollege2018/images/icns/icn-chevron-right-green.png');
}
a#btn_consent_details_hide span::before {
	background-image: url('/wp-content/themes/algonquincollege2018/images/icns/icn-chevron-up-green.png');
}

.accn-save-buttons{
  width: 100%;
  max-width: 20%;
	min-width: 225px;
	margin-top: 1px;
}
.accn-save-buttons.mobile {
display: none;
visibility: hidden;
}
#accn-cookie-consent .button-wrapper {
	width: 100%;
	display:block;
  	margin: 5px 0px;
}
.accn-toggle-button{
	display:inline-block;
	font-weight:700;
	margin-left: 20px;
}
.accn-toggle-button label {
	display: flex;
	align-items: center;
	font-size: 1.15em;
}
.accn-option-buttons.stacked .accn-toggle-button label {
	display: initial;
}
.accn-toggle-button .btn-description{
	display:none;
	font-weight:normal;
	font-size: 1.1em;
}

.accn-option-buttons.stacked .accn-toggle-button{
	width:100%;
	margin-left:0px;
	margin-bottom:15px;
	border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.accn-option-buttons.stacked .accn-toggle-button .btn-description{
	display:block;
}	

.accn-toggle-button:first-of-type{
	margin-left: 0px;
}

/* The switch - the box around the slider */
.consent_switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 44px;
/*   top: -5px; */
	margin: 0 10px;
}
.accn-option-buttons.stacked .accn-toggle-button .consent_switch{
	float:right;
}

/* Hide default HTML checkbox */
.consent_switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.consent_slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #3b3b3b;
  -webkit-transition: .4s;
  transition: .4s;
}

.consent_slider:before {
  position: absolute;
  content: "";
  height: 36px;
  width: 36px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  
}

input:checked + .consent_slider {
  background-color: #338267;
}

input:focus + .consent_slider {
  box-shadow: 0 0 1px #338267;
}

input:checked + .consent_slider:before {
  -webkit-transform: translateX(36px);
  -ms-transform: translateX(36px);
  transform: translateX(36px);
}

/* Rounded sliders */
.consent_slider.consent_round {
  border-radius: 34px;
}

.consent_slider.consent_round:before {
  border-radius: 50%;
}

#btn_consent_details_show{
	display:flex;
}
#btn_consent_details_hide{
	display:none;
}
.accn-row-head {
display: none;
}

/****** Small screens ******/

@media (max-width: 880px) { 
	#accn-cookie-consent-wrapper {
		z-index: 998;
    height: calc(100% - 0px);
    padding: 10px;
    -webkit-backdrop-filter: blur(15px); /* fixes blur for Safari */
    backdrop-filter: blur(15px);
    bottom:0px;
    overflow: scroll;
	}
   #accn-cookie-consent {
        flex-direction: column;
        width: 100%; 
		max-width:100%;
		border-radius: 8px;
    }
	.accn-toggle-button{
		width:100%;
		margin-left:0px;
		margin-bottom: 10px;
		padding: 12px 0;
		border-bottom: 1px solid #c2c2c2;
	}

	.accn-toggle-button label {
	justify-content: space-between;
	align-items: center;
	}
	.accn-option-buttons{
	margin:10px 0px 15px;
}
	.accn-option-buttons.stacked .accn-toggle-button label {
		display: flex;
		align-items: flex-end;
		padding-bottom: 5px;
	}
	.consent_switch {
		float:right;
		margin: 0;
	}
	#details_link_wrapper{
		margin-left:0px;
		margin-top: 10px;
		display:block;
		float:right;
	}
	.accn-row-1{
		flex-direction:column;
	}
	.accn-statement{
		max-width:100%;
		margin-bottom:20px;
		padding-right: 0;
	}
	.accn-save-buttons.mobile {
display: block;
visibility: visible;
}
	.accn-save-buttons.desktop {
display: none;
visibility: hidden;
}
	.accn-save-buttons{
		width:100%;
		max-width:100%;
		margin-bottom:0;
		margin-top: 60px;
	}
	
	html.cookieConsentVisible, html.cookieConsentVisible body {
		margin: 0; 
		height: 100%; 
		overflow: hidden
	}
	.accn-row-head {
		width: 100%;
		display: flex;
		flex-direction: column;
	}
	.accn-logo {
		display: flex;
    justify-content: flex-end;
    border-bottom: .5px solid #c2c2c2;
    padding: 0 0 15px 0;
    margin: 0;
	}
	.accn-logo span {
  display: flex;
  justify-content: flex-end;
  margin: 0px;
  align-items: center;
  width: 100%;
	}
	.accn-logo span::before{
	background-image: url('/wp-content/themes/algonquincollege2018/images/icns/ac-logo-sm-green.png');
	content: "";
	width: 175px;
	height: 37px;
	background-size: 175px;
	background-repeat: no-repeat;
	margin: 0 0 0 0;
	padding: 0;
   }
   #accn-cookie-consent h3 { 
	margin-top: 20px;
}
	
}

@media (max-width: 574px) { 
	.accn-row-1 {
		max-height: 250px;
	position: relative;
	overflow-y: scroll;
	}
	.accn-statement {
	margin-bottom: 0;
	}
	.accn-fade {
	display: block;
	background-image: linear-gradient(to top, rgb(251, 251, 251), rgba(251, 251, 251, 0.8), rgba(251, 251, 251, 0));
	height: 60px;
	position: absolute;
	bottom: 0;
	z-index: 999;
	width: 100%;
	vertical-align: baseline;
	position: sticky;
	pointer-events: none;
	}
}

