/* PackMOQ Footer Manager — front-end */

.pmqfm, .pmqfm *, .pmqfm *::before, .pmqfm *::after { box-sizing: border-box; }

.pmqfm {
	background: var(--pmqfm-bg);
	color: var(--pmqfm-text);
	font-family: var(--pmqfm-font);
	font-size: 16px;
	line-height: 1.55;
	border-top: 1px solid var(--pmqfm-rule);
}
.pmqfm :where(a) { color: inherit; text-decoration: none; }
.pmqfm :where(img) { max-width: 100%; height: auto; }
/* Themes restyle generic elements; these win them back inside the footer.
   They are wrapped in :where() so they carry the weight of .pmqfm alone —
   written as ".pmqfm p" they are (0,1,1) and quietly beat every component
   rule below that uses a single class, which is what was stripping the gap
   under the About text. */
.pmqfm :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.pmqfm :where(li) { margin: 0; padding: 0; list-style: none; }
.pmqfm :where(p) { margin: 0; }
.pmqfm :where(h2, h3) { margin: 0; text-transform: none; }
.pmqfm :where(details) { margin: 0; padding: 0; border: 0; background: none; }
.pmqfm :where(summary) { display: block; list-style: none; }
.pmqfm summary::marker, .pmqfm summary::-webkit-details-marker { display: none; content: ""; }
.pmqfm .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.pmqfm .pmqfm-in {
	max-width: var(--pmqfm-max); width: 100%;
	margin-left: auto; margin-right: auto; margin-top: 0; margin-bottom: 0;
	padding: var(--pmqfm-pad-top) var(--pmqfm-pad) 0;
}

/* ---------------- Main grid ---------------- */

/* The template is built from the real column count and set as --pmqfm-grid
   on .pmqfm-in. Mixing an fr track with repeat(auto-fit, …) is invalid CSS
   and gets dropped by the browser, so an explicit repeat() is used. */
.pmqfm-grid {
	display: grid;
	grid-template-columns: var(--pmqfm-grid, 1.6fr repeat(3, minmax(0, 1fr)));
	gap: 40px 36px;
	align-items: start;
}

.pmqfm-logo { display: inline-block; margin: 0 0 16px; }
.pmqfm .pmqfm-logo img { width: var(--pmqfm-logo-w, 168px); height: auto; display: block; }
.pmqfm-about { margin: 0 0 22px; font-size: 13.5px; line-height: 1.7; color: var(--pmqfm-text); max-width: 340px; }

.pmqfm-social-h {
	margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--pmqfm-text);
}
.pmqfm .pmqfm-social { display: flex; gap: 9px; flex-wrap: wrap; margin: 4px 0 0; padding: 0; list-style: none; }
.pmqfm-social a {
	width: 34px; height: 34px; border-radius: 9px;
	display: grid; place-items: center;
	background: var(--pmqfm-bg-alt);
	border: 1px solid var(--pmqfm-rule);
	color: var(--pmqfm-link);
	transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.pmqfm-social a:hover {
	background: var(--pmqfm-accent); border-color: var(--pmqfm-accent); color: #fff; transform: translateY(-2px);
}

/* ---------------- Column headings ---------------- */

.pmqfm-h {
	margin: 0 0 16px; font-size: 14.5px; font-weight: 700;
	color: var(--pmqfm-heading); letter-spacing: .01em;
	position: relative; padding-bottom: 11px;
}
.pmqfm-h::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 38px; height: 2px; background: var(--pmqfm-accent); border-radius: 2px;
}

/* the accordion only engages on small screens */
.pmqfm-col summary { list-style: none; cursor: default; }
.pmqfm-col summary::-webkit-details-marker { display: none; }
.pmqfm-chev { display: none; }

.pmqfm-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.pmqfm-contact li { display: flex; gap: 11px; font-size: 13.5px; line-height: 1.55; }
.pmqfm-contact .pmqfm-ico { color: var(--pmqfm-accent); flex: 0 0 15px; margin-top: 3px; }
.pmqfm-contact a { color: var(--pmqfm-link); transition: color .15s ease; }
.pmqfm-contact a:hover { color: var(--pmqfm-link-hover); }
.pmqfm-contact b {
	display: block; color: var(--pmqfm-heading); font-weight: 600; font-size: 12px;
	letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px;
}

.pmqfm-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pmqfm-links a {
	font-size: 13.5px; color: var(--pmqfm-link); display: inline-block;
	transition: color .15s ease, transform .15s ease;
}
.pmqfm-links a:hover { color: var(--pmqfm-link-hover); transform: translateX(3px); }

/* ---------------- Partner + certification strip ---------------- */

.pmqfm-strip {
	margin-top: 46px; padding: 26px 0;
	border-top: 1px solid var(--pmqfm-rule);
	display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; align-items: center;
}
.pmqfm-strip h3 {
	margin: 0 0 13px; font-size: 11px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--pmqfm-text);
}
.pmqfm-marks { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
/* Height is pinned with max-height as well as height, and both carry a
   fallback. On WooCommerce pages the shop stylesheets reset img heights back
   to auto, which left these logos at their natural size — several times too
   big. max-height holds the ceiling even if height is reset, and the fallback
   keeps them sane if the inline custom properties ever fail to print. */
.pmqfm .pmqfm-marks img {
	height: var(--pmqfm-partner-h, 30px);
	max-height: var(--pmqfm-partner-h, 30px);
	width: auto; max-width: 100%; object-fit: contain;
	filter: var(--pmqfm-mark-filter, none);
	opacity: .78; transition: opacity .18s ease;
}
.pmqfm .pmqfm-marks img:hover { opacity: 1; }
.pmqfm .pmqfm-certs img {
	height: var(--pmqfm-cert-h, 44px);
	max-height: var(--pmqfm-cert-h, 44px);
	width: auto; max-width: 100%; object-fit: contain;
	filter: none; opacity: 1;
}

/* ---------------- Bottom bar ---------------- */

.pmqfm-bot { background: var(--pmqfm-bot-bg); border-top: 1px solid var(--pmqfm-rule); }
.pmqfm .pmqfm-bot-in {
	max-width: var(--pmqfm-max); width: 100%;
	margin-left: auto; margin-right: auto; margin-top: 0; margin-bottom: 0;
	padding: 18px var(--pmqfm-pad);
	display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.pmqfm-copy { font-size: 12.5px; color: var(--pmqfm-bot-text); margin: 0; }
.pmqfm-legal { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.pmqfm-legal a { font-size: 12.5px; color: var(--pmqfm-bot-text); transition: color .15s ease; }
.pmqfm-legal a:hover { color: var(--pmqfm-link-hover); }

.pmqfm-pay { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pmqfm .pmqfm-pay img { height: 24px; max-height: 24px; width: auto; max-width: 100%; object-fit: contain; opacity: .9; }
.pmqfm-pay-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 24px; border-radius: 4px;
	background: #fff; border: 1px solid var(--pmqfm-rule);
}
.pmqfm.is-dark .pmqfm-pay-mark { border-color: rgba(255,255,255,.18); }
.pmqfm-pay-mark svg { display: block; }

/* ---------------- WhatsApp ---------------- */

.pmqfm-wa {
	position: fixed; bottom: 20px; z-index: 40;
	width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff;
	display: grid; place-items: center;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
	transition: transform .18s ease;
}
.pmqfm-wa:hover { transform: scale(1.06); }
.pmqfm-wa--left { left: 20px; }
.pmqfm-wa--right { right: 20px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
	.pmqfm-grid { grid-template-columns: 1fr 1fr !important; gap: 34px 30px; }
	.pmqfm-strip { grid-template-columns: 1fr; gap: 24px; }
	.pmqfm-about { max-width: none; }
}

@media (max-width: 660px) {
	.pmqfm .pmqfm-in { padding: 40px 18px 0; }
	.pmqfm-grid { grid-template-columns: 1fr !important; gap: 0; }
	.pmqfm-brand { margin-bottom: 28px; }

	.pmqfm-col { border-top: 1px solid var(--pmqfm-rule); }
	.pmqfm .pmqfm-col summary {
		cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 15px 0;
	}
	.pmqfm-col summary .pmqfm-h { margin: 0; padding: 0; }
	.pmqfm-col summary .pmqfm-h::after { display: none; }
	.pmqfm-chev {
		display: block; width: 10px; height: 10px; margin-right: 3px;
		border-right: 2px solid var(--pmqfm-text); border-bottom: 2px solid var(--pmqfm-text);
		transform: rotate(45deg); transition: transform .2s ease;
	}
	.pmqfm-col[open] .pmqfm-chev { transform: rotate(-135deg); }
	.pmqfm-col > ul { padding: 0 0 18px; }

	.pmqfm-strip { margin-top: 28px; }
	.pmqfm-marks { gap: 20px; }
	/* Scale the partner and certification logos down with the viewport.
	   Both properties move together so the width recalculates from the ratio. */
	.pmqfm .pmqfm-marks img {
		height: calc(var(--pmqfm-partner-h, 30px) * .85);
		max-height: calc(var(--pmqfm-partner-h, 30px) * .85);
	}
	.pmqfm .pmqfm-certs img {
		height: calc(var(--pmqfm-cert-h, 44px) * .85);
		max-height: calc(var(--pmqfm-cert-h, 44px) * .85);
	}
	.pmqfm-bot-in { flex-direction: column; align-items: flex-start; gap: 12px; }
	.pmqfm-wa { left: 14px; bottom: 14px; width: 48px; height: 48px; }
	.pmqfm-wa--right { right: 14px; left: auto; }
}

@media (max-width: 420px) {
	.pmqfm-legal { gap: 12px; }
	.pmqfm-marks { gap: 16px; }
	.pmqfm .pmqfm-marks img {
		height: calc(var(--pmqfm-partner-h, 30px) * .72);
		max-height: calc(var(--pmqfm-partner-h, 30px) * .72);
	}
	.pmqfm .pmqfm-certs img {
		height: calc(var(--pmqfm-cert-h, 44px) * .72);
		max-height: calc(var(--pmqfm-cert-h, 44px) * .72);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pmqfm *, .pmqfm-wa { transition: none !important; }
}

.pmqfm a:focus-visible, .pmqfm summary:focus-visible {
	outline: 2px solid var(--pmqfm-accent); outline-offset: 3px; border-radius: 4px;
}
