/*
 * Ziebart UAE - light polish of the smaller pages (see inc/zb-polish.php): Gallery, News, Blogs, Thank you,
 * Your safety, Coming soon, and the privacy, terms and cookie pages.
 * Xtreme IT Services, 2026-11-20.
 */

/* ---------- Shared: icons, buttons, the "what next" panel ---------- */

html.zbfl .entry-content .zbpl__icon {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

html.zbfl .entry-content .zbpl-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	height: auto !important;
	min-height: 46px;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid transparent !important;
	border-radius: 10px !important;
	font-family: inherit !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

html.zbfl .entry-content .zbpl-btn--red {
	background: var(--zb-red) !important;
	color: #fff !important;
}

html.zbfl .entry-content .zbpl-btn--red:hover,
html.zbfl .entry-content .zbpl-btn--red:focus-visible {
	background: var(--zb-red-dark) !important;
}

html.zbfl .entry-content .zbpl-btn--line {
	border-color: var(--zb-line) !important;
	background: #fff !important;
	color: var(--zb-ink) !important;
}

html.zbfl .entry-content .zbpl-btn--line:hover,
html.zbfl .entry-content .zbpl-btn--line:focus-visible {
	border-color: var(--zb-red) !important;
	color: var(--zb-red) !important;
}

html.zbfl .entry-content .zbpl-btn:focus-visible {
	outline: 2px solid var(--zb-ink);
	outline-offset: 2px;
}

html.zbfl--ar .entry-content .zbpl-btn .zbpl__icon--arrow {
	transform: scaleX(-1);
}

html.zbfl .entry-content .zbpl-panel {
	max-width: 760px;
	margin: 8px auto 40px;
	padding: 44px 32px 40px;
	background: #fff;
	border: 1px solid var(--zb-line);
	border-radius: 16px;
	box-shadow: var(--zb-shadow);
	text-align: center;
}

html.zbfl .entry-content .zbpl-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 0 18px;
	border-radius: 50%;
	background: rgba(221, 0, 23, .08);
	color: var(--zb-red);
}

html.zbfl .entry-content .zbpl-panel__icon .zbpl__icon {
	width: 32px;
	height: 32px;
	stroke-width: 2.3;
}

html.zbfl .entry-content h2.zbpl-panel__title {
	margin: 0 0 12px !important;
	padding: 0 !important;
	color: var(--zb-ink) !important;
	font-size: clamp(22px, 1.2vw + 16px, 30px) !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: center !important;
}

html.zbfl .entry-content h2.zbpl-panel__title::before,
html.zbfl .entry-content h2.zbpl-panel__title::after {
	content: none !important;
}

html.zbfl .entry-content .zbpl-panel__text {
	max-width: 560px;
	margin: 0 auto 26px !important;
	color: var(--zb-muted);
	font-size: 16px !important;
	line-height: 1.65 !important;
	text-align: center !important;
}

html.zbfl .entry-content .zbpl-panel__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

@media (max-width: 575px) {
	html.zbfl .entry-content .zbpl-panel {
		padding: 32px 18px 26px;
	}
	html.zbfl .entry-content .zbpl-panel__actions .zbpl-btn {
		flex: 1 1 100%;
	}
}

/* ---------- Gallery (EN 662, AR 3859): even grid, two larger photos, tap anywhere on a photo ---------- */

html.zbfl :is(.post-662, .post-3859) .mpc-grid-images {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	height: auto !important;
	margin: 0 0 12px;
}

html.zbfl :is(.post-662, .post-3859) .mpc-grid-images::before,
html.zbfl :is(.post-662, .post-3859) .mpc-grid-images::after {
	content: none !important;
}

html.zbfl :is(.post-662, .post-3859) .mpc-grid-images > .mpc-item {
	position: relative !important;
	inset: auto !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: var(--zb-soft);
}

/* The larger photos: 1st and 16th in the grid (attachments 3817 and 3850, ZBPL_GALLERY_BIG). */
html.zbfl :is(.post-662, .post-3859) .mpc-grid-images > .mpc-item:nth-child(1),
html.zbfl :is(.post-662, .post-3859) .mpc-grid-images > .mpc-item:nth-child(16) {
	grid-column: span 2;
	grid-row: span 2;
}

html.zbfl :is(.post-662, .post-3859) .mpc-grid__image {
	position: absolute !important;
	inset: 0;
	width: 100%;
	height: 100%;
}

html.zbfl :is(.post-662, .post-3859) .mpc-grid__image > img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	transition: transform .5s ease;
}

html.zbfl :is(.post-662, .post-3859) .mpc-item:hover .mpc-grid__image > img {
	transform: scale(1.05);
}

/* The overlay is always there (see-through) so the first tap on a phone opens the photo. */
html.zbfl :is(.post-662, .post-3859) .mpc-item-overlay {
	visibility: visible !important;
	opacity: 0 !important;
	background: linear-gradient(to top, rgba(17, 17, 17, .5), rgba(17, 17, 17, 0) 55%) !important;
	transition: opacity .25s ease !important;
}

html.zbfl :is(.post-662, .post-3859) .mpc-item:hover .mpc-item-overlay,
html.zbfl :is(.post-662, .post-3859) .mpc-item:focus-within .mpc-item-overlay {
	opacity: 1 !important;
}

html.zbfl :is(.post-662, .post-3859) .mpc-overlay--vertical-wrap,
html.zbfl :is(.post-662, .post-3859) .mpc-overlay--vertical {
	position: static !important;
	display: block !important;
	transform: none !important;
}

html.zbfl :is(.post-662, .post-3859) a.mpc-magnific-popup {
	position: absolute !important;
	inset: 0;
	display: flex !important;
	align-items: flex-end;
	justify-content: flex-end;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px !important;
	background: none !important;
	border: 0 !important;
}

html.zbfl :is(.post-662, .post-3859) a.mpc-magnific-popup .mpc-item-overlay__icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	border-radius: 50%;
	background: #fff !important;
	color: var(--zb-red) !important;
	font-size: 16px !important;
	line-height: 1 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

html.zbfl :is(.post-662, .post-3859) a.mpc-magnific-popup:focus-visible {
	outline: 3px solid var(--zb-red);
	outline-offset: -3px;
}

@media (min-width: 768px) {
	html.zbfl :is(.post-662, .post-3859) .mpc-grid-images {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 767px) {
	html.zbfl :is(.post-662, .post-3859) .mpc-grid-images > .mpc-item {
		border-radius: 10px;
	}
	html.zbfl :is(.post-662, .post-3859) a.mpc-magnific-popup .mpc-item-overlay__icon {
		width: 34px !important;
		height: 34px !important;
		font-size: 14px !important;
	}
}

/* ---------- News (EN 1505, AR 4162): the article as one card ---------- */

html.zbfl :is(.post-1505, .post-4162) .wpb-content-wrapper > .insert-pages {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin: 0 0 28px;
	padding: 22px 20px;
	background: #fff;
	border: 1px solid var(--zb-line);
	border-radius: var(--zb-radius);
	box-shadow: var(--zb-shadow);
}

html.zbfl :is(.post-1505, .post-4162) .wpb-content-wrapper > .insert-pages::before,
html.zbfl :is(.post-1505, .post-4162) .wpb-content-wrapper > .insert-pages::after {
	content: none;
}

html.zbfl :is(.post-1505, .post-4162) .insert-pages > .vc_column_container {
	float: none;
	width: auto;
	padding: 0;
}

html.zbfl :is(.post-1505, .post-4162) .insert-pages .vc_column-inner {
	padding: 0 !important;
}

html.zbfl :is(.post-1505, .post-4162) .insert-pages .wpb_content_element {
	margin-bottom: 0;
}

html.zbfl :is(.post-1505, .post-4162) .entry-content .insert-pages h2 {
	margin: 0 0 16px !important;
	font-size: clamp(22px, 1vw + 15px, 28px) !important;
}

html.zbfl :is(.post-1505, .post-4162) .insert-pages img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

html.zbfl :is(.post-1505, .post-4162) .insert-pages p:has(> img) {
	margin: 0 !important;
}

html.zbfl :is(.post-1505, .post-4162) .entry-content .insert-pages > :last-child p {
	font-size: 16px;
	line-height: 1.75;
}

html.zbfl :is(.post-1505, .post-4162) .entry-content .insert-pages > :last-child p:last-child {
	margin-bottom: 0;
}

html.zbfl :is(.post-1505, .post-4162) .entry-content .insert-pages p {
	text-align: start !important;
}

@media (min-width: 768px) {
	html.zbfl :is(.post-1505, .post-4162) .wpb-content-wrapper > .insert-pages {
		padding: 32px;
	}
	/* Picture and text side by side (English page: two columns) ... */
	html.zbfl :is(.post-1505, .post-4162) .wpb-content-wrapper > .insert-pages:has(> .vc_column_container + .vc_column_container) {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 36px;
	}
	/* ... or, with everything in one column (Arabic page), the picture beside the text. */
	html.zbfl :is(.post-1505, .post-4162) .wpb-content-wrapper > .insert-pages:not(:has(> .vc_column_container + .vc_column_container)) p:has(> img) {
		float: inline-start;
		width: 42%;
		margin: 4px 0 14px !important;
		margin-inline-end: 30px !important;
	}
	html.zbfl :is(.post-1505, .post-4162) .wpb-content-wrapper > .insert-pages .wpb_text_column > .wpb_wrapper::after {
		content: "";
		display: table;
		clear: both;
	}
}

/* ---------- Blogs (5313, Arabic 6671): short opening line, proper headings, Read more at the bottom of every card ---------- */

html.zbfl :is(.post-5313, .post-6671) .entry-content .zbpl-lead {
	grid-column: 1 / -1;
	margin: 0 0 4px;
	color: var(--zb-muted);
	font-size: 17px;
	line-height: 1.6;
}

@media (min-width: 1100px) {
	html.zbfl :is(.post-5313, .post-6671) .wpb-content-wrapper {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

html.zbfl :is(.post-5313, .post-6671) .entry-content .insert-pages :is(h1, h2).entry-title {
	margin: 0 0 10px !important;
	padding: 0 !important;
	color: var(--zb-ink) !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	transition: color .2s ease;
}

html.zbfl :is(.post-5313, .post-6671) .entry-content .insert-pages :is(h1, h2).entry-title::before,
html.zbfl :is(.post-5313, .post-6671) .entry-content .insert-pages :is(h1, h2).entry-title::after {
	content: none !important;
}

html.zbfl :is(.post-5313, .post-6671) .entry-content .insert-pages :is(h1, h2).entry-title a {
	color: inherit !important;
	text-decoration: none !important;
}

/* Older cards have the link on the title only: the whole card opens the article, as on the newer ones. */
html.zbfl :is(.post-5313, .post-6671) .entry-content .insert-pages :is(h1, h2).entry-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

html.zbfl :is(.post-5313, .post-6671) .insert-pages:has(a:focus-visible) {
	outline: 2px solid var(--zb-red);
	outline-offset: 2px;
}

html.zbfl :is(.post-5313, .post-6671) .insert-pages a:focus-visible {
	outline: none;
}

html.zbfl :is(.post-5313, .post-6671) .insert-pages:hover :is(h1, h2).entry-title,
html.zbfl :is(.post-5313, .post-6671) .insert-pages:focus-visible :is(h1, h2).entry-title {
	color: var(--zb-red) !important;
}

html.zbfl :is(.post-5313, .post-6671) .insert-pages > .vc_column_container,
html.zbfl :is(.post-5313, .post-6671) .insert-pages .vc_column-inner,
html.zbfl :is(.post-5313, .post-6671) .insert-pages .vc_column-inner > .wpb_wrapper,
html.zbfl :is(.post-5313, .post-6671) .insert-pages .wpb_text_column,
html.zbfl :is(.post-5313, .post-6671) .insert-pages .wpb_text_column > .wpb_wrapper {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
}

/* "Read more" moves from the end of the text to the bottom of the card. */
html.zbfl :is(.post-5313, .post-6671) .entry-content .insert-pages p::after {
	content: none !important;
}

html.zbfl :is(.post-5313, .post-6671) .entry-content .insert-pages .wpb_text_column > .wpb_wrapper::after {
	content: "Read more \2192";
	display: block;
	margin-top: auto;
	padding-top: 14px;
	color: var(--zb-red);
	font-size: 14px;
	font-weight: 700;
}

html.zbfl--ar :is(.post-5313, .post-6671) .entry-content .insert-pages .wpb_text_column > .wpb_wrapper::after {
	content: "اقرأ المزيد \2190";
}

@media (min-width: 768px) {
	html.zbfl :is(.post-5313, .post-6671) .entry-content .insert-pages p {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		line-clamp: 4;
		overflow: hidden;
	}
}

html.zbfl :is(.post-5313, .post-6671) .insert-pages:focus-visible {
	outline: 2px solid var(--zb-red);
	outline-offset: 2px;
}

/* Arabic Blogs page: cards of articles that are only in English carry a small note saying so. */
html.zbfl :is(.post-5313, .post-6671) .entry-content .insert-pages p.zbpl-en-note {
	display: inline-block !important;
	align-self: flex-start;
	margin: 10px 0 0 !important;
	padding: 2px 10px;
	border: 1px solid var(--zb-line);
	border-radius: var(--zb-radius);
	background: var(--zb-soft);
	color: var(--zb-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
}

/* ---------- Your safety (EN 3503, AR 4630): the letter in a readable card ---------- */

html.zbfl :is(.post-3503, .post-4630) .wpb-content-wrapper {
	max-width: 880px;
	margin: 0 auto;
}

html.zbfl :is(.post-3503, .post-4630) .wpb-content-wrapper .vc_row,
html.zbfl :is(.post-3503, .post-4630) .wpb-content-wrapper .vc_row.container {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}

html.zbfl :is(.post-3503, .post-4630) .wpb-content-wrapper .vc_column-inner {
	padding: 0 !important;
}

/* The heading inside the page repeated the page title shown above it. */
html.zbfl :is(.post-3503, .post-4630) .entry-content h1.vc_custom_heading {
	display: none !important;
}

html.zbfl :is(.post-3503, .post-4630) .wpb_single_image {
	margin: 0 0 22px !important;
}

html.zbfl :is(.post-3503, .post-4630) .wpb_single_image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--zb-radius);
}

html.zbfl :is(.post-3503, .post-4630) .wpb_single_image .vc_single_image-wrapper,
html.zbfl :is(.post-3503, .post-4630) .wpb_single_image figure {
	display: block;
	width: 100%;
}

html.zbfl :is(.post-3503, .post-4630) .wpb_text_column p,
html.zbfl :is(.post-3503, .post-4630) .wpb_text_column li {
	font-size: 16px;
	line-height: 1.75;
}

/* ---------- Privacy (EN 3569, AR 5703), Terms (4398), Cookie policy (5676): "On this page" list ---------- */

html.zbfl :is(.post-3569, .post-5703, .post-4398, .post-5676) .entry-content {
	max-width: none;
}

html.zbfl .entry-content .zbpl-legal__text {
	min-width: 0;
	max-width: 860px;
}

html.zbfl .entry-content .zbpl-legal__text h2[id] {
	scroll-margin-top: calc(var(--zb-pin, 90px) + 16px);
}

html.zbfl .entry-content .zbpl-toc {
	margin: 0 0 28px;
}

html.zbfl .entry-content .zbpl-toc__box {
	padding: 4px 6px;
	background: var(--zb-soft);
	border: 1px solid var(--zb-line);
	border-radius: 12px;
}

html.zbfl .entry-content .zbpl-toc__title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 10px;
	color: var(--zb-ink);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

html.zbfl .entry-content .zbpl-toc__title::-webkit-details-marker {
	display: none;
}

html.zbfl .entry-content .zbpl-toc__title::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-inline-start: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s ease;
}

html.zbfl .entry-content .zbpl-toc__box[open] > .zbpl-toc__title::after {
	transform: rotate(-135deg) translateY(-2px);
}

html.zbfl .entry-content .zbpl-toc__title .zbpl__icon {
	color: var(--zb-red);
}

html.zbfl .entry-content ol.zbpl-toc__list {
	margin: 0 !important;
	padding: 0 4px 10px !important;
	list-style: none !important;
}

html.zbfl .entry-content ol.zbpl-toc__list > li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

html.zbfl .entry-content ol.zbpl-toc__list > li::before,
html.zbfl .entry-content ol.zbpl-toc__list > li::after {
	content: none !important;
}

html.zbfl .entry-content ol.zbpl-toc__list a {
	display: block;
	padding: 7px 10px;
	border-inline-start: 2px solid transparent;
	border-radius: 0 8px 8px 0;
	color: var(--zb-text);
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
}

html.zbfl--ar .entry-content ol.zbpl-toc__list a {
	border-radius: 8px 0 0 8px;
}

html.zbfl .entry-content ol.zbpl-toc__list a:hover,
html.zbfl .entry-content ol.zbpl-toc__list a:focus-visible {
	color: var(--zb-red);
	background: #fff;
}

html.zbfl .entry-content ol.zbpl-toc__list a[aria-current] {
	border-inline-start-color: var(--zb-red);
	background: #fff;
	color: var(--zb-red);
	font-weight: 700;
}

@media (min-width: 992px) {
	html.zbfl .entry-content .zbpl-legal {
		display: grid;
		grid-template-columns: 260px minmax(0, 860px);
		gap: 48px;
		align-items: start;
	}
	html.zbfl .entry-content .zbpl-toc {
		position: sticky;
		top: calc(var(--zb-pin, 90px) + 20px);
		max-height: calc(100vh - var(--zb-pin, 90px) - 40px);
		margin: 0;
		overflow-y: auto;
	}
}

@media (max-width: 1080px) {
	html.zbfl .entry-content .zbpl-legal__text h2[id] {
		scroll-margin-top: 88px;
	}
}
