/* MUH Core — WhatsApp buttons. Colours come from the active theme's tokens with safe fallbacks. */
.muh-wa-float {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3.25rem;
	padding: 0 1.1rem 0 0.95rem;
	border-radius: 999px;
	background: var(--wp--preset--color--black, #0e0e0e);
	color: var(--wp--preset--color--gold-light, #e4c163);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 6px 18px rgb(0 0 0 / 0.18);
}
.muh-wa-float:hover,
.muh-wa-float:focus-visible {
	color: var(--wp--preset--color--white, #fff);
}
.muh-wa-float:focus-visible,
.muh-wa-product__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold, #c99a2e);
	outline-offset: 3px;
}
/* Lift above WooCommerce's sticky mobile add-to-cart / notices if present. */
.woocommerce-store-notice ~ .muh-wa-float { bottom: 4.5rem; }

.muh-wa-product { margin: 1rem 0 0; }
.muh-wa-product__link {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	min-height: 3rem;
	padding: 0.85rem 1.25rem;
	border: 1px solid var(--wp--preset--color--black, #0e0e0e);
	color: var(--wp--preset--color--black, #0e0e0e);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
}
.muh-wa-product__link:hover {
	background: var(--wp--preset--color--black, #0e0e0e);
	color: var(--wp--preset--color--white, #fff);
}
.muh-wa-icon { flex: none; }

/* Contact + social lists */
.muh-contact, .muh-social { list-style: none; margin: 0; padding: 0; }
.muh-contact li { margin: 0 0 0.6rem; }
.muh-contact__label {
	display: block;
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.75;
}
.muh-social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Hide while the mobile navigation overlay is open. */
.has-modal-open .muh-wa-float { display: none; }

/* ---------------------------------------------------------------------
   Enquiry forms ([muh_contact_form], [muh_wholesale_form])
   Colours come from the active theme's tokens with safe fallbacks.
   --------------------------------------------------------------------- */
.muh-form-wrap {
	margin-block: 1.5rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: 14px;
	background: var(--wp--preset--color--ivory, #faf6f1);
}
.muh-form__intro,
.muh-form__privacy { margin: 0 0 1rem; font-size: 0.8125rem; color: var(--wp--preset--color--muted, #625b54); }
.muh-form__privacy { margin: 1rem 0 0; }
.muh-form__grid { display: grid; grid-template-columns: 1fr; gap: 1rem 1.25rem; }
@media (min-width: 640px) {
	.muh-form__grid { grid-template-columns: 1fr 1fr; }
	.muh-form__field--wide { grid-column: 1 / -1; }
}
.muh-form__field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.muh-form__field label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.muh-form__field label span { color: var(--wp--preset--color--sale, #9e2a2b); }
.muh-form__field :is(input, select, textarea) {
	width: 100%;
	box-sizing: border-box;
	min-height: 2.875rem;
	padding: 0.6rem 0.85rem;
	border: 1px solid #8f8780; /* 3.5:1 on white for non-text UI contrast */
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 1rem; /* 16px+ stops iOS zooming into fields */
}
.muh-form__field textarea { min-height: 8rem; resize: vertical; }
.muh-form__field :is(input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--gold-deep, #8a6414);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--black, #0e0e0e);
}
.muh-form__field.has-error :is(input, select, textarea) { border-color: var(--wp--preset--color--sale, #9e2a2b); border-width: 2px; }
.muh-form__error { font-size: 0.8125rem; font-weight: 500; color: var(--wp--preset--color--sale, #9e2a2b); }
.muh-form__error::before { content: "! "; font-weight: 700; } /* not colour alone */
.muh-form__actions { margin: 1.25rem 0 0; }
.muh-form__actions button {
	min-height: 3rem;
	padding: 0.85rem 2rem;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--black, #0e0e0e);
	color: var(--wp--preset--color--white, #fff);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}
.muh-form__actions button:hover { background: var(--wp--preset--color--charcoal, #2a2724); }
@media (max-width: 639px) { .muh-form__actions button { width: 100%; } }

/* Honeypot: hidden from people and assistive tech, still visible to naive bots */
.muh-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Result messages */
.muh-form-notice { margin: 0 0 1.25rem; padding: 1rem 1.25rem; border-radius: 10px; border-left: 4px solid; }
.muh-form-notice:focus { outline: none; } /* focused by script only, to announce the result */
.muh-form-notice p { margin: 0 0 0.35rem; }
.muh-form-notice ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.muh-form-notice--success { border-color: var(--wp--preset--color--success, #2e6b3f); background: #eef6f0; }
.muh-form-notice--error { border-color: var(--wp--preset--color--sale, #9e2a2b); background: #fbeeee; }

/* ---------------------------------------------------------------------
   Quick add panel (choose size/colour from product grids)
   Bottom sheet on phones, centred panel on larger screens.
   --------------------------------------------------------------------- */
.muh-qa__soldout { opacity: 0.55; cursor: default; }
.muh-qa-dialog *, .muh-qa-dialog *::before, .muh-qa-dialog *::after { box-sizing: border-box; }
.muh-qa-dialog {
	box-sizing: border-box;
	width: min(100%, 460px);
	max-height: 92vh;
	margin: auto;
	padding: 1.5rem 1.5rem 1.25rem;
	overflow: auto;
	border: 0;
	border-radius: 16px;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--black, #0e0e0e);
	box-shadow: 0 24px 60px rgb(0 0 0 / 0.25);
	font-family: var(--wp--preset--font-family--body, inherit);
}
.muh-qa-dialog::backdrop { background: rgb(14 14 14 / 0.55); }
@media (max-width: 599px) {
	.muh-qa-dialog {
		width: 100vw;
		max-width: 100vw;
		margin: auto 0 0;
		border-radius: 18px 18px 0 0;
		padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
	}
}
.muh-qa__close {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}
.muh-qa__close:hover { background: var(--wp--preset--color--ivory, #faf6f1); }
.muh-qa__head { display: flex; gap: 1rem; align-items: center; padding-right: 2.5rem; margin-bottom: 1rem; }
.muh-qa__img { flex: none; width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--wp--preset--color--ivory, #faf6f1); }
.muh-qa__name { margin: 0 0 0.25rem; font-family: inherit; font-size: 1rem !important; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.3; }
.muh-qa__price { margin: 0; font-weight: 600; }
.muh-qa__price del { color: var(--wp--preset--color--muted, #625b54); font-weight: 400; font-size: 0.875em; }
.muh-qa__price ins { text-decoration: none; color: var(--wp--preset--color--sale, #9e2a2b); }
.muh-qa__stock { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--wp--preset--color--muted, #625b54); }

.muh-qa__group { margin: 0 0 1rem; padding: 0; border: 0; }
.muh-qa__group legend { margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.muh-qa__chosen { font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--wp--preset--color--muted, #625b54); }
.muh-qa__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.muh-qa__opt { position: relative; cursor: pointer; }
.muh-qa__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.muh-qa__opt span {
	display: inline-grid;
	place-items: center;
	min-width: 3rem;
	min-height: 2.75rem;
	padding: 0 0.9rem;
	border: 1px solid #8f8780;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
}
.muh-qa__opt:hover span { border-color: var(--wp--preset--color--black, #0e0e0e); }
.muh-qa__opt input:checked + span { border-color: var(--wp--preset--color--black, #0e0e0e); background: var(--wp--preset--color--black, #0e0e0e); color: var(--wp--preset--color--gold-light, #e4c163); }
.muh-qa__opt input:focus-visible + span { outline: 2px solid var(--wp--preset--color--gold-deep, #8a6414); outline-offset: 2px; }
.muh-qa__opt.is-unavailable { cursor: not-allowed; }
.muh-qa__opt.is-unavailable span { color: #9a938c; border-style: dashed; text-decoration: line-through; } /* not colour alone */

.muh-qa__buy { display: flex; gap: 0.6rem; align-items: stretch; margin-top: 0.5rem; }
.muh-qa__qty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muh-qa__buy input[type="number"] { width: 4.5rem; min-height: 3rem; padding: 0 0.5rem; border: 1px solid #8f8780; border-radius: 8px; font: inherit; text-align: center; }
.muh-qa__add {
	flex: 1;
	min-height: 3rem;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--black, #0e0e0e);
	color: var(--wp--preset--color--white, #fff);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
}
.muh-qa__add:disabled { background: #b9b3ad; cursor: not-allowed; }
.muh-qa__hint { min-height: 1.2em; margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--wp--preset--color--muted, #625b54); }
.muh-qa__status:empty { display: none; }
.muh-qa__status { margin-top: 0.75rem; padding: 0.85rem 1rem; border-radius: 10px; background: var(--wp--preset--color--ivory, #faf6f1); }
.muh-qa__ok { margin: 0 0 0.6rem; font-weight: 600; color: var(--wp--preset--color--success, #2e6b3f); }
.muh-qa__err { margin: 0; color: var(--wp--preset--color--sale, #9e2a2b); }
.muh-qa__after { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.muh-qa__cart { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 8px; background: var(--wp--preset--color--gold-light, #e4c163); color: var(--wp--preset--color--black, #0e0e0e); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.muh-qa__link { padding: 0.5rem 0; border: 0; background: none; color: inherit; font: inherit; font-size: 0.875rem; text-decoration: underline; cursor: pointer; }
.muh-qa__details { display: inline-block; margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: inherit; }

/* Grid buttons: keep "Choose size" / "Add to cart" on one line on small cards */
@media (max-width: 599px) {
	.wc-block-product-template .wp-block-woocommerce-product-button .wp-block-button__link { white-space: nowrap; letter-spacing: 0.06em; padding-inline: 0.4rem; }
}
/* Same height for "Choose size" and "Add to cart" so rows line up */
.wc-block-product-template .wp-block-woocommerce-product-button .wp-block-button__link { min-height: 2.5rem; line-height: 1.2; }
