/*
 * Cookie banner, settings dialog, map placeholder, consent checkbox in forms,
 * footer policy links and the text page used by the policies.
 * Colours and type follow css/style.css (Indigo #264796, Roboto / Manrope).
 */

/* ---------- Cookie banner ---------- */

.rc-consent [hidden] {
	display: none !important;
}

.rc-consent__bar {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 1045;
	max-width: 1120px;
	margin: 0 auto;
	background: #fff;
	border-top: 4px solid #264796;
	box-shadow: 0 8px 32px rgba(7, 32, 92, 0.18);
}

/* Keep the end of the page reachable above the banner. */
html.rc-consent-pending body {
	padding-bottom: var(--rc-bar-h, 0px);
}

/* The catalog filter panel on mobile is full screen: do not cover its buttons. */
body:has(.menu--visible) .rc-consent__bar {
	display: none;
}

.rc-consent__bar-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 20px 24px;
}

.rc-consent__text {
	flex: 1 1 auto;
	margin: 0;
	color: #353535;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	line-height: 140%;
}

.rc-consent__text a,
.rc-consent__more a,
.rc-map-placeholder__more {
	color: #264796;
	text-decoration: underline;
}

.rc-consent__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.rc-consent__btn {
	min-height: 44px;
	padding: 12px 20px;
	border: 1px solid #264796;
	border-radius: 0;
	background: #fff;
	color: #264796;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
}

.rc-consent__btn--primary {
	background: #264796;
	color: #fff;
}

.rc-consent__btn--primary:hover {
	background: #07205C;
	border-color: #07205C;
}

.rc-consent__btn--outline:hover {
	background: #F5F5F5;
}

.rc-consent__btn--link {
	min-height: 44px;
	padding: 12px 4px;
	border-color: transparent;
	background: transparent;
	text-decoration: underline;
	text-transform: none;
}

.rc-consent__btn:focus-visible,
.rc-consent__close:focus-visible,
.rc-legal-links button:focus-visible,
.rc-legal-links a:focus-visible,
.rc-consent__dialog:focus-visible {
	outline: 2px solid #008DD2;
	outline-offset: 2px;
}

/* ---------- Settings dialog ---------- */

.rc-consent__modal {
	position: fixed;
	inset: 0;
	z-index: 1060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.rc-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 32, 92, 0.55);
}

.rc-consent__dialog {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 40px;
	background: #fff;
	outline: none;
}

.rc-consent__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l12 12M14 2L2 14' stroke='%23264796' stroke-width='1.6'/%3E%3C/svg%3E") center / 16px no-repeat;
	cursor: pointer;
}

.rc-consent__title {
	margin: 0 0 16px;
	color: #264796;
	font-family: Manrope, sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 120%;
	text-transform: uppercase;
}

.rc-consent__lead,
.rc-consent__more {
	margin: 0 0 24px;
	color: #353535;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	line-height: 140%;
}

.rc-consent__list {
	margin-bottom: 24px;
	border-top: 1px solid #E4E4E4;
}

.rc-consent__option {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 0;
	border-bottom: 1px solid #E4E4E4;
}

.rc-consent .rc-consent__check {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: #264796;
	cursor: pointer;
}

.rc-consent .rc-consent__check:disabled {
	cursor: default;
}

.rc-consent__option label {
	display: block;
	cursor: pointer;
	font-family: Roboto, sans-serif;
}

.rc-consent__option-title {
	display: block;
	margin-bottom: 4px;
	color: #264796;
	font-size: 17px;
	font-weight: 500;
	line-height: 130%;
}

.rc-consent__always {
	margin-left: 6px;
	color: #5B5B5B;
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
}

.rc-consent__option-text {
	display: block;
	color: #5B5B5B;
	font-size: 14px;
	line-height: 140%;
}

.rc-consent__actions--dialog .rc-consent__btn {
	flex: 1 1 auto;
}

body.rc-consent-open {
	overflow: hidden;
}

@media (max-width: 991.98px) {
	.rc-consent__bar-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.rc-consent__actions .rc-consent__btn--primary {
		flex: 1 1 40%;
	}
}

@media (max-width: 575.98px) {
	.rc-consent__bar {
		left: 8px;
		right: 8px;
		bottom: 8px;
	}

	.rc-consent__bar-inner {
		padding: 16px;
	}

	.rc-consent__text {
		font-size: 14px;
	}

	.rc-consent__actions {
		gap: 8px;
	}

	.rc-consent__bar .rc-consent__btn--primary {
		flex: 1 1 calc(50% - 4px);
		padding: 10px 8px;
		font-size: 13px;
	}

	.rc-consent__bar .rc-consent__btn--link {
		flex: 1 1 100%;
		min-height: 36px;
		padding: 4px;
	}

	.rc-consent__actions--dialog {
		flex-direction: column;
		align-items: stretch;
	}

	.rc-consent__dialog {
		padding: 32px 20px 20px;
	}

	.rc-consent__title {
		font-size: 22px;
	}
}

/* ---------- Map placeholder (Contacts) ---------- */

.rc-map-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 100%;
	padding: 24px;
	background: #F5F5F5;
	text-align: center;
}

.rc-map-placeholder__text {
	max-width: 420px;
	margin: 0;
	color: #353535;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: 140%;
}

.rc-map-placeholder__more {
	font-family: Roboto, sans-serif;
	font-size: 14px;
}

/* ---------- Personal data consent in Contact Form 7 ----------
 * The field uses the theme's own .checkbox-other design (css/style.css):
 * hidden native input, icon drawn by span::before. Only the label span gets the icon.
 */

.form_item.form_item_consent {
	margin-top: 0;
	margin-bottom: 24px;
}

.form_item_consent.checkbox-other .wpcf7-form-control-wrap,
.form_item_consent.checkbox-other .wpcf7-form-control,
.form_item_consent.checkbox-other .wpcf7-list-item {
	display: block;
	margin: 0;
	padding: 0;
}

.form_item_consent.checkbox-other .wpcf7-form-control-wrap::before,
.form_item_consent.checkbox-other .wpcf7-form-control::before,
.form_item_consent.checkbox-other .wpcf7-list-item::before {
	content: none;
}

.form_item_consent.checkbox-other .wpcf7-list-item-label {
	display: block;
	font-size: 14px;
	line-height: 140%;
}

.form_item_consent.checkbox-other .wpcf7-list-item-label::before {
	margin-top: 0;
}

.form_item_consent.checkbox-other .wpcf7-list-item-label a {
	color: #fff;
	text-decoration: underline;
}

.form_item_consent input[type="checkbox"]:focus-visible + .wpcf7-list-item-label::before {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* White request modal: dark versions of the same icons. */
.modal-body .form_item_consent.checkbox-other .wpcf7-list-item-label {
	color: #5B5B5B;
}

.modal-body .form_item_consent.checkbox-other .wpcf7-list-item-label a {
	color: #264796;
}

.modal-body .form_item_consent.checkbox-other .wpcf7-list-item-label::before {
	background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='23' height='23' stroke='%239D9F9E'/%3E%3C/svg%3E");
}

.modal-body .form_item_consent.checkbox-other input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
	background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 7.64286L18.8571 6.5L9.71429 14.5L5.14286 11.0714L4 12.2143L9.71429 17.9286L20 7.64286Z' fill='%23264796'/%3E%3Crect x='0.5' y='0.5' width='23' height='23' stroke='%23264796'/%3E%3C/svg%3E");
}

.modal-body .form_item_consent input[type="checkbox"]:focus-visible + .wpcf7-list-item-label::before {
	outline-color: #264796;
}

/* ---------- Footer policy links ---------- */

.rc-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 12px;
	padding: 0;
	list-style: none;
}

.rc-legal-links a,
.rc-legal-links button {
	padding: 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.75);
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 140%;
	text-decoration: underline;
	cursor: pointer;
}

.rc-legal-links a:hover,
.rc-legal-links button:hover {
	color: #fff;
}

/* ---------- Text page (policies) ---------- */

.text_page {
	padding: 40px 0 100px;
}

.text_page_content {
	color: #353535;
	font-family: Roboto, sans-serif;
	font-size: 17px;
	line-height: 150%;
}

.text_page_content h2 {
	margin: 40px 0 16px;
	color: #264796;
	font-family: Manrope, sans-serif;
	font-size: 26px;
	font-weight: 600;
	line-height: 120%;
}

.text_page_content h3 {
	margin: 28px 0 12px;
	color: #264796;
	font-family: Manrope, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 130%;
}

.text_page_content p,
.text_page_content ul,
.text_page_content ol,
.text_page_content table {
	margin-bottom: 16px;
}

.text_page_content ul,
.text_page_content ol {
	padding-left: 24px;
}

.text_page_content ul {
	list-style: disc;
}

.text_page_content ol {
	list-style: decimal;
}

.text_page_content li {
	margin-bottom: 6px;
}

.text_page_content a {
	color: #264796;
	text-decoration: underline;
	overflow-wrap: anywhere;
}

.text_page_content strong {
	font-weight: 600;
}

.text_page_content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.text_page_content .wp-block-table {
	overflow-x: auto;
}

.text_page_content th,
.text_page_content td {
	padding: 10px 12px;
	border: 1px solid #E4E4E4;
	text-align: left;
	vertical-align: top;
}

.text_page_content th {
	background: #F5F5F5;
	font-weight: 600;
}

.text_page_content mark,
.text_page_content .rc-fill {
	padding: 0 4px;
	background: #FFF3CD;
	color: #5B3B00;
}

@media (max-width: 767.98px) {
	.text_page {
		padding: 20px 0 60px;
	}

	.text_page_content {
		font-size: 16px;
	}

	.text_page_content h2 {
		font-size: 22px;
	}
}
