.mugpp-wrapper,
.mugpp-wrapper * {
	box-sizing: border-box;
}

.mugpp-wrapper {
	width: 100%;
}

.mugpp-form {
	--mugpp-gap: 14px;
	display: flex;
	width: 100%;
	margin: 0 !important;
	flex-direction: column;
	gap: var(--mugpp-gap);
}

.mugpp-variations {
	display: flex;
	flex-direction: column;
	gap: var(--mugpp-gap);
}

.mugpp-attribute {
	min-width: 0;
}

.mugpp-attribute-label {
	display: block;
	margin: 0 0 8px;
	color: #212529;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
}

.mugpp-selected-name {
	font-weight: inherit;
}

.mugpp-swatches {
	display: flex;
	min-width: 0;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 3px;
}

.mugpp-swatch {
	--mugpp-active-ring: #e80645;
	position: relative;
	display: block;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 3px;
	cursor: pointer;
	background-color: var(--mugpp-swatch-color) !important;
	background-image: none !important;
	background-clip: content-box !important;
	border: 2px solid #e3e7ee;
	border-radius: 50%;
	box-shadow: 0 0 0 0 transparent;
	transition: box-shadow .18s ease, opacity .18s ease, transform .18s ease;
	appearance: none;
}

.mugpp-swatch:hover:not(:disabled) {
	transform: translateY(-1px);
}

.mugpp-swatch.is-selected {
	border-color: #e80645;
	box-shadow: 0 0 0 2px var(--mugpp-active-ring);
}

.mugpp-swatch:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.mugpp-swatch:disabled {
	opacity: .3;
	cursor: not-allowed;
}

.mugpp-swatch:disabled::after {
	position: absolute;
	content: "";
	width: 2px;
	height: 118%;
	background: #6b7280;
	top: -9%;
	left: calc(50% - 1px);
	transform: rotate(45deg);
}

.mugpp-select-wrap {
	position: relative;
	display: block;
	width: 100%;
	isolation: isolate;
}

.mugpp-select {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 11px 20px;
	color: #263451;
	background-color: #fff;
	background-image: none !important;
	border: 1px solid #dce2eb;
	border-radius: 9px;
	outline: none;
	box-shadow: none;
	cursor: pointer;
	font-size: 14px;
	line-height: normal;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
}

.mugpp-select:focus {
	border-color: #e80645;
	box-shadow: 0 0 0 3px rgba(232, 6, 69, .1);
}

.mugpp-select:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.mugpp-select-arrow {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 16px;
	display: block;
	width: 8px;
	height: 8px;
	color: #67759b;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
	transform-origin: center;
}

.mugpp-select-wrap.is-enhanced > .mugpp-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.mugpp-select-wrap.is-enhanced > .mugpp-select-arrow {
	display: none;
}

.mugpp-select-trigger {
	position: relative;
	display: flex !important;
	width: 100%;
	height: 50px;
	min-height: 50px;
	margin: 0;
	padding: 11px 20px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: #263451;
	background: #f2f4fb;
	border: 0;
	border-radius: 9px;
	box-shadow: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	text-align: right;
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.mugpp-select-trigger:focus-visible {
	outline: 2px solid rgba(232, 6, 69, .35);
	outline-offset: 2px;
}

.mugpp-select-trigger:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.mugpp-select-trigger-text {
	width: 100%;
	min-width: 0;
	padding-left: 20px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mugpp-select-trigger .mugpp-select-arrow {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 16px;
	flex: 0 0 auto;
	transform: translateY(-70%) rotate(45deg);
	transition: transform .18s ease;
}

.mugpp-select-wrap.is-open .mugpp-select-trigger .mugpp-select-arrow {
	transform: translateY(-25%) rotate(225deg);
}

.mugpp-select-dropdown {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 6px);
	left: 0;
	display: none;
	width: 100%;
	padding: 8px;
	background: #f2f4fb;
	border: 1px solid #dee2ed;
	border-radius: 9px;
	box-shadow: 0 10px 28px rgba(2, 25, 89, .12);
}

.mugpp-select-wrap.is-open {
	z-index: 30;
}

.mugpp-select-wrap.is-open .mugpp-select-dropdown {
	display: block;
}

.mugpp-select-wrap.is-dropup .mugpp-select-dropdown {
	top: auto;
	bottom: calc(100% + 6px);
}

.mugpp-select-options {
	display: flex;
	max-height: 260px;
	margin: 0;
	padding: 0;
	flex-direction: column;
	gap: 5px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.mugpp-select-option {
	display: flex !important;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 10px;
	align-items: center;
	justify-content: flex-start;
	color: #021959;
	background: #fff;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-align: right;
	transition: color .15s ease, background-color .15s ease, opacity .15s ease;
}

.mugpp-select-option:hover,
.mugpp-select-option:focus-visible,
.mugpp-select-option.is-selected {
	color: #021959;
	background: #fff;
}

.mugpp-select-option:focus-visible {
	outline: 2px solid rgba(232, 6, 69, .28);
	outline-offset: -2px;
}

.mugpp-select-option:disabled,
.mugpp-select-option.is-disabled {
	opacity: .35;
	cursor: not-allowed;
}

.mugpp-select-wrap--hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
}

.mugpp-select--color {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.mugpp-reset {
	align-self: flex-start;
	margin: 0;
	padding: 5px 10px;
	color: #e80645;
	background: rgba(232, 6, 69, .12);
	border: 0;
	border-radius: 5px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.mugpp-reset[hidden] {
	display: none !important;
}

.mugpp-actions,
.mugpp-sticky-actions {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 10px;
}

.mugpp-quantity {
	display: grid !important;
	width: 100% !important;
	height: 52px;
	margin: 0 !important;
	padding: 5px !important;
	grid-template-columns: 44px minmax(35px, 1fr) 44px;
	align-items: center;
	color: #67759b;
	background: #f3f5fb;
	border: 0;
	border-radius: 8px;
}

.mugpp-qty-button,
.mugpp-qty-input {
	display: flex;
	width: 100% !important;
	height: 100% !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	align-items: center;
	justify-content: center;
	color: inherit !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1 !important;
}

.mugpp-qty-button {
	cursor: pointer;
	background: #fff !important;
	border-radius: 6px !important;
}

.mugpp-qty-button:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.mugpp-qty-input {
	text-align: center;
	appearance: textfield;
}

.mugpp-qty-input::-webkit-inner-spin-button,
.mugpp-qty-input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.mugpp-add-to-cart {
	display: flex !important;
	width: 100% !important;
	min-height: 56px;
	margin: 0 !important;
	padding: 10px 18px !important;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #e80645;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	transition: opacity .18s ease, transform .18s ease;
}

.mugpp-add-to-cart:not(:disabled):hover {
	transform: translateY(-1px);
}

.mugpp-add-to-cart:disabled,
.mugpp-add-to-cart.disabled {
	opacity: .5;
	cursor: not-allowed;
	pointer-events: none;
}

.mugpp-button-mobile {
	display: none;
}

.mugpp-price {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	font-variant-numeric: tabular-nums;
}

.mugpp-price-sale-row {
	display: flex;
	align-items: center;
	gap: 8px;
	direction: rtl;
}

.mugpp-price-regular {
	order: 1;
	color: #9098ab;
	font-size: 13px;
	font-weight: 500;
	text-decoration: line-through;
}

.mugpp-price-discount {
	display: inline-flex;
	min-width: 29px;
	height: 21px;
	padding: 1px 5px;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #e80645;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 800;
	direction: ltr;
	order: 2;
}

.mugpp-price-current {
	display: flex;
	align-items: baseline;
	gap: 5px;
	color: #111827;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.5;
}

.mugpp-price-current .woocommerce-Price-amount,
.mugpp-price-regular .woocommerce-Price-amount,
.mugpp-price-current .mugpp-price-number,
.mugpp-price-regular .mugpp-price-number,
.mugpp-price-current .woocommerce-Price-currencySymbol,
.mugpp-price-regular .woocommerce-Price-currencySymbol {
	color: inherit !important;
}

.mugpp-price-current .woocommerce-Price-amount bdi,
.mugpp-price-regular .woocommerce-Price-amount bdi {
	display: inline-flex;
	align-items: baseline;
	direction: rtl;
	gap: .28em;
}

.mugpp-price-current .woocommerce-Price-currencySymbol,
.mugpp-price-regular .woocommerce-Price-currencySymbol {
	font-size: .72em;
}

.mugpp-from {
	font-size: .74em;
	font-weight: 600;
}

.mugpp-form > .woocommerce-variation.single_variation {
	display: none !important;
}

.mugpp-sticky {
	display: none;
}

.mugpp-editor-message {
	padding: 14px;
	color: #475467;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.8;
}

@media (max-width: 1024px) and (min-width: 768px) {
	.mugpp-sticky.is-tablet-enabled {
		position: fixed;
		z-index: 9998;
		display: grid;
		grid-template-columns: minmax(130px, .8fr) minmax(260px, 1.2fr);
		align-items: center;
		gap: 12px;
		padding: 9px 20px;
		background: #fff;
		border-top: 1px solid #e8ebf2;
		bottom: 0;
		left: 0;
		right: 0;
	}

	.mugpp-sticky.is-tablet-enabled .mugpp-sticky-actions {
		flex-direction: row;
	}

	.mugpp-sticky.is-tablet-enabled .mugpp-sticky-quantity {
		flex: 0 0 130px;
	}
}

@media (max-width: 767px) {
	.mugpp-sticky.is-enabled {
		position: fixed;
		z-index: 9998;
		display: grid;
		grid-template-columns: minmax(175px, 1.28fr) minmax(92px, .72fr);
		grid-template-areas: "actions price";
		align-items: center;
		gap: 8px;
		padding: 8px 12px max(8px, env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #e8ebf2;
		bottom: 0;
		left: 0;
		right: 0;
		direction: ltr;
	}

	.mugpp-sticky.is-enabled .mugpp-sticky-price {
		grid-area: price;
		direction: rtl;
	}

	.mugpp-sticky.is-enabled .mugpp-sticky-actions {
		grid-area: actions;
		direction: rtl;
	}

	.mugpp-sticky.is-enabled.mugpp-sticky--actions-price {
		grid-template-columns: minmax(92px, .72fr) minmax(175px, 1.28fr);
		grid-template-areas: "price actions";
	}

	.mugpp-sticky.is-enabled.mugpp-sticky--stacked {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "price" "actions";
	}

	.mugpp-sticky.is-enabled .mugpp-price {
		gap: 2px;
	}

	.mugpp-sticky.is-enabled .mugpp-price-current {
		font-size: 14px;
	}

	.mugpp-sticky.is-enabled .mugpp-price-regular {
		font-size: 10px;
	}

	.mugpp-sticky.is-enabled .mugpp-price-discount {
		min-width: 24px;
		height: 18px;
		font-size: 9px;
	}

	.mugpp-sticky.is-enabled .mugpp-sticky-actions {
		flex-direction: row;
		gap: 6px;
	}

	.mugpp-sticky.is-enabled .mugpp-sticky-quantity {
		flex: 0 0 96px;
	}

	.mugpp-sticky .mugpp-quantity {
		height: 46px;
		grid-template-columns: 31px minmax(28px, 1fr) 31px;
		padding: 4px !important;
	}

	.mugpp-sticky .mugpp-add-to-cart {
		min-height: 46px;
		padding: 7px 10px !important;
		font-size: 13px;
	}

	.mugpp-sticky .mugpp-button-desktop {
		display: none;
	}

	.mugpp-sticky .mugpp-button-mobile {
		display: inline;
	}

	.mugpp-has-sticky .mugpp-form .single_variation_wrap > .mugpp-actions,
	.mugpp-has-sticky .mugpp-form > .mugpp-actions {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mugpp-swatch,
	.mugpp-add-to-cart {
		transition: none !important;
	}
}
