/* Document: Stylesheet for WACON COOKIE CONSENT BOX */

body > .cookie-management { display: none !important; }

.waconcookiemanagement {
	display: none;
	background: rgba(0, 0, 0, .5);
	height: 100%;
	width: 100%;
	overflow: auto;
	position: fixed;
	z-index: 999999;
	top: 0;
	left: 0;
}

.waconcookiemanagement + .waconcookiemanagement {
	display: none !important;
}

#CookieBox {
	background: #FFF;
	box-sizing: border-box;
	box-shadow: 0 0 20px rgba(0, 0, 0, .6);
	border-radius: 12px;
	transform: translate(-50%, -50%);
	max-height: 85%;
	max-width: 650px;
	width: 95%;
	overflow: hidden;
	padding: 30px;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 201;
	display: flex;
	flex-direction: column;
}

#CookieBox h1,
#CookieBox h2,
#CookieBox h3,
#CookieBox p,
#CookieBox a,
#CookieBox button {
	text-decoration: none;
	text-transform: none;
	font-family: inherit;
}

#CookieBox .h2 {
	margin: 0 0 20px 0;
	padding: 0;
	text-align: center;
}

#CookieBox .h3 {
	margin: 0 0 15px 0;
	padding: 0;
}

#CookieBox ul {
	margin: 0;
	padding: 20px 0;
	text-align: center;
}

#CookieBox p {
	margin: 0 0 20px 0;
}

/* Button styling improvements */
#CookieBox .cookie-buttons-wrap {
	text-align: center;
	margin: 30px 0 20px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#CookieBox .cookie-buttons-wrap button,
#CookieBox .cookie-management button {
	display: block;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	padding: 15px 30px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

#CookieBox .cookie-accept button {
	background: var(--awsh-blue-dark);
	color: white;
}

#CookieBox .cookie-accept button:hover,
#CookieBox .cookie-accept button:focus {
	background: #006a96;
	box-shadow: 0 4px 12px rgba(0, 138, 193, 0.3);
}

#CookieBox .cookie-refuse button {
	background: #f8f9fa;
	color: #333;
	border: 2px solid #dee2e6;
}

#CookieBox .cookie-refuse button:hover,
#CookieBox .cookie-refuse button:focus {
	background: #e9ecef;
	border-color: #adb5bd;
}

#CookieBox .cookie-management {
	text-align: center;
	margin: 15px 0 30px 0;
}

#CookieBox .cookie-management button {
	background: transparent;
	color: var(--awsh-blue-dark);
	border: 2px solid var(--awsh-blue-dark);
	padding: 12px 30px;
	font-size: 14px;
}

#CookieBox .cookie-management button:hover,
#CookieBox .cookie-management button:focus {
	background: var(--awsh-blue-dark);
	color: white;
}

#CookieBox .cookieclose {
	background: #6c757d;
	border: none;
	border-radius: 50%;
	color: #FFF;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 16px;
	line-height: 28px;
	height: 28px;
	width: 28px;
	text-align: center;
	position: absolute;
	top: 15px;
	right: 15px;
	transition: all 0.3s ease;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#CookieBox .cookieclose:hover,
#CookieBox .cookieclose:focus {
	background: #495057;
	outline: 2px solid #005fa3;
	outline-offset: 2px;
}


#CookieBox .text-center {
	text-align: center;
}

#CookieBox .text-right,
#CookieBox .text-back-right {
	text-align: right;
}

#CookieBox .text-back-right a {
	display: inline-block;
	margin-right: 10px;
	text-decoration: none;
}

#CookieBox .cookieback {
	cursor: pointer;
	margin: 0 auto 10px;
	text-align: center;
	width: 65%;
}

#CookieBox .cookie-on,
#CookieBox .cookie-off {
	cursor: pointer;
	float: left;
	margin-right: 10px;
}

#CookieBox .category > .cookie-on,
#CookieBox .category > .cookie-off {
	margin-top: 5px;
}

#CookieBox .cookie-on {
	display: none;
}

#CookieBox .intro .cookie-legal {
	margin-top: 50px;
	width: 100%;
}

#CookieBox .cookie-legal {
	margin-top: 30px;
	margin-bottom: 0px;
	padding-top: 20px;
	border-top: 1px solid #dee2e6;
	text-align: center;
}

#CookieBox .cookie-legal a {
	cursor: pointer;
	display: inline-block;
	margin: 0 15px;
	padding: 8px 16px;
	text-decoration: none;
	color: var(--awsh-blue-dark);
	font-size: 14px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

#CookieBox .cookie-legal a:hover {
	background: rgba(0, 138, 193, 0.1);
	color: var(--awsh-grey-dark);
	text-decoration: none;
}

#CookieBox .info-text {
	display: none;
}

#CookieBox .info-show {
	cursor: pointer;
}

#CookieBox .info-hide {
	cursor: pointer;
}

#CookieBox .category {
	background: #EEE;
	margin: 25px 0;
	padding: 10px;
}

#CookieBox .category h3 {
	margin-top: 0;
	font-size: 1.25rem;
}

#CookieBox .cookie-info {
	background: #FFF;
	padding: 10px;
}

#CookieBox .cookie-info + .cookie-info {
	margin-top: 10px;
}

#CookieBox .cookie-info table {
	border-collapse: collapse;
	border-spacing: 0px;
	width: 100%;
}

#CookieBox .cookie-info td {
	padding: 3px 10px 3px 0;
	border-top: 1px solid #EEE;
}

#CookieBox .cookie-info td:first-child {
	width: 125px;
}

#CookieBox .cookie-info p {
	margin-top: 0;
}

#CookieBox .box-cookie-management {
	display: none;
	overflow: auto;
	overflow-y: scroll;
	margin-right: -20px;
	padding-right: 20px;
	max-height: calc(85vh - 200px); /* Ensure it fits within dialog with space for header/footer */
}

#CookieBox .box-cookie-management-in > p {}

#CookieBox .deactivated,
#CookieBox .activated {
	background: #A7A7A7;
	border: 1px solid rgba(0, 0, 0, .3);
	border-radius: 10px;
	display: inline-block;
	height: 20px;
	width: 40px;
}

#CookieBox .activated {
	background: #79a548;
}

#CookieBox .off,
#CookieBox .on {
	background: #FFF;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
	border-radius: 8px;
	cursor: pointer;
	display: block;
	float: left;
	margin: 1px 2px 2px;
	height: 16px;
	width: 16px;
}

#CookieBox .on {
	float: right;
}

#CookieBox .arrow {
	border: .5rem solid #333;
	display: inline-block;
	font-size: 0;
	height: 0;
	line-height: 0;
	margin: 0px 10px;
	padding: 0;
}

#CookieBox .arrow.down {
	border-right-color: transparent;
	border-bottom-color: transparent;
	border-left-color: transparent;
}

#CookieBox .arrow.up {
	border-top-color: transparent;
	border-right-color: transparent;
	border-left-color: transparent;
}

#CookieBox .cookie-fix {
	display: none;
	overflow: auto;
	padding: 20px 0 0 0;
}

#CookieBox .cookie-fix .cookie-save {
	float: left;
	margin-left: 0;
}

#CookieBox .cookie-fix .text-back-right {
	float: right;
	margin-right: 15px;
}
#CookieBox .cookie-fix .cookie-save a, #CookieBox .cookie-fix .text-back-right a {
	color:white;
	background-color: var(--awsh-blue-dark);
}
#CookieBox .cookie-fix .cookie-save a:hover, #CookieBox .cookie-fix .text-back-right a:hover, #CookieBox .cookie-fix .cookie-save a:active, #CookieBox .cookie-fix .text-back-right a:active, #CookieBox .cookie-fix .cookie-save a:focus, #CookieBox .cookie-fix .text-back-right a:focus {
	text-decoration: underline;;
}

#CookieBox .cookie-fix .cookieback,
#CookieBox .cookie-fix .cookie-refuse {
	cursor: pointer;
	display: block;
	margin: 10px auto;
	text-align: center;
	width: auto;
}

#CookieBox .cookie-fix .cookie-legal {
	clear: both
}

.cookie-set {
	cursor: pointer;
	display: inline-block;
}

.cookie-set,
.cookie-set *,
.cookie-set *::before,
.cookie-set *::after {
	box-sizing: border-box;
}

.cookie-set.script {
	background: #FFF;
	cursor: pointer;
	display: block;
	position: relative;
	min-height: 50px;
	text-align: center;
}

.cookie-set.script img {
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 100%;
	filter: grayscale(100%) blur(10px) brightness(160%) saturate(0%) contrast(120%);
}

.cookie-set.script p {
	color: #333;
	text-align: left;
}

.cookie-set.script img + p {
	background: rgba(0,0,0,.5);
	color: #FFF;
	padding: 20px;
	position: absolute;
	top: 50%;
	width: 100%;
	text-align: center;
	transform: translateY(-50%);
}

@media (max-width: 786px) {
	#CookieBox {
		height: 95%;
		max-height: 95%;
		max-width: 95%;
		width: 95%;
		padding: 20px;
		transform: translate(-50%, -50%);
		top: 50%;
	}
	
	#CookieBox .box-cookie-management {
		max-height: calc(95vh - 150px);
	}
	
	#CookieBox .h2 {
		font-size: 1.3rem;
		margin-bottom: 15px;
	}
	
	#CookieBox .cookie-buttons-wrap button,
	#CookieBox .cookie-management button {
		padding: 12px 20px;
		font-size: 14px;
	}
	
	#CookieBox .cookie-legal {
		margin-top: 20px;
	}
	
	#CookieBox .cookie-legal a {
		display: block;
		margin: 8px 0;
	}
}

@media (max-width: 480px) {
	#CookieBox {
		padding: 15px;
	}
	
	#CookieBox .cookie-buttons-wrap {
		margin: 20px 0 15px 0;
	}
}

#CookieBox button:focus,
#CookieBox [tabindex]:focus,
#CookieBox .info-show:focus,
#CookieBox .info-hide:focus,
#CookieBox .cookiecat:focus {
	outline: 3px solid #005fa3;
	outline-offset: 2px;
}

#CookieBox .info-show,
#CookieBox .info-hide {
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

#CookieBox .info-show:hover,
#CookieBox .info-hide:hover,
#CookieBox .info-show:focus,
#CookieBox .info-hide:focus {
	background-color: rgba(0, 138, 193, 0.1);
}

#CookieBox .cookiecat {
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

#CookieBox .cookiecat:hover,
#CookieBox .cookiecat:focus {
	background-color: rgba(0, 138, 193, 0.1);
}

/* Make individual cookie toggles keyboard accessible */
#CookieBox .cookie-info .cookie-on,
#CookieBox .cookie-info .cookie-off {
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: background-color 0.3s ease;
	display: inline-block;
	margin-right: 10px;
}

#CookieBox .cookie-info .cookie-on:hover,
#CookieBox .cookie-info .cookie-off:hover,
#CookieBox .cookie-info .cookie-on:focus,
#CookieBox .cookie-info .cookie-off:focus {
	background-color: rgba(0, 138, 193, 0.1);
}