/**
 * MuscleCare WhatsApp Order — buttons and popup.
 *
 * Colours come from the settings as --mcwo-bg / --mcwo-fg / --mcwo-icon-size
 * (printed inline). Selectors are scoped to .mcwo-* with enough weight to win
 * over theme rules for bare button / input / h2 elements.
 */

:root {
	--mcwo-bg: #25d366;
	--mcwo-fg: #fff;
	--mcwo-icon-size: 40px;
	--mcwo-ink: #101a2c;
	--mcwo-muted: #7a8493;
	--mcwo-line: #dde3ec;
	--mcwo-surface: #f5f7fa;
	--mcwo-price: #0f8a43;
	--mcwo-error: #d92d20;
	--mcwo-radius: 0; /* Square corners, like the rest of the site. */
	--mcwo-heading: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif; /* The theme's body font, already loaded. */
	--mcwo-float-z: 55; /* Under the theme's drawers and modals. */
}

/* Buttons ---------------------------------------------------------------- */

.mcwo-btn {
	-webkit-appearance: none;
	appearance: none;
	overflow: visible; /* Themes may clip buttons; the tooltip sits outside. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	border: 0;
	background: var(--mcwo-bg);
	color: var(--mcwo-fg);
	font: inherit;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.mcwo-btn:hover,
.mcwo-btn:focus-visible {
	background: var(--mcwo-bg);
	color: var(--mcwo-fg);
	filter: brightness(.94);
	box-shadow: 0 8px 18px rgba(37, 211, 102, .32);
}

.mcwo-btn:focus-visible {
	outline: 2px solid var(--mcwo-ink);
	outline-offset: 2px;
}

.mcwo-btn .mcwo-icon {
	flex: none;
	fill: currentColor;
}

/* Small rounded-square icon on product cards. */
.mcwo-btn.mcwo-btn--icon {
	position: relative;
	flex: none;
	width: var(--mcwo-icon-size);
	height: var(--mcwo-icon-size);
	min-width: 0;
	padding: 0;
	border-radius: 0;
	vertical-align: middle;
}

.mcwo-btn--icon .mcwo-icon {
	width: 56%;
	height: 56%;
}

.mcwo-btn--icon:hover {
	transform: translateY(-1px);
}

/* Placed by the script next to a card's add-to-cart button: sit beside it. */
.mcwo-btn--injected {
	margin-left: auto !important;
}

/* Printed by woocommerce_after_shop_loop_item in standard themes. */
li.product > .mcwo-btn--icon:not(.mcwo-btn--injected) {
	margin: .5em 0 0 .4em;
}

/* Tooltip. */
.mcwo-btn--icon[data-mcwo-tip]::after {
	content: attr(data-mcwo-tip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 5;
	padding: 6px 10px;
	border-radius: 0;
	background: var(--mcwo-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

/* Its arrow, pointing down at the icon. */
.mcwo-btn--icon[data-mcwo-tip]::before {
	content: "";
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	z-index: 5;
	border: 6px solid transparent;
	border-top-color: var(--mcwo-ink);
	border-bottom-width: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.mcwo-btn--icon:hover::before,
.mcwo-btn--icon:focus-visible::before,
.mcwo-btn--icon:hover::after,
.mcwo-btn--icon:focus-visible::after {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

/* Large button on the product page. */
.mcwo-single {
	clear: both;
	margin: 14px 0 18px;
}

.mcwo-btn.mcwo-btn--button {
	min-height: 52px;
	padding: 13px 28px;
	border-radius: 0;
	font-weight: 700;
	font-size: 15.5px;
}

.mcwo-btn--button .mcwo-icon {
	width: 22px;
	height: 22px;
}

.mcwo-btn--button.mcwo-btn--full {
	display: flex;
	width: 100%;
}

.mcwo-single__notice {
	margin: 8px 0 0;
	color: var(--mcwo-error);
	font-size: 13.5px;
	font-weight: 600;
}

/* Themes that style every [type="button"] / [type="submit"] (Gymnax: a
   yellow background, a dark one on :hover / :focus) — the button keeps its
   WhatsApp colours whatever order the stylesheets load in. */
.mcwo-btn.mcwo-btn,
.mcwo-btn.mcwo-btn:hover,
.mcwo-btn.mcwo-btn:focus {
	border: 0;
	background: var(--mcwo-bg);
	color: var(--mcwo-fg);
}

/* Popup ------------------------------------------------------------------ */

html.mcwo-locked,
html.mcwo-locked body {
	overflow: hidden;
}

.mcwo-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: var(--mcwo-ink);
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
}

.mcwo-modal button {
	letter-spacing: normal;
	text-transform: none;
}

.mcwo-modal[hidden],
.mcwo-modal [hidden],
.mcwo-single [hidden] {
	display: none !important;
}

.mcwo-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(16, 26, 44, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	animation: mcwo-fade .2s ease;
}

.mcwo-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: hidden;
	padding: 6px;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 24px 60px rgba(16, 26, 44, .3);
	animation: mcwo-pop .22s cubic-bezier(.2, .9, .3, 1.15);
}

.mcwo-modal__dialog:focus {
	outline: none;
}

/* Scrolls inside the card's padding so the scrollbar stays clear of the rounded edge. */
.mcwo-modal__body {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px 26px 26px;
	/* Themes that set scrollbar-width globally would make Chrome ignore the styles below. */
	scrollbar-width: auto;
	scrollbar-color: auto;
}

.mcwo-modal__body::-webkit-scrollbar {
	width: 12px;
}

.mcwo-modal__body::-webkit-scrollbar-track {
	margin: 10px 0;
	background: transparent;
}

.mcwo-modal__body::-webkit-scrollbar-thumb {
	border: 4px solid transparent;
	border-radius: 0;
	background: #d0d5dd padding-box;
}

.mcwo-modal__body::-webkit-scrollbar-thumb:hover {
	background-color: #98a2b3;
}

@supports not selector(::-webkit-scrollbar) {
	.mcwo-modal__body {
		scrollbar-width: thin;
		scrollbar-color: #d0d5dd transparent;
	}
}

.mcwo-modal .mcwo-modal__close {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #98a2b3;
	cursor: pointer;
	box-shadow: none;
}

.mcwo-modal .mcwo-modal__close:hover,
.mcwo-modal .mcwo-modal__close:focus-visible {
	background: var(--mcwo-surface);
	color: var(--mcwo-ink);
}

.mcwo-modal__head {
	margin-bottom: 22px;
	text-align: center;
}

.mcwo-modal__logo {
	display: inline-flex;
	color: var(--mcwo-bg);
}

.mcwo-modal__logo .mcwo-icon {
	width: 44px;
	height: 44px;
}

.mcwo-modal .mcwo-modal__title {
	margin: 12px 0 6px;
	padding: 0;
	font-family: var(--mcwo-heading); /* Not the theme's Oswald headings. */
	color: var(--mcwo-ink);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.mcwo-modal .mcwo-modal__subtitle {
	margin: 0;
	color: var(--mcwo-muted);
	font-size: 13.5px;
}

/* Fields. */
.mcwo-form {
	display: grid;
	gap: 16px;
	margin: 0;
}

.mcwo-field {
	display: grid;
	gap: 7px;
}

.mcwo-modal .mcwo-field label {
	margin: 0;
	color: var(--mcwo-ink);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
}

.mcwo-req {
	color: var(--mcwo-error);
}

.mcwo-modal .mcwo-field input,
.mcwo-modal .mcwo-field textarea {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 11px 15px;
	border: 1px solid var(--mcwo-line);
	border-radius: var(--mcwo-radius);
	background: #fff;
	color: var(--mcwo-ink);
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.mcwo-modal .mcwo-field textarea {
	min-height: 84px;
	resize: vertical;
}

.mcwo-modal .mcwo-field input::placeholder,
.mcwo-modal .mcwo-field textarea::placeholder {
	color: #8a94a3;
	opacity: 1;
}

.mcwo-modal .mcwo-field input:focus,
.mcwo-modal .mcwo-field textarea:focus {
	border-color: var(--mcwo-bg);
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, .2);
}

.mcwo-modal .mcwo-field [aria-invalid="true"],
.mcwo-modal .mcwo-field [aria-invalid="true"]:focus {
	border-color: var(--mcwo-error);
	box-shadow: 0 0 0 3px rgba(217, 45, 32, .12);
}

.mcwo-field__error,
.mcwo-form__error {
	margin: 0;
	color: var(--mcwo-error);
	font-size: 12.5px;
	font-weight: 600;
}

.mcwo-form__error {
	font-size: 13.5px;
	text-align: center;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.mcwo-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Product summary. */
.mcwo-summary {
	display: grid;
	gap: 8px;
	padding: 13px 15px;
	border-radius: var(--mcwo-radius);
	background: var(--mcwo-surface);
}

.mcwo-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.mcwo-summary__name {
	min-width: 0;
	color: var(--mcwo-ink);
	font-size: 14px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.mcwo-summary__price {
	flex: none;
	color: var(--mcwo-price);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.mcwo-summary__meta {
	color: var(--mcwo-muted);
	font-size: 12.5px;
}

.mcwo-summary.is-loading .mcwo-summary__name {
	color: var(--mcwo-muted);
	font-weight: 600;
}

.mcwo-summary__qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mcwo-qty {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--mcwo-line);
	border-radius: 0;
	background: #fff;
}

.mcwo-modal .mcwo-qty__btn {
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--mcwo-ink);
	font: inherit;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.mcwo-modal .mcwo-qty__btn:hover:not(:disabled) {
	background: var(--mcwo-surface);
}

.mcwo-modal .mcwo-qty__btn:disabled {
	color: #c3c9d2;
	cursor: default;
}

.mcwo-modal .mcwo-qty__input {
	-webkit-appearance: none;
	appearance: none;
	-moz-appearance: textfield;
	width: 42px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-inline: 1px solid var(--mcwo-line);
	border-radius: 0;
	background: #fff;
	color: var(--mcwo-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	box-shadow: none;
}

.mcwo-modal .mcwo-qty__input::-webkit-outer-spin-button,
.mcwo-modal .mcwo-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.mcwo-modal .mcwo-qty__input:focus {
	outline: 2px solid var(--mcwo-bg);
	outline-offset: -2px;
}

.mcwo-summary__total {
	color: var(--mcwo-ink);
	font-size: 13.5px;
	font-weight: 700;
}

/* Send. */
.mcwo-modal .mcwo-submit {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	margin: 2px 0 0;
	padding: 13px 22px;
	border: 0;
	border-radius: 0;
	background: var(--mcwo-bg);
	color: var(--mcwo-fg);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .4px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	transition: filter .18s ease, box-shadow .18s ease;
}

.mcwo-modal .mcwo-submit:hover,
.mcwo-modal .mcwo-submit:focus-visible {
	background: var(--mcwo-bg);
	color: var(--mcwo-fg);
	filter: brightness(.94);
	box-shadow: 0 10px 22px rgba(37, 211, 102, .3);
}

.mcwo-modal .mcwo-submit:focus-visible {
	outline: 2px solid var(--mcwo-ink);
	outline-offset: 2px;
}

.mcwo-modal .mcwo-submit:disabled {
	opacity: .6;
	cursor: default;
}

.mcwo-modal .mcwo-submit .mcwo-icon {
	width: 20px;
	height: 20px;
}

/* After sending. */
.mcwo-modal__dialog.is-done .mcwo-modal__title,
.mcwo-modal__dialog.is-done .mcwo-modal__subtitle {
	display: none;
}

.mcwo-done {
	display: grid;
	justify-items: center;
	gap: 12px;
	text-align: center;
}

.mcwo-done__check {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(37, 211, 102, .14);
	color: var(--mcwo-price);
}

.mcwo-modal .mcwo-done__title {
	margin: 0;
	font-family: var(--mcwo-heading);
	color: var(--mcwo-ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}

.mcwo-done__title:focus {
	outline: none;
}

.mcwo-done__text {
	margin: 0 0 6px;
	color: var(--mcwo-muted);
	font-size: 14px;
}

.mcwo-modal .mcwo-done__close {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 8px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--mcwo-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}

.mcwo-modal .mcwo-done__close:hover {
	background: var(--mcwo-surface);
	color: var(--mcwo-ink);
}

/* Floating button ---------------------------------------------------------- */

.mcwo-float {
	position: fixed;
	right: max(22px, env(safe-area-inset-right));
	bottom: calc(22px + env(safe-area-inset-bottom));
	z-index: var(--mcwo-float-z);
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--mcwo-bg);
	color: var(--mcwo-fg);
	text-decoration: none;
	box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
	animation: mcwo-float-in .35s cubic-bezier(.2, .9, .3, 1.2) backwards;
}

.mcwo-float--left {
	right: auto;
	left: max(22px, env(safe-area-inset-left));
}

.mcwo-float:hover,
.mcwo-float:focus-visible {
	color: var(--mcwo-fg);
	filter: brightness(1.05);
	box-shadow: 0 16px 34px rgba(37, 211, 102, .5);
	transform: translateY(-2px);
}

.mcwo-float:focus-visible {
	outline: 3px solid var(--mcwo-ink);
	outline-offset: 3px;
}

.mcwo-float .mcwo-icon {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

/* Tooltip: above the button, lined up with its outer edge (the button is in a
   corner, so a centred tip could run off the screen), the arrow pointing at its
   middle. */
.mcwo-float__tip {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	padding: 8px 12px;
	border-radius: 0;
	background: var(--mcwo-ink);
	color: #fff;
	font-family: var(--mcwo-heading);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .2px;
	white-space: nowrap;
	/* The faint ring keeps it apart from dark sections behind it. */
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px rgba(16, 26, 44, .22);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.mcwo-float__tip::after {
	content: "";
	position: absolute;
	top: 100%;
	right: 23px; /* Half the button (29px), less half the arrow. */
	border: 6px solid transparent;
	border-top-color: var(--mcwo-ink);
	border-bottom-width: 0;
}

.mcwo-float--left .mcwo-float__tip {
	right: auto;
	left: 0;
}

.mcwo-float--left .mcwo-float__tip::after {
	right: auto;
	left: 23px;
}

.mcwo-float:focus-visible .mcwo-float__tip {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

@media (hover: hover) {
	.mcwo-float:hover .mcwo-float__tip {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
}

/* Draggable: visitors can move the button anywhere (drag code at the end of
   frontend.js, which sets left/top inline and keeps it on screen). */
:root {
	/* Read by the script to keep the button clear of notches. */
	--mcwo-safe-top: env(safe-area-inset-top, 0px);
	--mcwo-safe-right: env(safe-area-inset-right, 0px);
	--mcwo-safe-bottom: env(safe-area-inset-bottom, 0px);
	--mcwo-safe-left: env(safe-area-inset-left, 0px);
}

.mcwo-float {
	touch-action: none; /* A drag that starts on the button moves the button, not the page. */
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}

@media (hover: hover) and (pointer: fine) {
	.mcwo-float {
		cursor: grab;
	}
}

.mcwo-float.mcwo-float--dragging {
	cursor: grabbing;
	transform: none;
	transition: none;
	animation: none;
	box-shadow: 0 22px 44px rgba(37, 211, 102, .55);
}

.mcwo-float.mcwo-float--dragging .mcwo-float__tip {
	opacity: 0;
	visibility: hidden;
	transition: none;
}

/* Tooltip on the button's side of the screen once it has been moved... */
.mcwo-float.mcwo-float--tip-left .mcwo-float__tip {
	right: auto;
	left: 0;
}

.mcwo-float.mcwo-float--tip-left .mcwo-float__tip::after {
	right: auto;
	left: 23px;
}

.mcwo-float.mcwo-float--tip-right .mcwo-float__tip {
	left: auto;
	right: 0;
}

.mcwo-float.mcwo-float--tip-right .mcwo-float__tip::after {
	left: auto;
	right: 23px;
}

/* ...and under it when it sits at the top of the screen. */
.mcwo-float.mcwo-float--tip-below .mcwo-float__tip {
	top: calc(100% + 12px);
	bottom: auto;
}

.mcwo-float.mcwo-float--tip-below .mcwo-float__tip::after {
	top: auto;
	bottom: 100%;
	border-top-width: 0;
	border-bottom-width: 6px;
	border-top-color: transparent;
	border-bottom-color: var(--mcwo-ink);
}

@media (max-width: 640px) {
	.mcwo-float.mcwo-float--tip-left .mcwo-float__tip::after {
		left: 21px; /* Half the smaller button, less half the arrow. */
	}

	.mcwo-float.mcwo-float--tip-right .mcwo-float__tip::after {
		right: 21px;
	}
}

html.mcwo-locked .mcwo-float {
	visibility: hidden;
}

/* Product enquiry popup (floating button) -------------------------------------------- */

.mcwo-modal--general .mcwo-modal__dialog {
	max-width: 560px;
	border-radius: 0;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}

.mcwo-modal--general .mcwo-modal__body {
	padding: 28px 34px 26px;
}

.mcwo-modal--general .mcwo-modal__close {
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	background: #f1f4f8;
	color: #5a6675;
}

.mcwo-modal--general .mcwo-modal__close:hover,
.mcwo-modal--general .mcwo-modal__close:focus-visible {
	background: #e2e7ef;
	color: var(--mcwo-ink);
}

.mcwo-modal--general .mcwo-modal__head {
	display: grid;
	justify-items: center;
	gap: 10px;
	margin-bottom: 24px;
}

.mcwo-modal__badge {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #e9f9ef;
	color: var(--mcwo-bg);
}

.mcwo-modal__badge .mcwo-icon {
	width: 32px;
	height: 32px;
	fill: currentColor;
}

.mcwo-modal.mcwo-modal--general .mcwo-modal__title {
	margin: 0;
	font-family: var(--mcwo-heading);
	font-size: 26px;
	letter-spacing: -.2px;
	line-height: 1.2;
}

.mcwo-modal.mcwo-modal--general .mcwo-modal__subtitle {
	max-width: 400px;
	font-size: 14px;
	line-height: 1.5;
}

.mcwo-form--general {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.mcwo-form--general > * {
	grid-column: 1 / -1;
}

.mcwo-form--general > .mcwo-field--half {
	grid-column: auto;
}

.mcwo-modal .mcwo-form--general .mcwo-field label {
	font-family: var(--mcwo-heading);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .7px;
	text-transform: uppercase;
}

.mcwo-modal .mcwo-form--general .mcwo-field label .mcwo-req {
	color: #e4232b;
}

.mcwo-opt {
	color: #8a94a3;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.mcwo-modal .mcwo-form--general .mcwo-field input,
.mcwo-modal .mcwo-form--general .mcwo-field textarea {
	min-height: 46px;
	padding: 12px 13px;
	border-width: 1.5px;
	border-radius: 0;
	font-size: 14px;
}

.mcwo-modal .mcwo-form--general .mcwo-field textarea {
	min-height: 78px;
	background: #fbfcfe;
}

.mcwo-modal .mcwo-form--general .mcwo-field textarea:focus {
	background: #fff;
}

/* Photo: a dashed drop box; the file input lies over it, so a click or a key
   press anywhere on it opens the file picker. */
.mcwo-drop {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 24px 18px;
	border: 1.6px dashed #d5dce6;
	border-radius: 0;
	background: #fbfcfe;
	color: #8a94a3;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.mcwo-drop:hover,
.mcwo-drop.is-over {
	border-color: var(--mcwo-bg);
	background: #f2fbf6;
}

.mcwo-drop:focus-within {
	border-color: var(--mcwo-bg);
	box-shadow: 0 0 0 3px rgba(37, 211, 102, .2);
}

.mcwo-modal .mcwo-field input.mcwo-drop__input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
	box-shadow: none;
}

.mcwo-drop__icon {
	width: 30px;
	height: 30px;
}

.mcwo-drop__text {
	color: #5a6675;
	font-size: 13.5px;
}

.mcwo-drop__text b {
	color: #0d9c4a;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mcwo-drop__hint {
	color: #a3adba;
	font-size: 12px;
}

/* Mouse: one box, its file input over all of it (the wrapper makes no box of
   its own). The camera tile and the tile labels are for touch screens. */
.mcwo-drop__browse {
	display: contents;
}

.mcwo-drop__camera,
.mcwo-drop__label {
	display: none;
}

.mcwo-drop.is-busy {
	opacity: .6;
	pointer-events: none;
}

/* Touch: two tiles, "Take photo" (the back camera) and "Choose file", each
   with its own file input over it. */
@media (pointer: coarse) {
	.mcwo-drop {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		justify-items: stretch;
		gap: 10px;
		padding: 14px;
		cursor: default;
	}

	.mcwo-drop:hover {
		border-color: #d5dce6;
		background: #fbfcfe;
	}

	.mcwo-drop:focus-within {
		border-color: #d5dce6;
		box-shadow: none;
	}

	.mcwo-drop__camera,
	.mcwo-drop__browse {
		position: relative;
		display: grid;
		align-content: center;
		justify-items: center;
		gap: 6px;
		min-height: 88px;
		padding: 14px 8px;
		border-radius: 0;
		font-family: var(--mcwo-heading);
		font-size: 14px;
		font-weight: 700;
		line-height: 1.2;
		-webkit-tap-highlight-color: transparent;
	}

	.mcwo-drop__camera {
		background: var(--mcwo-bg);
		color: var(--mcwo-fg);
	}

	.mcwo-drop__browse {
		border: 1.5px solid #bfe8cf;
		background: #fff;
		color: #0d9c4a;
	}

	.mcwo-drop__camera:active,
	.mcwo-drop__browse:active {
		transform: scale(.97);
	}

	.mcwo-drop__camera:focus-within,
	.mcwo-drop__browse:focus-within {
		outline: 2px solid var(--mcwo-ink);
		outline-offset: 2px;
	}

	.mcwo-drop__camera .mcwo-drop__icon,
	.mcwo-drop__browse .mcwo-drop__icon {
		width: 26px;
		height: 26px;
	}

	.mcwo-drop__label {
		display: block;
	}

	.mcwo-drop__text {
		display: none;
	}

	.mcwo-drop__hint {
		grid-column: 1 / -1;
	}
}

.mcwo-file {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1.5px solid #cfe9d9;
	border-radius: 0;
	background: #f4fbf7;
}

.mcwo-file__thumb {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border: 1px solid #e2ece7;
	border-radius: 0;
	background: #fff;
	color: var(--mcwo-bg);
}

.mcwo-file__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mcwo-file__info {
	display: grid;
	flex: 1;
	gap: 3px;
	min-width: 0;
}

.mcwo-file__name {
	overflow: hidden;
	color: var(--mcwo-ink);
	font-family: var(--mcwo-heading);
	font-size: 14.5px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mcwo-file__meta {
	color: var(--mcwo-muted);
	font-size: 12px;
}

.mcwo-file.is-done .mcwo-file__meta {
	color: var(--mcwo-price);
	font-weight: 600;
}

.mcwo-file__bar {
	display: block;
	height: 4px;
	margin-top: 3px;
	overflow: hidden;
	border-radius: 0;
	background: #dcefe3;
}

.mcwo-file__bar span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--mcwo-bg);
	transition: width .2s ease;
}

.mcwo-file.is-done .mcwo-file__bar {
	display: none;
}

.mcwo-modal .mcwo-file__remove {
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #b3bdca;
	cursor: pointer;
	box-shadow: none;
}

.mcwo-modal .mcwo-file__remove:hover,
.mcwo-modal .mcwo-file__remove:focus-visible {
	background: #fff;
	color: #e4232b;
}

.mcwo-modal .mcwo-file__remove:focus-visible {
	outline: 2px solid var(--mcwo-ink);
	outline-offset: 1px;
}

.mcwo-modal.mcwo-modal--general .mcwo-submit {
	min-height: 54px;
	margin-top: 8px;
	padding: 15px 22px;
	border-radius: 0;
	font-family: var(--mcwo-heading);
	font-size: 16.5px;
	letter-spacing: .3px;
	text-transform: none;
	box-shadow: 0 10px 24px rgba(37, 211, 102, .32);
}

.mcwo-modal.mcwo-modal--general .mcwo-submit .mcwo-icon {
	width: 21px;
	height: 21px;
	fill: currentColor;
}

.mcwo-modal.mcwo-modal--general .mcwo-submit:disabled {
	opacity: .7;
	filter: none;
	box-shadow: none;
}

.mcwo-form__note {
	margin: -4px 0 0;
	color: #a3adba;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

/* Sent: the check mark replaces the WhatsApp badge and title. */
.mcwo-modal--general .mcwo-modal__dialog.is-done .mcwo-modal__head {
	display: none;
}

.mcwo-modal--general .mcwo-done {
	padding: 10px 0 2px;
}

/* Gymnax theme (MuscleCare) ------------------------------------------------ */

/* Product cards: the theme slides a dark full-width "Add to cart" bar up over
   the bottom of the image on hover (always shown on touch screens). The icon
   joins that bar as a green square of the same height, sliding with it. */
.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner .pt-product-content {
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner .pt-product-content > a.button,
.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner .pt-product-content > .added_to_cart {
	flex: 1 1 auto;
	min-width: 0;
	margin-top: 0; /* WooCommerce's 1em would make the bar, and the icon, taller. */
}

.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner .pt-product-content .mcwo-btn.mcwo-btn--icon {
	--mcwo-icon-size: 60px;
	flex: none;
	order: 2; /* After Add to cart / View cart. */
	width: 60px;
	height: auto;
	min-height: 60px;
	margin: 0 !important;
	border-radius: 0;
	pointer-events: auto; /* The theme's overlay lets clicks through. */
	transform: translateY(60px);
	transition: transform .5s ease-in-out, filter .18s ease, box-shadow .18s ease;
}

.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner .pt-product-content .mcwo-btn--icon .mcwo-icon {
	width: 26px;
	height: 26px;
}

.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner:hover .pt-product-content .mcwo-btn.mcwo-btn--icon,
.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner:focus-within .pt-product-content .mcwo-btn.mcwo-btn--icon {
	transform: translateY(0);
}

.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner .pt-product-content .mcwo-btn.mcwo-btn--icon:hover,
.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner .pt-product-content .mcwo-btn.mcwo-btn--icon:focus-visible {
	box-shadow: none;
	outline-offset: -3px;
}

/* Keyboard users reach the buttons without hovering: show the bar. */
.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner:focus-within .pt-product-content {
	bottom: 0;
	opacity: 1;
}

.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner:focus-within .pt-product-content a {
	transform: translateY(0);
}

/* The tooltip sits over the image, right-aligned so it stays inside the card. */
.woocommerce ul.products li.product .pt-product-content .mcwo-btn--icon[data-mcwo-tip]::after {
	left: auto;
	right: 6px;
	transform: translateY(4px);
	font-family: var(--body-fonts, inherit);
	letter-spacing: normal;
	text-transform: none;
}

.woocommerce ul.products li.product .pt-product-content .mcwo-btn--icon:hover::after,
.woocommerce ul.products li.product .pt-product-content .mcwo-btn--icon:focus-visible::after {
	transform: none;
}

/* Same as the theme's own CSS: on touch screens the bar is always shown. */
@media (max-width: 1024px), (hover: none) {
	.woocommerce ul.products li.product .pt-product-item .pt-product-img-inner .pt-product-content .mcwo-btn.mcwo-btn--icon {
		transform: translateY(0);
	}
}

/* WooCommerce product blocks (e.g. "New in store" on the empty cart): a square
   icon as tall as the button, beside it. */
.wc-block-grid__product .wc-block-grid__product-add-to-cart:has(.mcwo-btn) {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 6px;
}

/* WooCommerce centres the button with auto margins (!important); the row does it now. */
.wc-block-grid__product .wc-block-grid__product-add-to-cart:has(.mcwo-btn) > a {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.wc-block-grid__product .wc-block-grid__product-add-to-cart .mcwo-btn.mcwo-btn--icon {
	width: 56px; /* As tall as the theme's button. */
	height: auto;
	min-height: 40px;
	margin: 0 !important;
	border-radius: 0;
}

/* Product page: square and uppercase like the theme's Add to cart button. */
.single-product .mcwo-single .mcwo-btn.mcwo-btn--button {
	min-height: 60px;
	border-radius: 0;
	font-family: var(--title-fonts, inherit);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Floating button: stacked above the theme's back-to-top button (#top, 50px,
   30px from the corner), centred on it. */
.mcwo-float.mcwo-float--right {
	right: max(26px, env(safe-area-inset-right));
	bottom: calc(96px + env(safe-area-inset-bottom));
}

.mcwo-float.mcwo-float--left {
	left: max(26px, env(safe-area-inset-left));
	bottom: calc(30px + env(safe-area-inset-bottom));
}

@keyframes mcwo-float-in {
	from { opacity: 0; transform: scale(.6); }
}

@keyframes mcwo-fade {
	from { opacity: 0; }
}

@keyframes mcwo-pop {
	from { opacity: 0; transform: translateY(12px) scale(.97); }
}

@media (max-width: 480px) {
	.mcwo-modal {
		padding: 12px;
	}

	.mcwo-modal__dialog {
		border-radius: 0;
	}

	.mcwo-modal__body {
		padding: 20px 14px 16px;
	}

	.mcwo-modal__head {
		margin-bottom: 18px;
	}

	.mcwo-form {
		gap: 14px;
	}

	.mcwo-modal--general .mcwo-modal__body {
		padding: 24px 16px 18px;
	}

	.mcwo-modal.mcwo-modal--general .mcwo-modal__title {
		font-size: 22px;
	}

	.mcwo-form--general > .mcwo-field--half {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.mcwo-float {
		right: max(16px, env(safe-area-inset-right));
		bottom: calc(16px + env(safe-area-inset-bottom));
		width: 54px;
		height: 54px;
	}

	.mcwo-float--left {
		right: auto;
		left: max(16px, env(safe-area-inset-left));
	}

	.mcwo-float .mcwo-icon {
		width: 28px;
		height: 28px;
	}

	.mcwo-float__tip::after {
		right: 21px; /* Half the smaller button (27px), less half the arrow. */
	}

	.mcwo-float--left .mcwo-float__tip::after {
		right: auto;
		left: 21px;
	}
}

@media print {
	.mcwo-float {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mcwo-btn,
	.mcwo-float,
	.mcwo-float__tip,
	.mcwo-modal__overlay,
	.mcwo-modal__dialog,
	.mcwo-file__bar span,
	.mcwo-btn--icon[data-mcwo-tip]::before,
	.mcwo-btn--icon[data-mcwo-tip]::after {
		animation: none;
		transition: none;
	}
}
