/* First4Frames conversion improvements (Nov 2026). Loaded site-wide by inc/f4f-conversion.php. */

/* ---- Announcement bar ---- */
.f4f-announce {
	background: #0f2f4f;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.4;
}

.f4f-announce__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	padding-top: 8px;
	padding-bottom: 8px;
	text-align: center;
}

/* flex gap needs Safari 14.1+; margins give older Safari the same spacing. */
.f4f-announce__inner > p {
	margin: 2px 14px;
}

/* The offer and the Christmas cut-off are the headlines of the bar: larger and bolder than the phone line. */
.f4f-announce__offer,
.f4f-announce__xmas {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.5;
}

.f4f-announce__code {
	display: inline-block;
	padding: 1px 8px;
	border: 2px dashed #ffd27a;
	border-radius: 4px;
	color: #ffd27a;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.f4f-announce__sep {
	margin: 0 6px;
	opacity: 0.7;
}

.f4f-announce__xmas strong {
	color: #ffd27a;
}

.f4f-announce a,
.f4f-announce a:visited {
	color: #ffffff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.f4f-announce a:focus-visible {
	outline: 2px solid #ffd27a !important;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.f4f-announce {
		font-size: 13px;
	}
	.f4f-announce__offer {
		font-size: 16px;
	}
	.f4f-announce__code {
		font-size: 17px;
	}
	/* Offer on its own line, delivery underneath, rather than wrapping mid-phrase. */
	.f4f-announce__promo {
		display: block;
		margin-bottom: 2px;
	}
	.f4f-announce__offer .f4f-announce__sep {
		display: none;
	}
	.f4f-announce__offer {
		font-size: 15px;
	}
	.f4f-announce__promo,
	.f4f-announce__xmas {
		font-size: 17px;
	}
	/* Mobile has the floating call button, so drop the phone line from the bar. */
	.f4f-announce__phone {
		display: none;
	}
}

/* ---- Mobile call button (bottom-left; WhatsApp is bottom-right) ---- */
.f4f-call-button {
	display: none;
}

@media (max-width: 767px) {
	.f4f-call-button,
	.f4f-call-button:visited {
		display: -webkit-box;
		display: flex;
		-webkit-box-align: center;
		align-items: center;
		position: fixed;
		left: 16px;
		/* Sit above Storefront's handheld footer bar. */
		bottom: calc(80px + env(safe-area-inset-bottom, 0px));
		z-index: 9999;
		padding: 12px 18px;
		border-radius: 999px;
		background: #1e73be;
		color: #ffffff;
		font-weight: 600;
		text-decoration: none;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	}
	.f4f-call-button svg {
		margin-right: 8px;
	}
	/* Lift the WhatsApp button off Storefront's handheld footer bar, level with the call button. */
	.qlwapp__container {
		bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
		left: auto !important;
		right: 0 !important;
		width: auto !important;
	}
	/* Phone screens: WhatsApp as a large round icon so it sits beside the call button. */
	.qlwapp__button.qlwapp__button--button {
		display: -webkit-box;
		display: flex;
		-webkit-box-align: center;
		align-items: center;
		-webkit-box-pack: center;
		justify-content: center;
		width: 64px;
		height: 64px;
		padding: 0 !important;
		border-radius: 50% !important;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	}
	.qlwapp__button--button .qlwapp__icon {
		margin: 0 !important;
	}
	/* Visually hidden but still read by screen readers. */
	.qlwapp__button--button .qlwapp__text {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ---- Product page ---- */

/* Gallery is printed at opacity:0 and faded in by WooCommerce JS. Never leave the picture invisible. */
.woocommerce-product-gallery {
	opacity: 1 !important;
}

/* Inline message replacing the old "please select" alert(). */
.f4f-selection-notice {
	margin: 0 0 1em;
	padding: 10px 14px;
	border-left: 3px solid #c0392b;
	background: #fdf0ee;
	color: #7a1f14;
	font-size: 14px;
}

.variations select.f4f-needs-choice {
	outline: 2px solid #c0392b;
	outline-offset: 1px;
}

/* Frame sample lightbox: iOS Safari's 100vh is taller than the visible area. */
#lightbox,
.lightbox-wrapper {
	height: 100vh;
	height: 100dvh;
}

/* ---- Delivery notice (product, basket, checkout) ----
   One line per message, left-aligned and evenly spaced everywhere.
   (delivery-notice.css laid them out side by side on basket/checkout, which
   with three messages of different lengths looked ragged.) */
.f4f-delivery-notice p {
	display: block;
	max-width: none;
}

.f4f-delivery-notice p > strong,
.f4f-delivery-notice p > span {
	display: block;
	margin: 0;
}

.f4f-delivery-notice p > * + * {
	margin-top: 4px;
}

/* delivery-notice.css makes every <strong> in the product-page notice a block; keep the code inline. */
.single-product .summary .f4f-delivery-notice .f4f-delivery-notice__promo strong,
.f4f-delivery-notice__promo strong {
	display: inline;
	margin: 0;
	letter-spacing: 0.04em;
}

/* ---- Basket newsletter tick box ---- */
.f4f-basket-newsletter {
	margin: 0 0 1em;
	font-size: 14px;
	text-align: left;
}
