/* reset styles*/
.cookie-banner *,
.cookie-preferences * {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	min-width: unset;
	text-align: unset;
	
}

.cookie-banner {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	max-width: 500px;
	background: #2a2a2a;
	color: white;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
	z-index: 9999;
}

.cookie-banner h3,
.home .cookie-banner h3 {
	font-family: "nanum-myeongjo", sans-serif;
	font-size: 1em;
	margin: 0 0 0.75em 0;
	font-weight: 600;
	text-align: left;
}

.cookie-banner p {
	font-family: "europa", sans-serif;
	font-size: 1em;
	margin: 0 0 20px 0;
	color: #ccc;
}

.cookie-banner-buttons {
		display: flex;
		gap: 12px;
		flex-wrap: wrap;
}

.cookie-banner button {
		font-family: "europa", sans-serf;
		padding: 12px 24px;
		border: none;
		border-radius: 6px;
		font-weight: 500;
		cursor: pointer;
		font-size: 14px;
		transition: all 0.2s ease;
}

.cookie-preferences {
	margin: auto;
	width: 100%;
	max-width: 800px;	
	background-color: #333;
	color: #fff;
	padding: 20px;
	border-radius: 21px;
}

.cookie-preferences::backdrop {
	background-color: rgba(0,0,0,0.35);
}

.cookie-banner header,
.cookie-preferences header {
	display: block;
}

.cookie-preferences header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.cookie-preferences h3 {
	font-family: "nanum-myeongjo", sans-serif;
	font-size: 1.25em;
	margin: 0 0 1em 0;
}

.cookie-preferences p {
	font-family: "europa", sans-serif;
	margin: 0 0 1em 0;
	line-height: 1.3;
	color: inherit;
}

.cookie-preferences header button {
	font-size: 1.5em;
	background-color: transparent;
	color: #fff;
	width: auto;	
	min-width: unset;
	line-height: 1;
	cursor: pointer;
}

.cookie-preferences-body a {
	color: rgba(210,233,251);
	text-decoration: underline;
}

.cookie-preferences-body a:hover,
.cookie-preferences-body a:focus {
	color: rgba(210,233,251);
}


.cookie-preferences details[open] summary {
	margin: 0 0 0.5em 0;	
}

.cookie-preferences summary:hover {
	background-color: transparent;
}


.preferences-footer button {
	text-align: center;
}

.cookie-banner footer {
	margin-top: 1em;
}
.cookie-banner footer a {
	font-family: "europa", sans-serif;
	font-size: 1em;
	color: #fff;
	text-decoration: underline;
	margin-left: 7px;
}

.cookie-banner-footer {
		margin-top: 16px;
		padding-top: 16px;
		border-top: 1px solid #444;
		display: flex;
		gap: 20px;
}

.cookie-banner-footer a {
		color: #999;
		text-decoration: none;
		font-size: 12px;
}

.cookie-banner-footer a:hover {
		color: white;
}

/* Preferences Modal */
/*
.preferences-overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0,0,0,0.5);
		z-index: 10001;
		display: none;
}

.preferences-modal {
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background: #2a2a2a;
		color: white;
		width: 90%;
		max-width: 600px;
		max-height: 80vh;
		overflow-y: auto;
		border-radius: 12px;
		box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

*/

.preferences-overlay::backdrop {
	background-color: rgba(0,0,0,0.50);
}

.preferences-overlay {
	margin: auto;
	border-radius: 25px;
}

.preferences-modal {
	background-color: #2a2a2a;
}

.preferences-header {
		padding: 24px 24px 0 24px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid #444;
		margin-bottom: 20px;
}

.preferences-header h2 {
		margin: 0;
		font-size: 20px;
		font-weight: 600;
}

.close-btn {
		background: none;
		border: none;
		color: white;
		font-size: 24px;
		cursor: pointer;
		padding: 0;
		width: 32px;
		height: 32px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 4px;
}

.close-btn:hover {
		background: #444;
}

.preferences-content {
		padding: 0 24px 24px 24px;
}

.preferences-description {
		color: #ccc;
		margin-bottom: 24px;
		font-size: 14px;
}

.cookie-category {
		margin-bottom: 20px;
		background: #333;
		border-radius: 8px;
}

.category-header {
		display: flex;
		gap: 20px;
		justify-content: space-between;
		align-items: flex-start;
		margin-bottom: 8px;
}

.category-title {
		font-family: "nanum-myeongjo", sans-serif;
		font-weight: 600;
		font-size: 1em;
		color: inherit;
}

.category-status {
		font-size: 0.625em;
		color: #fff;
		background: #444;
		padding: 4px 8px;
		border-radius: 4px;
}

.category-services {
		font-size: 12px;
		color: #4CAF50;
		margin-bottom: 8px;
}

.category-description {
		color: #ccc;
		font-size: 13px;
		margin-bottom: 12px;
}

/* Toggle Switch */

.category-switch {
	background-color: #666;
	flex: 40px 0 0;
	width: 40px;
	height: 25px;
	border-radius: 25px;	
	position: relative;
	transition: background-color 250ms linear;
}

.category-switch-knob {
	width: 20px;
	height: 20px;
	position: absolute;
	top: 50%;
	left: 2px;
	transform: translateY(-50%);
	background-color: #fff;
	pointer-events: none;
	border-radius: 50%;
	transition: left 250ms linear;
}

.category-switch.active {
	background-color: #0E3B65;
}

.category-switch.active .category-switch-knob {

	left: 18px;	
}

.toggle-switch {
		position: relative;
		width: 44px;
		height: 24px;
		background: #666;
		border-radius: 12px;
		cursor: pointer;
		transition: background 0.3s ease;
}

.toggle-switch.active {
		background: #4CAF50;
}

.toggle-switch.disabled {
		background: #444;
		cursor: not-allowed;
}

.toggle-knob {
		position: absolute;
		top: 2px;
		left: 2px;
		width: 20px;
		height: 20px;
		background: white;
		border-radius: 50%;
		transition: transform 0.3s ease;
		pointer-events: none;
}

.toggle-switch.active .toggle-knob {
		transform: translateX(20px);
}

.preferences-footer {
		padding: 20px 24px;
		border-top: 1px solid #444;
		display: flex;
		justify-content: space-between;
		gap: 12px;
}

.preferences-footer button {
		padding: 12px 24px;
		border: none;
		border-radius: 6px;
		font-weight: 500;
		cursor: pointer;
		font-size: 14px;
		flex: 1;
		transition: all 0.2s ease;
}

.btn-save {
		background: #4CAF50;
		color: white;
}

.btn-save:hover {
		background: #45a049;
}

.footer-cookie-footer {
	font-family: "europa", sans-serif;
	font-size: 1em;
	font-weight: 300;
	margin: 0 20px;
}

.cookie-preference-footer-button {
	display: inline-block;
	min-width: unset;
	background-color: transparent;
	color: black;
	margin: 0;
	margin-right: 20px;
	padding: 0;
	border-radius: unset;
	box-shadow: unset;
	font-size: inherit;
	font-weight: inherit;
}

.cookie-preference-footer-button:hover,
.cookie-preference-footer-button:active,
.cookie-preference-footer-button:focus {
	color: rgba(0,0,0,0.85);
	background-color: unset;
	box-shadow: unset;
}

.footer-cookie-footer a {
	color: #000;
	font-size: inherit;
	font-weight: inherit;;
}

.footer-cookie-footer a:hover,
.footer-cookie-footer a:focus {
	color: #000;
}

@media screen and (max-width: 800px) {
	.cookie-banner-buttons-container  {
		
	}
	.preferences-footer {
		flex-direction: column;
	}
	.footer-cookie-footer {
		text-align: center;
		margin: 0 20px 20px 20px; 
	}
}

@media screen and (max-width: 508px) {
	.cookie-banner-buttons-container button {
		display: block;
		width: 100%;
		margin: 0 0 0.625em 0;
		text-align: center;
	}
}
