/*----------------------------------------------
# Font Imports
----------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kadwa:wght@400&display=swap');

/*----------------------------------------------
# Global Styles and Modal Handling
----------------------------------------------*/

/* Prevents scrolling and touch interactions when the modal is open */
html.modal-open {
	overflow: hidden;
	touch-action: none;
	overscroll-behavior: none;
}

/* Outer container for the modal with a semi-transparent background */
.wpnordic-cookie-care-modal-outer {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	align-items: center;
	justify-content: center;
	background: rgb(0 0 0 / 0.4);
	display: none;
	z-index: 99999; /* Ensures the modal is on top of all other elements */
}

/* Inner modal container styling */
.wpnordic-cookie-care-modal {
	background-color: #ffffff;
	color: #000000;
	max-width: 700px;
	width: 45%;
	border: 0;
	border-radius: 10px;
	box-shadow: 0px 3px 60px 0px rgba(0, 0, 0, 0.4); /* Drop shadow */
	box-sizing: border-box;
	padding: 0;
	overflow-y: hidden;
	padding-inline: 5px;

	height: 100%;
	max-height: 530px;
}

/*----------------------------------------------
# Reopen Button Styling
----------------------------------------------*/
.wpnordic-cookie-care-reopen-button{
	width: 35px;
	height: 35px;
	position: fixed;
	bottom: 1rem;
	border-radius: 50%;
	border: 2px solid transparent;
	background: #dddddd;
	cursor: pointer;
	z-index: 10000;
	font-family: 'Open Sans';
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 85%;

}

/* Styling for the reopen button within an iframe message */
.consent-iframe-message-content .wpnordic-cookie-care-reopen-button{
	height: unset;
	width: unset;
	position: relative;
	bottom: unset;
	border-radius: 4px;
	background-position: unset;
	background-repeat: unset;
	background-size: unset;
	display: block;
	margin-inline: auto;
	margin-top: 15px;
	background-color: #313131;
	color: #fff;
	padding: 8px 12px;
	font-size: 15px;
}

/* Focus and hover states for the reopen button */
.wpnordic-cookie-care-reopen-button:hover {
	opacity: 0.7;
	border: 2px solid transparent;
}

.wpnordic-cookie-care-reopen-button:active {
	border: 2px solid transparent;
}

.wpnordic-cookie-care-reopen-button:focus {
	outline: none;
	outline-offset: 0;
}

.wpnordic-cookie-care-reopen-button:focus-visible{
	border: 2px solid #3A57F8;
}

.wpnordic-cookie-care-reopen-button img{
	display: block;
	width: 100%;
	height: auto;
}

.wpnordic-cookie-care-reopen-button.left{
	left: 1rem;
}

.wpnordic-cookie-care-reopen-button.right{
	right: 1rem;
}

/*----------------------------------------------
# Scrollbar Styling (Chromium Browsers)
----------------------------------------------*/

/* Custom scrollbar styling for supported browsers */
.wpnordic-cookie-care-content::-webkit-scrollbar,
.wpnordic-cookie-care-navigation ul::-webkit-scrollbar,
.wpnordic-cookie-care-form::-webkit-scrollbar {
	width: 14px;
	border-radius: 4px;
}

.wpnordic-cookie-care-content::-webkit-scrollbar-thumb,
.wpnordic-cookie-care-navigation ul::-webkit-scrollbar-thumb,
.wpnordic-cookie-care-form::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.25);
	border-radius: 12px;
	border: 4px solid #ffffff;
}

.wpnordic-cookie-care-content::-webkit-scrollbar-track,
.wpnordic-cookie-care-navigation ul::-webkit-scrollbar-track,
.wpnordic-cookie-care-form::-webkit-scrollbar-track {
	border-radius: 4px;
}

/*----------------------------------------------
# Text Styling
----------------------------------------------*/

.wpnordic-cookie-care-bold-text {
	font-weight: bold;
}

/* Basic text styling for modal content */
.wpnordic-cookie-care-content p {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: clamp(10px, calc(0.6rem + 0.6vw), 15px);
	font-size: 15px;
	line-height: 20px;
	margin: 0;
	text-transform: none;
}

.wpnordic-cookie-care-content .wpnordic-cookie-care-consent-view p {
	line-height: 22px;
	text-transform: none;
	background-color: transparent;
}

/* Link styling in the modal content */
.wpnordic-cookie-care-content a {
	color: #000000;
	text-decoration: underline;
	background-color: transparent;
}

.wpnordic-cookie-care-content a:visited {
	color: #002374;
	text-decoration: underline;
	background-color: transparent;
}

.wpnordic-cookie-care-content a:hover {
	color: #000000;
	text-decoration: underline;
	background-color: transparent;
}

.wpnordic-cookie-care-content a:active {
	color: #002374;
	text-decoration: underline;
	background-color: transparent;
}

/*----------------------------------------------
# Modal Open Link Styling
----------------------------------------------*/
.wpnordic-cookie-care-modal-link {
	display: inline-block;
	text-decoration: none;
}

/*----------------------------------------------
# Modal header and footer Styling
----------------------------------------------*/

/* Container for the modal header navigation */
.wpnordic-cookie-care-headerNavContainer {
	width: 100%;
	position: relative;
}

/* Header styling */
.wpnordic-cookie-care-headerNavContainer header.wpnordic-cookie-care-form-header {
	display: flex !important;
	flex-direction: row;
	justify-content: flex-end;
	padding-bottom: 20px;
	width: 100%;
	box-shadow: none;
	height: unset;
	z-index: unset;
	position: relative !important;
	top: unset;
	border-bottom: none;
	background-color: transparent !important;
}

/* Footer is hidden by default */
.wpnordic-cookie-care-footer {
	display: none;
}

.wpnordic-cookie-care-logo-text {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: flex-start;
	height: 100%;
}

.wpnordic-cookie-care-logo-text.right {
	justify-content: flex-end;
}
.wpnordic-cookie-care-logo-text.space-between {
	justify-content: space-between;
}

/* the customer logo container for the modal */
.wpnordic-cookie-care-form-header figure.wpnordic-customer-image-container {
	width: 100%;
	max-width: 115px;
	margin: 0;
	padding: 0;
	display: block;
}

/* the logo container for the modal */
figure.wpnordic-cookie-care-image-container {
	/* Firefox cannot handle svg images with relative size */
	width: 100%;
	max-width: 27px;
	margin: 0;
	padding: 0;
}

.wpnordic-cookie-care-form-header figure.wpnordic-customer-image-container img,
figure.wpnordic-cookie-care-image-container img {
	width: 100%;
	display: block;
	height: 100%;
	height: 27px;
}

.wpnordic-cookie-care-form-header figure.wpnordic-customer-image-container img {
	object-fit: contain;
	object-position: left;
}

/*----------------------------------------------
# Form Element Styling
----------------------------------------------*/

/* removing the focus-visible style from the dialog element it self. */
.wpnordic-cookie-care-modal:focus-visible {
	outline: unset;
}

/* Styling for the form within the modal */
.wpnordic-cookie-care-form {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	padding-left: 25px;
	padding-block: 30px;
	padding-right: 15px;
	height: 100%;
	overflow-y: auto;

	/* firefox scrollbar styling */
	scrollbar-color: rgba(0, 0, 0, 0.25) #ffffff;
	scrollbar-width: thin;
}

.wpnordic-cookie-care-form:focus-visible {
	outline: unset;
}

/*----------------------------------------------
# Navigation in Modal
----------------------------------------------*/
.wpnordic-cookie-care-navigation {
	width: 100%;
	box-sizing: border-box;
	border-bottom: 1px solid #e3e3e3;
}

/* Navigation list styling */
.wpnordic-cookie-care-navigation ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 20px;
	width: 100%;
	list-style-type: none;
	margin: 0;
	padding: 0;
	padding-bottom: 20px;
	box-sizing: border-box;
	justify-items: center;
	margin-inline: auto;
}

.wpnordic-cookie-care-navigation ul.remove-border {
	border-bottom: 0;
}

/* Navigation list item styling */
.wpnordic-cookie-care-navigation ul li {
	width: 100%;
	background-color: #f2f2f2;
	color: #000000;
	display: block;
	border-radius: 6px;
	text-transform: none;
	font-size: 15px;
	font-family: 'Open Sans', sans-serif;
	text-align: center;
	box-sizing: border-box;
	font-weight: 600;
	letter-spacing: 0rem;
	line-height: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	user-select: none;
	height: 39px;
	padding: 0 !important;
}

.wpnordic-cookie-care-navigation ul li:after, .wpnordic-cookie-care-navigation ul li:before{
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
}

/* prevent default styling when an element has focus */
.wpnordic-cookie-care-navigation ul li:focus-visible,
.wpnordic-cookie-care-navigation ul li.active:focus-visible {
	outline-offset: unset;
	padding: 8px 20px;
	margin: 0;
	border: 0;
}

/* Active navigation item styling */
.wpnordic-cookie-care-navigation ul li.active {
	background-color: #313131;
	color: #ffffff;
}

/*----------------------------------------------
# Handle Views (Switching Between Sections)
----------------------------------------------*/

/* Main content container styling */
.wpnordic-cookie-care-outer-content {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.wpnordic-cookie-care-content {
	height: 100%;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	overflow-y: scroll;
	padding-block: 15px;
	max-height: 178px;
	width: 100%;
	position: relative;
	box-sizing: border-box;

	/* firefox scrollbar styling */
	scrollbar-color: rgba(0, 0, 0, 0.25) #ffffff;
	scrollbar-width: thin;
}

.wpnordic-cookie-care-content.remove-spacing {
	padding: 0;
}

/* Sections are hidden by default, only active sections are displayed */
.wpnordic-cookie-care-consent-view,
.wpnordic-cookie-care-details-view,
.wpnordic-cookie-care-about-view {
	display: none;
}

/* .wpnordic-cookie-care-consent-view.active, */
.wpnordic-cookie-care-details-view.active,
.wpnordic-cookie-care-about-view.active,
.wpnordic-cookie-care-consent-view.active {
	display: flex;
	flex-direction: column;
	width: 90%;
}

p.wpnordic-cookie-care-paragraph {
	margin-bottom: 0;
}

.wpnordic-cookie-care-text {
	display: flex;
	flex-direction: column;
	row-gap: 16px;
	white-space: normal;
}

p.wpnordic-cookie-care-paragraph.cookie-care-google-link {
	margin-top: 10px;
	text-underline-offset: 2px;
}

p.wpnordic-cookie-care-paragraph.cookie-care-google-link a {
	color: #000000;
	text-decoration: none;
	display: flex;
	flex-direction: row;
	column-gap: 10px;
	align-items: center;
	width: fit-content;
}

p.wpnordic-cookie-care-paragraph.cookie-care-google-link a:visited {
	text-decoration: underline;
	color: #002374;
}
p.wpnordic-cookie-care-paragraph.cookie-care-google-link a:hover,
p.wpnordic-cookie-care-paragraph.cookie-care-google-link a:active {
	text-decoration: underline;
}

p.wpnordic-cookie-care-paragraph.cookie-care-google-link a img {
	width: 100%;
	max-width: 15px;
	height: 15px;
	display: block;
}


.wpnordic-cookie-care-details-view .wpnordic-cookie-care-details-list,
.wpnordic-cookie-care-details-view .wpnordic-cookie-care-details-list li ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.wpnordic-cookie-care-details-view
	.wpnordic-cookie-care-details-list
	li:not(.wpnordic-cookie-care-details-view .wpnordic-cookie-care-details-list li ul li) {
	margin: 0;
	padding: 15px;

	border-bottom: 2px solid black;
}

span.wpnordic-cookie-care-cookie-name {
	font-size: 1.5rem;
	font-weight: bold;
}

.wpnordic-cookie-care-cookie-seperator {
	margin: 0 auto;
	width: 100%;
	border-width: 0;
	border-style: none;
	border-top: 1px solid #f1f1f1;
	position: relative;
	height: 0;
}

.wpnordic-cookie-care-details-container {
	display: flex;
	flex-direction: column;
	row-gap: 12px;
	padding-right: 10px;
	font-size: clamp(10px, calc(0.6rem + 0.6vw), 14px);
	width: 100%;
	position: relative;
}

.wpnordic-cookie-care-details-content summary {
	user-select: none;
	cursor: pointer;
	font-weight: bold;
	font-family: 'Open Sans';
	line-height: 1.5;
	list-style-type: none;
	position: relative;
	cursor: default;
}

.wpnordic-cookie-care-details-content summary span {
	cursor: default;
	font-weight: normal;
	font-family: 'Open Sans';
	line-height: 20px;
	font-size: 15px;
	text-transform: none;
}

.wpnordic-cookie-care-details-content summary span.wpnordic-cookie-care-about {
	display: block;
	margin-top: 12px;
	padding-left: 30px;
}

.wpnordic-cookie-care-details-content summary::-webkit-details-marker,
.wpnordic-cookie-care-details-content summary::marker {
	display: none !important;
}

div.wpnordic-cookie-care-title-counter-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
}

div.wpnordic-cookie-care-title-counter-container > span {
	margin-left: 15px;
	font-weight: bold;
	display: flex;
	align-items: center;
}

div.wpnordic-cookie-care-cookie-counter {
	display: flex;
	background-color: transparent;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin-left: 10px;
	color: #222222;
	font-weight: 600;
	font-size: 15px;
	line-height: 20px;
	opacity: 0.42;
}

.wpnordic-cookie-care-toggle-view {
	width: 15px;
	height: 20px;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.wpnordic-cookie-care-toggle-view img {
	display: block;
	width: 100%;
	height: 100%;
	transition: transform 0.3s ease-out;
}

.wpnordic-cookie-care-details-content[open] summary .wpnordic-cookie-care-toggle-view img {
	transform: rotate(180deg);
}

ul.wpnordic-cookie-care-cookie-details {
	list-style-type: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 25px 0 0;
	padding-left: 29px;
}

.wpnordic-cookie-care-cookie-details .wpnordic-cookie-care-cookie-content p {
	word-wrap: break-word;
}

ul.wpnordic-cookie-care-cookie-details li p {
	margin-bottom: 0;
}

ul.wpnordic-cookie-care-cookie-details li .wpnordic-cookie-care-cookie-content {
	padding: 12px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: auto;
	background-color: transparent;
	border: 1px solid #f1f1f1;
	gap: 12px;
}

.wpnordic-cookie-care-cookie-content-name {
	grid-row: 1;
	grid-column: 1/5;
}

.wpnordic-cookie-care-cookie-content-description {
	grid-row: 2;
	grid-column: 1/5;
}

.wpnordic-cookie-care-cookie-seperator {
	grid-column: 1/5;
	grid-row: 3;
}

.wpnordic-cookie-care-cookie-content-domain + .wpnordic-cookie-care-cookie-seperator {
	grid-row: 5;
	grid-column: 1/5;
}
.wpnordic-cookie-care-cookie-content-domain {
	grid-row: 4;
	grid-column: 2/5;
	justify-self: flex-end;
}

.wpnordic-cookie-care-cookie-content-retention {
	grid-row: 4;
	grid-column: 1/3;
}

.wpnordic-cookie-care-cookie-content-privacy {
	grid-row: 6;
	grid-column: 1/5;
}

/* #region No description */
ul.wpnordic-cookie-care-cookie-details
	li
	.wpnordic-cookie-care-cookie-content
	.wpnordic-cookie-care-cookie-seperator.wpnordic-cookie-care-no-description {
	grid-row: 2;
}

.wpnordic-cookie-care-cookie-content-domain.wpnordic-cookie-care-no-description {
	grid-row: 3;
}
.wpnordic-cookie-care-cookie-content-retention.wpnordic-cookie-care-no-description {
	grid-row: 3;
}

.wpnordic-cookie-care-cookie-content-domain.wpnordic-cookie-care-no-description
	+ .wpnordic-cookie-care-cookie-seperator {
	grid-row: 4;
}

.wpnordic-cookie-care-cookie-content-privacy.wpnordic-cookie-care-no-description {
	grid-row: 5;
}
/* #endregion */

.wpnordic-cookie-care-linear-background {
	height: 100%;
	background: -webkit-linear-gradient(
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 0) 70%,
			rgb(255, 255, 255) 100%
		)
		0% 0% no-repeat padding-box padding-box;
	background: linear-gradient(
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 0) 70%,
			rgb(255, 255, 255) 100%
		)
		0% 0% no-repeat padding-box padding-box;
	position: absolute;
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;
	width: 90%;
	padding-left: 29px;
	z-index: 99999;
	pointer-events: none;
}

.wpnordic-cookie-care-linear-background.hide {
	background: transparent;
}

/*===============================================
 # Buttons
===============================================*/
.wpnordic-cookie-care-form button.wpnordic-cookie-care-consent-button {
	margin: 0;
	padding: 12px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-radius: 6px;
	font-size: clamp(14px, calc(0.6vw + 0.6rem), 16px);
	border: 0;
	font-family: 'Open Sans';
	line-height: 22px;
	font-weight: 600;
	border-radius: 4px;
	height: 53px;
	width: 225px;
}

form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
	button#wpnordic-cookie-care-consent-all-button.wpnordic-cookie-care-consent-button.all {
	background-color: #3a57f8;
	color: #ffffff;
	grid-column: 3/4;
}

.wpnordic-cookie-care-sub-button-group {
	grid-column: 2/3;
}

.wpnordic-cookie-care-form button.wpnordic-cookie-care-consent-button.selected {
	display: none;
}

form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
	button#wpnordic-cookie-care-consent-button.wpnordic-cookie-care-consent-button.necessary,
form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
	button#wpnordic-cookie-care-consent-selected-button.wpnordic-cookie-care-consent-button.selected {
	background-color: #c6d6ff;
	color: #0d31fc;
}

form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
	button#wpnordic-cookie-care-consent-all-button.wpnordic-cookie-care-consent-button.all:focus,
form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
	button#wpnordic-cookie-care-consent-all-button.wpnordic-cookie-care-consent-button.all:hover {
	background-color: #778cff;
}

form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
	button#wpnordic-cookie-care-consent-button.wpnordic-cookie-care-consent-button.necessary:focus,
form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
	button#wpnordic-cookie-care-consent-button.wpnordic-cookie-care-consent-button.necessary:hover,
form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
	button#wpnordic-cookie-care-consent-selected-button.wpnordic-cookie-care-consent-button.selected:focus,
form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
	button#wpnordic-cookie-care-consent-selected-button.wpnordic-cookie-care-consent-button.selected:hover {
	background-color: #d3d8e8;
}

.wpnordic-cookie-care-input-group {
	width: 100%;
}

.wpnordic-cookie-care-input-group.remove-spacing {
	padding: 0;
}

.wpnordic-cookie-care-toggle-group,
.wpnordic-cookie-care-button-group {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 15px;
	margin: 0;
	padding: 0;
	width: 100%;
}

.wpnordic-cookie-care-button-group {
	justify-content: flex-end;
	flex-direction: row;
	align-items: stretch;
}

/*===============================================
 # Toggles                          
===============================================*/
.wpnordic-cookie-care-toggle-group {
	border-top: 1px solid rgba(112, 112, 112, 0.3);
	border-bottom: 1px solid rgba(112, 112, 112, 0.3);
	padding-top: 16px;
	padding-bottom: 16px;
	align-items: center;
	grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
	row-gap: 25px;
	column-gap: 10px;
	margin-bottom: 26px;
}

/* the container of the toggle/slider */
.wpnordic-cookie-care-toggle {
	display: flex;
	flex-direction: column;
	width: 100%;
	justify-content: center;
	align-items: center;
}

.wpnordic-cookie-care-toggle label {
	margin-bottom: 12px;
	text-align: center;
	font-size: clamp(10px, calc(0.6rem + 0.6vw), 15px);
	font-weight: 600;
	line-height: 20px;
	font-family: 'Open Sans';
	text-transform: none;
}

.wpnordic-cookie-care-toggle:first-of-type {
	grid-row: 1;
	grid-column: 1/2;
}
.wpnordic-cookie-care-toggle:nth-child(3) {
	grid-row: 1;
	grid-column: 3/4;
}
.wpnordic-cookie-care-toggle:nth-child(5) {
	grid-row: 1;
	grid-column: 5/6;
}
.wpnordic-cookie-care-toggle:last-of-type {
	grid-row: 1;
	grid-column: 7/8;
}

.wpnordic-cookie-care-seperator {
	width: 1px;
	height: 100%;
	background-color: #707070;
	opacity: 0.3;
}

.wpnordic-cookie-care-toggle-group .wpnordic-cookie-care-seperator.wpnordic-cookie-care-first {
	grid-row: 1;
	grid-column: 2/3;
}
.wpnordic-cookie-care-toggle-group .wpnordic-cookie-care-seperator.wpnordic-cookie-care-second {
	grid-row: 1;
	grid-column: 4/5;
}

.wpnordic-cookie-care-toggle-group .wpnordic-cookie-care-seperator.wpnordic-cookie-care-third {
	grid-row: 1;
	grid-column: 6/7;
}

/* the slider */
.wpnordic-cookie-care-slider-wrapper {
	display: flex;
	height: 34px;
	width: 65px;
	position: relative;
}

.wpnordic-cookie-care-slider {
	position: absolute;
	pointer-events: none;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #313131;
	transition: 0.4s;
	-webkit-transition: 0.4s;
	border-radius: 6px;
}

.wpnordic-cookie-care-slider::before {
	position: absolute;
	content: '';
	height: 25px;
	width: 26px;
	left: 4px;
	top: 50%;
	background-color: #ffffff;
	-webkit-transition: 0.4s;
	transition: 0.4s;
	border-radius: 3px;

	-webkit-transform: translate(0px, -50%);
	-ms-transform: translate(0px, -50%);
	transform: translate(0px, -50%);
}

/* the default checkbox */
input[type='checkbox'].wpnordic-cookie-care-cookie-preference {
	height: 100%;
	margin-right: 0;
	width: 100%;
	opacity: 0;
	cursor: pointer;
}

/* change slider background when slider is active */
/* in firefox i could not get the :checked pseudo class to work, so using js to append a new class when as checkbox is checked */
input:checked + .wpnordic-cookie-care-slider {
	/* background-color: #313131 ; */
	background-color: #3a57f8;
}

input.wpnordic-cookie-care-cookie-preference:checked + .wpnordic-cookie-care-slider::before{
	left: 12px;
	-webkit-transform: translate(0px, -50%);
	-ms-transform: translate(0px, -50%);
	transform: translate(0px, -50%);
}

input#wpnordic-cookie-care-necessary[data-target='necessary']:disabled
	+ .wpnordic-cookie-care-slider {
	background-color: #d6d6d6;
}

input#wpnordic-cookie-care-necessary[data-target='necessary']:disabled {
	cursor: not-allowed;
	opacity: 0;
}

input.wpnordic-cookie-care-cookie-preference:checked + .wpnordic-cookie-care-slider::before,
input.wpnordic-cookie-care-consent-mode-toggle:checked + .wpnordic-cookie-care-slider::before,
input.wpnordic-cookie-care-cookie-preference[data-target='necessary'] + .wpnordic-cookie-care-slider::before{
	-webkit-transform: translate(23px, -50%);
	-ms-transform: translate(23px, -50%);
	transform: translate(23px, -50%);
}

/*===============================================
 # IFRAME        
===============================================*/
.consent-iframe-placeholder{
	display: none;
	max-width: var(--wp--style--global--content-size);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center center;
}

body .consent-iframe-placeholder + iframe, body .consent-iframe-message + iframe{
	display: block;
}

.consent-iframe-message{
	background-color: #313131;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}

.consent-iframe-message-content{
	color: #000;
	background-color: #fff;
	padding: 20px;
	border-radius: 6px;
	width:85%;
	margin-inline: auto;
	text-align: center;
	font-family: 'Open Sans';
	font-size: 16px;
}

/*----------------------------------------------
# Media Queries for Responsive Design
----------------------------------------------*/
@media only screen and (max-width: 1399px) {
	.wpnordic-cookie-care-modal {
		width: 66%;
	}
}

@media only screen and (max-width: 992px) {
	.wpnordic-cookie-care-modal {
		width: 75%;
	}
}

@media only screen and (max-width: 768px) {

	/* Modal */
	.wpnordic-cookie-care-modal {
		width: 95%;
	}

	/* Toggles */
	div.wpnordic-cookie-care-toggle:not(:first-of-type) {
		border: 0;
	}

	/* BUTTONS */
	.wpnordic-cookie-care-button-group {
		row-gap: 25px;
		justify-content: center;
		box-sizing: border-box;
	}

	.wpnordic-cookie-care-form button {
		width: 100%;
	}
}

@media only screen and (max-height: 599px) {
	.wpnordic-cookie-care-modal {
		height: 98vh;
	}

	.wpnordic-cookie-care-navigation ul li {
		height: 35px;
	}

	.wpnordic-cookie-care-slider-wrapper {
		height: 26px;
	}
	.wpnordic-cookie-care-slider::before {
		height: 20px;
		bottom: 3px;
	}

	.wpnordic-cookie-care-toggle-group {
		padding-block: 15px;
	}

	.wpnordic-cookie-care-form button {
		height: 45px;
		padding: 10px 20px;
	}
}

@media screen and (max-width: 545px) {
	.wpnordic-cookie-care-button-group {
		grid-template-columns: repeat(2, 1fr);
	}

	.wpnordic-cookie-care-form button.wpnordic-cookie-care-consent-button {
		width: 100%;
	}

	.wpnordic-cookie-care-sub-button-group {
		grid-column: 1/2;
	}

	form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
		button#wpnordic-cookie-care-consent-all-button.wpnordic-cookie-care-consent-button.all {
		grid-column: 2/3;
	}

	/*---------------------------------------------
	 # Cookie Details view (frontend)          
	---------------------------------------------*/
	
	.wpnordic-cookie-care-cookie-content-domain {
		grid-row: 5;
		grid-column: 1/5;
		justify-self: flex-start;
	}

	.wpnordic-cookie-care-cookie-content-domain.wpnordic-cookie-care-no-description {
		grid-row: 4;
	}

	.wpnordic-cookie-care-cookie-content-retention {
		grid-column: 1/5;
	}

	header.wpnordic-cookie-care-form-header .wpnordic-cookie-care-image-container {
		display: none;
	}

	.wpnordic-cookie-care-footer {
		display: flex;
		justify-content: center;
		width: 100%;
		box-shadow: none;
		background-color: transparent;
		border-radius: 0;
		margin-top: 17px;
	}

	.wpnordic-cookie-care-footer .wpnordic-cookie-care-image-container {
		max-width: 200px;
	}

	.wpnordic-cookie-care-form {
		padding-bottom: 25px;
		padding-left: 20px;
		padding-top: 25px;
		padding-right: 5px;
	}
}

@media only screen and (max-width: 420px) {
	
	/*---------------------------------------------
	 # Modal           
	---------------------------------------------*/
	body.modal-open .wpnordic-cookie-care-modal {
		height: 100%;
		align-items: flex-start;
	}

	.wpnordic-cookie-care-form {
		justify-content: flex-start;
		height: fit-content;
		height: 100%;
	}

	.wpnordic-cookie-care-modal {
		height: 95%;
		max-height: 700px;
	}

	.wpnordic-cookie-care-details-content summary span,
	.wpnordic-cookie-care-content p {
		font-size: 14px;
	}

	
	/*---------------------------------------------
	 # Navigation           
	---------------------------------------------*/
	.wpnordic-cookie-care-navigation ul li {
		font-size: 14px;
	}

	.wpnordic-cookie-care-navigation {
		max-width: calc(100% - 20px);
	}

	.wpnordic-cookie-care-navigation ul {
		column-gap: 0;
		padding-bottom: 8px;
		width: 100%;
		margin-inline: 0;
		column-gap: 0px;
	}

	.wpnordic-cookie-care-navigation ul li {
		background-color: transparent;
		color: #313131;
		border-radius: 0;
		width: 100%;
		text-align: left;
		justify-content: flex-start;
		justify-self: center;
	}

	.wpnordic-cookie-care-navigation ul li.active {
		background-color: transparent;
		color: #313131;
		position: relative;
	}

	.wpnordic-cookie-care-navigation ul li.active::after {
		content: '';
		position: absolute;
		left: 50%;
		bottom: -9px;
		/* transform: translateX(-50%) ; */
		left: 0;
		width: 100%;
		height: 2px;
		background-color: #313131;
	}

	
	/*---------------------------------------------
	 # TOGGLES          
	---------------------------------------------*/
	.wpnordic-cookie-care-toggle-group {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: auto;
		margin-bottom: 15px;
		row-gap: 15px;
		column-gap: 15px;
	}

	.wpnordic-cookie-care-toggle-group .wpnordic-cookie-care-seperator.wpnordic-cookie-care-first,
	.wpnordic-cookie-care-toggle-group .wpnordic-cookie-care-seperator.wpnordic-cookie-care-second,
	.wpnordic-cookie-care-toggle-group .wpnordic-cookie-care-seperator.wpnordic-cookie-care-third {
		display: none;
	}

	.wpnordic-cookie-care-toggle:first-of-type {
		grid-row: 1;
		grid-column: 1/2;
	}

	.wpnordic-cookie-care-toggle:nth-child(3) {
		grid-row: 2;
		grid-column: 1/2;
	}

	.wpnordic-cookie-care-toggle:nth-child(5) {
		grid-row: 1;
		grid-column: 2/3;
	}

	.wpnordic-cookie-care-toggle:last-of-type {
		grid-row: 2;
		grid-column: 2/3;
	}

	.wpnordic-cookie-care-toggle {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.wpnordic-cookie-care-toggle label {
		margin-bottom: 0;
		font-size: 14px;
		font-weight: 600;
	}

	.wpnordic-cookie-care-slider-wrapper {
		width: 50px;
		height: 26px;
	}

	.wpnordic-cookie-care-slider::before {
		height: 20px;
		width: 20px;
		left: 5px;
	}

	input.wpnordic-cookie-care-cookie-preference:checked + .wpnordic-cookie-care-slider::before,
	input.wpnordic-cookie-care-cookie-preference[data-target='necessary']
		+ .wpnordic-cookie-care-slider::before {
		-webkit-transform: translate(14px, -50%);
		-ms-transform: translate(14px, -50%);
		transform: translate(14px, -50%);
	}

	/*---------------------------------------------
	 # BUTTONS          
	---------------------------------------------*/
	.wpnordic-cookie-care-button-group {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		row-gap: 8px;
	}
	.wpnordic-cookie-care-sub-button-group {
		grid-row: 1;
		grid-column: 1;
	}

	form#wpnordic-cookie-care-form.wpnordic-cookie-care-form
		button#wpnordic-cookie-care-consent-all-button.wpnordic-cookie-care-consent-button.all {
		grid-row: 2;
		grid-column: 1;
	}

	/* .wpnordic-cookie-care-navigation,
	.wpnordic-cookie-care-navigation ul {
		max-width: 400px ;
	} */

	.wpnordic-cookie-care-navigation ul li {
		justify-content: center;
		height: 35px;
	}

	.wpnordic-cookie-care-content {
		max-height: 100%;
	}

	
	/*---------------------------------------------
	 # HEADER         
	---------------------------------------------*/
	header.wpnordic-cookie-care-form-header .wpnordic-cookie-care-image-container {
		display: none;
	}

	.wpnordic-cookie-care-footer {
		display: flex;
		justify-content: center;
		width: 100%;
		box-shadow: none;
		background-color: transparent;
		border-radius: 0;
		margin-top: 17px;
	}
	.wpnordic-cookie-care-footer .wpnordic-cookie-care-image-container {
		max-width: 200px;
	}

	
	/*---------------------------------------------
	 # VIEWS         
	---------------------------------------------*/
	
	.wpnordic-cookie-care-details-view.active,
	.wpnordic-cookie-care-about-view.active,
	.wpnordic-cookie-care-consent-view.active {
		width: 100%;
	}

	.wpnordic-cookie-care-linear-background {
		width: 100%;
	}
}

/* Fix for styling in landscape mode */
@media only screen and (max-height: 360px) {
	.wpnordic-cookie-care-form {
		padding-block: 10px;
	}
}
