/**
 * Masterflo single-product widgets — base styles matching the design spec.
 * Everything is overridable from each widget's Style tab.
 */

.mfw-sum, .mfw-sum *, .mfw-glance, .mfw-glance *, .mfw-acc, .mfw-acc *,
.mfw-ov, .mfw-ov *, .mfw-rel, .mfw-rel *, .mfw-gal, .mfw-gal * {
	box-sizing: border-box;
}

/* Flex and grid children default to min-width:auto, which lets wide content
   (images, long words, phone numbers) push the page past the viewport. */
.mfw-sum, .mfw-glance, .mfw-acc, .mfw-ov, .mfw-rel, .mfw-gal {
	min-width: 0;
	max-width: 100%;
}

.mfw-gal img,
.mfw-sum img,
.mfw-rel img {
	max-width: 100%;
}

.mfw-sum__title,
.mfw-acc__title,
.mfw-rel .mfw-card__title {
	overflow-wrap: anywhere;
}

/* ---------- Shared small-caps label ---------- */

.mfw-sum__label,
.mfw-glance__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8a97ad;
	margin-bottom: 10px;
}

/* ---------- Product Summary ---------- */

.mfw-sum {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.mfw-sum__model {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #26408f;
}

.mfw-sum__model + .mfw-sum__title {
	margin-top: -12px;
}

.mfw-sum__title {
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: #071630;
	margin: 0;
}

.mfw-sum__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #5a6b84;
	margin: 0;
}

.mfw-sum__price {
	background-color: #f6f7f9;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	padding: 18px 20px;
}

.mfw-sum__price .mfw-sum__label {
	margin-bottom: 6px;
}

.mfw-sum__amount-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.mfw-sum__amount {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #071630;
	line-height: 1.1;
}

.mfw-sum__unit {
	font-size: 14px;
	color: #8a97ad;
}

.mfw-sum__price-note {
	font-size: 13px;
	color: #8a97ad;
	margin-top: 6px;
}

.mfw-sum__finance {
	font-size: 13px;
	font-weight: 600;
	color: #26408f;
	margin-top: 10px;
}

.mfw-sum__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mfw-sum__feature {
	display: flex;
	gap: 9px;
	font-size: 14px;
	line-height: 1.45;
	color: #0b1a36;
}

.mfw-sum__chevron {
	color: #26408f;
	font-weight: 700;
	flex: none;
}

.mfw-sum__buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Two-class selectors (0,2,0): they outrank the theme reset and the
   kit's `.elementor-kit-N a{color}` (0,1,1), but still lose to Elementor's
   own `{{WRAPPER}} .el` Style-tab rules, which load later. */
.mfw-sum .mfw-sum__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 22px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	transition: all 0.16s ease;
	cursor: pointer;
}

.mfw-sum .mfw-sum__btn--primary {
	background-color: #26408f;
	border-color: #26408f;
	color: #fff;
}

.mfw-sum .mfw-sum__btn--primary:hover,
.mfw-sum .mfw-sum__btn--primary:focus {
	background-color: #1d3372;
	border-color: #1d3372;
	color: #fff;
}

.mfw-sum .mfw-sum__btn--secondary {
	background-color: #fff;
	border-color: #d4dae3;
	color: #071630;
}

.mfw-sum .mfw-sum__btn--secondary:hover,
.mfw-sum .mfw-sum__btn--secondary:focus {
	border-color: #071630;
	color: #071630;
}

.mfw-sum__suitable {
	border-top: 1px solid #e4e7ec;
	padding-top: 16px;
}

.mfw-sum__suitable p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #5a6b84;
}

.mfw-sum__chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.mfw-sum__chip {
	font-size: 12px;
	font-weight: 500;
	color: #5a6b84;
	background-color: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 5px;
	padding: 5px 10px;
}

/* ---------- Overview ---------- */

.mfw-ov__heading {
	font-size: 22px;
	font-weight: 700;
	color: #071630;
	margin: 0 0 14px;
}

.mfw-ov__subheading {
	font-size: 15px;
	font-weight: 700;
	color: #071630;
	margin: 22px 0 8px;
}

.mfw-ov__body {
	font-size: 15px;
	line-height: 1.7;
	color: #3d4d66;
}

.mfw-ov__body p {
	margin: 0 0 12px;
}

.mfw-ov__body p:last-child {
	margin-bottom: 0;
}

/* ---------- Accordion (specs + FAQs) ---------- */

.mfw-acc {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mfw-acc__item {
	background-color: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	overflow: hidden;
}

.mfw-acc .mfw-acc__head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 18px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	color: inherit;
}

/* hello-elementor's reset paints every button hover/focus #c36 with white
   text; keep the accordion headers neutral. */
.mfw-acc .mfw-acc__head:hover,
.mfw-acc .mfw-acc__head:focus {
	background: none;
	color: inherit;
}

.mfw-acc .mfw-acc__head:hover .mfw-acc__title {
	color: #26408f;
}

.mfw-acc .mfw-acc__head:focus-visible {
	outline: 2px solid #26408f;
	outline-offset: -2px;
}

.mfw-acc__icon {
	color: #26408f;
	font-weight: 700;
	font-size: 16px;
	flex: none;
	width: 14px;
	text-align: center;
}

.mfw-acc__title {
	font-size: 14.5px;
	font-weight: 600;
	color: #071630;
	line-height: 1.3;
	flex: 1;
}

.mfw-acc__panel {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mfw-acc__item.is-open .mfw-acc__panel {
	max-height: 600px;
	opacity: 1;
}

.mfw-acc__body {
	padding: 0 18px 16px 44px;
	font-size: 14px;
	line-height: 1.65;
	color: #3d4d66;
}

.mfw-acc__body p {
	margin: 0 0 10px;
}

.mfw-acc__body p:last-child {
	margin-bottom: 0;
}

.mfw-acc__body ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mfw-acc__body ul li {
	position: relative;
	padding-left: 16px;
}

.mfw-acc__body ul li::before {
	content: "·";
	position: absolute;
	left: 0;
	color: #26408f;
	font-weight: 700;
}

/* ---------- At a glance ---------- */

.mfw-glance {
	background-color: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	padding: 22px;
}

.mfw-glance__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid #eef1f5;
	font-size: 13.5px;
}

.mfw-glance__row-label {
	color: #8a97ad;
}

.mfw-glance__row-value {
	color: #071630;
	font-weight: 700;
	text-align: right;
}

.mfw-glance .mfw-glance__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 16px;
	padding: 13px;
	border-radius: 6px;
	background-color: #26408f;
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.16s ease;
}

.mfw-glance .mfw-glance__btn:hover,
.mfw-glance .mfw-glance__btn:focus {
	background-color: #1d3372;
	color: #fff;
}

.mfw-glance__label--downloads {
	margin-top: 22px;
}

.mfw-glance__downloads {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mfw-glance .mfw-glance__dl {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	background-color: #f6f7f9;
	border: 1px solid #e4e7ec;
	border-radius: 6px;
	text-decoration: none;
	transition: border-color 0.16s ease;
}

.mfw-glance .mfw-glance__dl:hover {
	border-color: #26408f;
}

.mfw-glance__dl-badge {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 5px;
	background-color: #26408f;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.mfw-glance__dl-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.mfw-glance__dl-title {
	font-size: 13px;
	font-weight: 600;
	color: #071630;
	line-height: 1.3;
}

.mfw-glance__dl-sub {
	font-size: 11.5px;
	color: #8a97ad;
}

/* ---------- Related products ---------- */

.mfw-rel__heading {
	font-size: 22px;
	font-weight: 700;
	color: #071630;
	margin: 0 0 18px;
}

.mfw-rel__grid {
	display: grid;
	grid-template-columns: repeat(var(--mfw-rel-cols, 3), minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 900px) {
	.mfw-rel__grid {
		grid-template-columns: 1fr;
	}
}

a.mfw-card--related {
	text-decoration: none;
	display: flex;
}

.mfw-rel .mfw-card--related .mfw-card__title {
	font-size: 15px;
	color: #071630;
}

.mfw-rel .mfw-card--related .mfw-card__model {
	color: #26408f;
}

.mfw-rel .mfw-card--related .mfw-card__price {
	color: #071630;
}

/* Keep related thumbnails a consistent shape regardless of source image. */
.mfw-rel .mfw-card__media {
	aspect-ratio: 4 / 3;
	background: #fff;
}

.mfw-rel .mfw-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
}

/* ---------- Enquiry: product tag line ---------- */

.mfw-product-tag {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 11px 14px;
	background-color: #f6f7f9;
	border: 1px solid #e4e7ec;
	border-radius: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: #071630;
	line-height: 1.35;
}

.mfw-product-tag__dot {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: #26408f;
}

/* ---------- Template cards (classes set on the Elementor containers) ---------- */

.mfw-casecard .elementor-heading-title {
	color: #fff;
}

.mfw-casecard p {
	color: #b9c4d6;
	margin: 0;
}

.mfw-formcard .elementor-field-group > label {
	font-size: 12.5px;
	font-weight: 600;
	color: #071630;
	margin-bottom: 5px;
}

.mfw-formcard .elementor-field-textual {
	border: 1px solid #d4dae3;
	border-radius: 6px;
	background-color: #fff;
	color: #0b1a36;
	font-size: 14px;
	padding: 11px 13px;
}

.mfw-formcard .elementor-field-textual:focus {
	border-color: #26408f;
	box-shadow: 0 0 0 3px rgba(38, 64, 143, 0.12);
	outline: none;
}

.mfw-formcard .elementor-button[type="submit"] {
	background-color: #26408f;
	color: #fff;
	font-weight: 600;
	border-radius: 6px;
}

.mfw-formcard .elementor-button[type="submit"]:hover {
	background-color: #1d3372;
}

/* ---------- Product gallery ---------- */

.mfw-gal__main {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background-color: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	padding: 18px;
	overflow: hidden;
	cursor: zoom-in;
}

.mfw-gal__main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* WebP-converter plugins wrap images in <picture>, which would otherwise
   become the flex/grid item and break sizing. display:contents lets the
   inner <img> lay out as if the wrapper were not there. */
.mfw-gal picture {
	display: contents;
}

/* Magnifier: the image scales on hover while product-page.js keeps
   transform-origin under the cursor, so hovering inspects that spot.
   Overridable from Style → Main Image → Hover Zoom (1 disables it). */
.mfw-gal .mfw-gal__main img {
	transition: transform 0.25s ease;
	transform-origin: center center;
	will-change: transform;
}

.mfw-gal .mfw-gal__main:hover img {
	transform: scale(1.6);
}

/* Pointer-less devices can't hover, so never leave an image scaled there. */
@media (hover: none) {
	.mfw-gal .mfw-gal__main:hover img {
		transform: none;
	}

	.mfw-gal__main {
		cursor: default;
	}
}

.mfw-gal__thumbs {
	display: grid;
	/* minmax(0,1fr) — plain 1fr keeps each track at least as wide as the
	   image inside it, which overflows the column on narrow screens. */
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

/* Written as `.mfw-gal .mfw-gal__thumb` (0,2,1) so it outranks
   hello-elementor's reset: `button:hover, button:focus { background:#c36 }`. */
.mfw-gal .mfw-gal__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 6px;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.16s ease, opacity 0.16s ease;
	opacity: 0.78;
}

.mfw-gal__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.mfw-gal .mfw-gal__thumb:hover,
.mfw-gal .mfw-gal__thumb:focus {
	opacity: 1;
	background-color: #fff;
	color: inherit;
	border-color: #c4ccd8;
}

.mfw-gal .mfw-gal__thumb:focus-visible {
	outline: 2px solid #26408f;
	outline-offset: 2px;
}

.mfw-gal .mfw-gal__thumb.is-active,
.mfw-gal .mfw-gal__thumb.is-active:hover,
.mfw-gal .mfw-gal__thumb.is-active:focus {
	opacity: 1;
	background-color: #fff;
	border-color: #26408f;
}

/* ---------- Breadcrumb ---------- */

.elementor-widget-woocommerce-breadcrumb .woocommerce-breadcrumb {
	font-size: 12.5px;
	color: #8a97ad;
	margin: 0;
}

.elementor-widget-woocommerce-breadcrumb .woocommerce-breadcrumb a {
	color: #5a6b84;
	text-decoration: none;
}

.elementor-widget-woocommerce-breadcrumb .woocommerce-breadcrumb a:hover {
	color: #26408f;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
	.mfw-sum__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.mfw-sum .mfw-sum__btn {
		width: 100%;
	}

	.mfw-gal__thumbs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mfw-glance__row {
		gap: 10px;
	}
}
