/* ---------------------- */
/* ------ Footer -------- */
/* ---------------------- */

footer, 
.editor-styles-wrapper footer {
	margin-block-start: 0;
}

/* Apply Noto Sans to the Site Logo */
.wp-block-site-title a, 
.editor-styles-wrapper a {
    font-size: 20px !important;
    font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
}

/* Kontakt og hjelp */
/* ---------------- */
.kw-footer-upper, 
.editor-styles-wrapper .kw-footer-upper {
	padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.kw-footer-upper-container, 
.editor-styles-wrapper .kw-footer-upper-container {
	display: grid !important;
}

.kw-footer-contact-info, 
.editor-styles-wrapper .kw-footer-contact-info {
	justify-self: center;
}

.kw-footer-map-container, 
.editor-styles-wrapper .kw-footer-map-container {
	display: grid;
	justify-self: center;
	width: 100%;
    max-width: 500px;
	border: solid 1px var(--wp--preset--color--accent-1);
    border-radius: 5px;
}

.kw-footer-map-container iframe, 
.editor-styles-wrapper .kw-footer-map-container iframe {
	width: 100% !important;
	height: 180px !important;
	border-radius: 5px;
}

.kw-footer-emergency-help, 
.editor-styles-wrapper .kw-footer-emergency-help {
	justify-self: center;
	padding: 2rem !important;
}

@media (min-width: 640px) {
	.kw-footer-upper-container, 
	.editor-styles-wrapper .kw-footer-upper-container {
		grid-template-columns: auto 1fr;
	}

	.kw-footer-contact-info, 
	.editor-styles-wrapper .kw-footer-contact-info {
		grid-column: 1;
	}

	.kw-footer-map-container, 
	.editor-styles-wrapper .kw-footer-map-container {
		grid-column: span 2;
	}

	.kw-footer-emergency-container, 
	.editor-styles-wrapper .kw-footer-emergency-container {
		grid-row: 1;
		grid-column: 2;
		justify-self: end;
	}
}


@media (min-width: 1200px) {
	.kw-footer-upper-container, 
	.editor-styles-wrapper .kw-footer-upper-container {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.kw-footer-contact-info, 
	.editor-styles-wrapper .kw-footer-contact-info {
		justify-self: start;
	}

	.kw-footer-map-container, 
	.editor-styles-wrapper .kw-footer-map-container {
		grid-column: 2;
	}

	.kw-footer-emergency-container, 
	.editor-styles-wrapper .kw-footer-emergency-container {
		grid-column: 3;
	}
}


/* Personvernerklæring og branding */
/* ------------------------------- */
.kw-footer-lower {
	height: 170px;
}

.kw-footer-lower p, .kw-footer-lower i, .kw-footer-lower a {
	color: var(--wp--preset--color--accent-8) !important;
}

.kw-footer-lower-link-container {
	gap: 10;
}

.kw-footer-lower-branding-container a {
	display: flex;
	gap: 3px;
}

.kw-footer-lower-branding-container p {
	margin: 0;
}

.kw-footer-lower-link-container, .kw-footer-lower-branding-container {
	justify-content: center;
}

@media (min-width: 477px) {
	.kw-footer-lower {
		height: 170px;
	}
}

@media (min-width: 527px) {
	.kw-footer-lower {
		height: 120px;
	}
	
	.kw-footer-lower-link-container {
		justify-content: space-between;
	}
}

@media (min-width: 1400px) {
	.kw-footer-lower {
		height: auto;
	}
}

/* Knapp: Administrer Nettsiden */
.kw-admin-button {
	position: absolute;
	bottom: 0;
	left: calc(50% - 126px);
}

.kw-admin-button a {
	border-radius: 10px 10px 0 0;
	background-color: var(--wp--preset--color--accent-8);
	color:  var(--wp--preset--color--text-on-primary) !important;
}

.kw-admin-button a:hover {
	border-radius: 20px 20px 0 0;
	background-color: var(--wp--preset--color--contrast);
}

.kw-admin-button a > i {
	margin-right: 0.5rem;
	color:  var(--wp--preset--color--text-on-primary) !important;
}
