/* IMM Quick Contact: bar fixed to the bottom of the screen below 782 px. Colours use the theme's palette when it has
   the same slugs (accent-3 navy, accent-1 gold in Twenty Twenty-Five as set in content/site.json), else the fallbacks. */
.imm-qc {
	display: none;
}

@media (max-width: 781px) {
	.imm-qc {
		display: grid;
		grid-template-columns: repeat(var(--imm-qc-cols, 2), minmax(0, 1fr));
		gap: 6px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1000; /* above page content, below the open mobile menu (100000) and the admin bar (99999) */
		box-sizing: border-box;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid rgba(0, 0, 0, 0.15);
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
	}

	/* Room under the footer so the bar never covers the last lines of a page. */
	body {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}

	/* Immigway: its stylesheet loads after this one and sets "body { padding: 0 }", which cancels the room above, and
	   its back-to-top button (fixed, 20 px from the bottom, z-index 9999) would sit on the bar's last button. Scoped to
	   the class WordPress itself puts on the body for the active theme (wp-theme-<folder>), so nothing changes under any
	   other theme. Not "theme-immigway": that class comes from WooCommerce and is missing when it is inactive. Measured
	   on a copy of this site without WooCommerce at 320, 375 and 768 px, 2026-10-29. */
	html body.wp-theme-immigway {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}

	body.wp-theme-immigway .pxl-scroll-top {
		bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	}

	.imm-qc__btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 48px;
		padding: 0 8px;
		box-sizing: border-box;
		border: 2px solid var(--wp--preset--color--accent-3, #14305e);
		border-radius: 6px;
		background: #fff;
		color: var(--wp--preset--color--accent-3, #14305e);
		font-family: inherit;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.2;
		text-decoration: none;
		white-space: nowrap;
	}

	.imm-qc__btn--call {
		background: var(--wp--preset--color--accent-3, #14305e);
		color: #fff;
	}

	.imm-qc__btn--book {
		background: var(--wp--preset--color--accent-1, #c9a54a);
		border-color: var(--wp--preset--color--accent-1, #c9a54a);
		color: var(--wp--preset--color--accent-3, #14305e);
	}

	.imm-qc__btn:hover,
	.imm-qc__btn:active {
		filter: brightness(0.92);
	}

	.imm-qc__btn:focus-visible {
		outline: 3px solid var(--wp--preset--color--accent-3, #14305e);
		outline-offset: 2px;
	}

	.imm-qc__icon {
		flex: none;
	}
}

/* Three buttons on a narrow phone: icon above the label so "WhatsApp" and "Book now" fit at 320 px. */
@media (max-width: 399px) {
	.imm-qc--n3 .imm-qc__btn {
		flex-direction: column;
		gap: 2px;
		padding: 2px 4px;
		font-size: 14px;
	}
}

@media print {
	.imm-qc {
		display: none !important;
	}
}
