@media (max-width: 767px) {
	/* The prompt uses the bottom-sheet picker; keep this legacy inline helper
	   out of the original PDP flow unless an integration explicitly shows it. */
	.wpsize-selection-guidance {
		display: none !important;
	}

	.wpsize-measurements-box {
		width: 100%;
		margin: 16px 0;
		padding: 16px;
		box-sizing: border-box;
		background: #F7F2FA;
	}

	.wpsize-measurements-title {
		display: block;
		margin: 0 0 6px;
		font-weight: 700;
		line-height: 1.25;
	}

	.wpsize-measurements-box > b,
	.wpsize-measurements-box > strong {
		display: block;
		line-height: 1.6;
	}

	.single-product .site {
		padding-bottom: 96px;
	}

	form.variations_form .single_add_to_cart_button,
	form.variations_form .woocommerce-variation-add-to-cart > .quantity {
		display: none !important;
	}

	.wpsize-sticky-add-to-cart {
		position: fixed;
		z-index: 100;
		right: 0;
		bottom: 0;
		left: 0;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid #E5D8ED;
		background: rgba(255, 255, 255, .98);
		box-shadow: none;
		box-sizing: border-box;
		display: flex;
		align-items: stretch;
		gap: 10px;
	}

	.wpsize-sticky-quantity {
		flex: 0 0 102px;
		display: grid;
		grid-template-columns: 30px 1fr 30px;
		min-height: 52px;
		border: 1px solid #E5D8ED;
		border-radius: 4px;
		background: #fff;
		overflow: hidden;
	}

	.wpsize-sticky-quantity__button {
		padding: 0;
		border: 0;
		background: #fff;
		color: #4B315E;
		font: inherit;
		font-size: 19px;
		font-weight: 500;
		line-height: 1;
	}

	.wpsize-sticky-quantity__button:first-child {
		border-right: 1px solid #E5D8ED;
	}

	.wpsize-sticky-quantity__button:last-child {
		border-left: 1px solid #E5D8ED;
	}

	.wpsize-sticky-quantity__button:disabled {
		color: #BFB6C4;
	}

	.wpsize-sticky-quantity__value {
		display: grid;
		place-items: center;
		color: #4B315E;
		font-size: 14px;
		font-weight: 700;
	}

	.wpsize-sticky-button {
		flex: 1 1 auto;
		min-width: 0;
		min-height: 52px;
		border-radius: 4px;
		font: inherit;
		font-weight: 700;
	}

	.wpsize-sticky-button {
		border: 1px solid #4B315E;
		background: #F7F2FA;
		color: #4B315E;
		font-size: 14px;
		box-shadow: none;
	}

	.wpsize-sticky-add-to-cart.is-size-selected .wpsize-sticky-button {
		border-color: #df2867;
		background: #df2867;
		color: #fff;
		box-shadow: none;
	}

	.wpsize-sticky-button:disabled {
		border-color: #cfc7ca;
		background: #cfc7ca;
		box-shadow: none;
	}

	/* Keep WP Chat App clear of the PDP purchase bar. The panel tracks the
	   launcher so opening a chat does not cover the current action either. */
	.wa__btn_popup .wa__btn_popup_txt {
		display: none !important;
	}

	.single-product .wa__btn_popup {
		bottom: calc(84px + env(safe-area-inset-bottom)) !important;
	}

	.single-product .wa__popup_chat_box {
		bottom: calc(156px + env(safe-area-inset-bottom)) !important;
	}

	body.mobile-toggled .wpsize-sticky-add-to-cart {
		display: none;
	}

	body.wpsize-size-sheet-open {
		overflow: hidden;
	}

	.wpsize-size-sheet {
		position: fixed;
		/* WP Chat App uses z-index: 999999999. Keep the size picker above it. */
		z-index: 1000000000;
		inset: 0;
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		transition: opacity .2s ease, visibility .2s ease;
	}

	.wpsize-size-sheet.is-open {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
	}

	.wpsize-size-sheet__backdrop {
		position: absolute;
		inset: 0;
		background: rgba(33, 18, 26, .46);
	}

	.wpsize-size-sheet__dialog {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		max-height: 72vh;
		padding: 20px 18px max(20px, env(safe-area-inset-bottom));
		border-radius: 10px 10px 0 0;
		background: #fff;
		box-shadow: none;
		transform: translateY(100%);
		transition: transform .24s ease;
		overflow-y: auto;
	}

	.wpsize-size-sheet.is-open .wpsize-size-sheet__dialog {
		transform: translateY(0);
	}

	.wpsize-size-sheet__header {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 16px;
		margin-bottom: 18px;
	}

	.wpsize-size-sheet__header span {
		display: block;
		margin-bottom: 3px;
		color: #977985;
		font-size: 10px;
		font-weight: 800;
		letter-spacing: .09em;
	}

	.wpsize-size-sheet__header h2 {
		margin: 0;
		color: #25171e;
		font-size: 21px;
		line-height: 1.2;
	}

	.wpsize-size-sheet__close {
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		border-radius: 3px;
		background: transparent;
		color: #5c3d4a;
		font-size: 25px;
		line-height: 1;
	}

	.wpsize-size-sheet__choices {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
		color: #6f5862;
		font-size: 14px;
	}

	.wpsize-size-sheet__choice {
		min-height: 50px;
		padding: 9px;
		border: 1px solid #ded3d8;
		border-radius: 3px;
		background: #fff;
		color: #25171e;
		font: inherit;
		font-size: 14px;
		font-weight: 750;
	}

	.wpsize-size-sheet__choice.is-selected {
		border-color: #df2867;
		background: #fff2f6;
		color: #bd1d55;
	}
}

