/**
 * Modern Product Page - front-end styles
 * RTL first, logical properties for LTR support.
 */

.mpp-wrap {
	--mpp-primary: #2563eb;
	--mpp-primary-soft: #eff5ff;
	--mpp-text: #131a26;
	--mpp-text-soft: #3d4759;
	--mpp-muted: #7d8798;
	--mpp-line: #e9edf4;
	--mpp-line-soft: #f1f4f9;
	--mpp-bg: #ffffff;
	--mpp-danger: #ef4056;
	--mpp-success: #12a150;
	--mpp-warning: #f5a623;
	--mpp-radius: 20px;
	--mpp-radius-sm: 13px;
	--mpp-shadow: 0 10px 34px rgba(19, 26, 38, 0.06);
	--mpp-shadow-sm: 0 3px 12px rgba(19, 26, 38, 0.05);

	direction: rtl;
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: 14px 0 8px;
	color: var(--mpp-text);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.85;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}

.mpp-wrap.mpp-font-vazirmatn,
.mpp-wrap.mpp-font-vazirmatn input,
.mpp-wrap.mpp-font-vazirmatn button,
.mpp-wrap.mpp-font-vazirmatn select,
.mpp-wrap.mpp-font-vazirmatn textarea {
	font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, sans-serif;
}

.mpp-wrap *,
.mpp-wrap *::before,
.mpp-wrap *::after {
	box-sizing: border-box;
}

.mpp-wrap [hidden] {
	display: none !important;
}

/*
 * Theme hardening.
 * Many themes (WoodMart, Flatsome, …) style bare <button>, <a> and <img>
 * globally. Everything below keeps our own design intact.
 */
.mpp-wrap button,
.mpp-wrap input,
.mpp-wrap select,
.mpp-wrap textarea {
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-shadow: none !important;
}

.mpp-wrap img {
	box-shadow: none !important;
}

.mpp-wrap p {
	margin: 0 0 10px;
}

.mpp-wrap a {
	color: var(--mpp-primary);
	text-decoration: none;
}

.mpp-wrap img {
	max-width: 100%;
	height: auto;
	display: block;
}

.mpp-wrap button {
	font-family: inherit;
	cursor: pointer;
}

/* ---------------------------------------------------------------- layout */

.mpp-page {
	padding: 20px 16px 24px;
}

.mpp-page-inner {
	max-width: 1320px;
	margin: 0 auto;
}

.mpp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.8;
	color: #8b95a6;
}

.mpp-breadcrumb a {
	color: #8b95a6;
	text-decoration: none;
}

.mpp-breadcrumb a:hover {
	color: #2563eb;
}

.mpp-bc-sep {
	color: #c6cdd9;
	font-size: 13px;
	line-height: 1;
}

.mpp-page-notices {
	margin-block-end: 16px;
}

.mpp-page-notices .woocommerce-message,
.mpp-page-notices .woocommerce-info,
.mpp-page-notices .woocommerce-error {
	margin: 0 0 10px;
	border-radius: 12px;
}

.mpp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr) 302px;
	gap: 16px;
	align-items: start;
}

.mpp-cart-form {
	display: block;
	margin: 0;
}

/* --------------------------------------------------------------- gallery */

.mpp-gallery {
	background: var(--mpp-bg);
	border: 1px solid var(--mpp-line);
	border-radius: var(--mpp-radius);
	padding: 16px;
	box-shadow: var(--mpp-shadow-sm);
}

.mpp-gallery-main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	border-radius: var(--mpp-radius-sm);
	background: #fbfcfe;
	overflow: hidden;
	cursor: zoom-in;
}

.mpp-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mpp-gallery-main:hover img {
	transform: scale(1.045);
}

.mpp-zoom-hint {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--mpp-muted);
	box-shadow: 0 2px 8px rgba(19, 26, 38, 0.08);
	opacity: 0;
	transition: opacity 0.2s;
}

.mpp-gallery-main:hover .mpp-zoom-hint {
	opacity: 1;
}

.mpp-thumbs {
	display: flex;
	gap: 8px;
	margin-block-start: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.mpp-thumb {
	width: 58px !important;
	height: 58px !important;
	min-height: 0 !important;
	padding: 4px !important;
	border: 1.5px solid var(--mpp-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	overflow: hidden;
	transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.mpp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mpp-thumb:hover {
	border-color: #c8d6ef;
	transform: translateY(-1px);
}

.mpp-thumb.is-active {
	border-color: var(--mpp-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* -------------------------------------------------------------- summary */

.mpp-summary {
	padding-block-start: 4px;
}

.mpp-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-block-end: 8px;
}

.mpp-badge {
	display: inline-flex;
	align-items: center;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 8px;
	background: #eef2f8;
	color: #41506b;
}

.mpp-badge--express,
.mpp-badge--today {
	background: #e9f1ff;
	color: #1c56c9;
}

.mpp-badge--special {
	background: #fff0f2;
	color: #d92d43;
}

.mpp-badge--custom {
	background: #f2f7f2;
	color: #1f7a44;
}

.mpp-title {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.65;
	color: var(--mpp-text);
	letter-spacing: -0.2px;
}

.mpp-en-title {
	margin: 0 0 12px;
	font-size: 12px;
	color: var(--mpp-muted);
	letter-spacing: 0.2px;
	line-height: 1.7;
}

.mpp-rating-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: var(--mpp-muted);
	margin-block-end: 4px;
}

.mpp-rating-score {
	font-weight: 700;
	color: var(--mpp-text-soft);
}

.mpp-dot {
	color: #cfd6e2;
}

.mpp-rating-link {
	color: var(--mpp-muted);
	border-bottom: 1px dashed #cfd6e2;
	padding-bottom: 1px;
}

.mpp-rating-link:hover {
	color: var(--mpp-primary);
	border-color: var(--mpp-primary);
}

.mpp-cats a {
	color: var(--mpp-muted);
}

.mpp-cats a:hover {
	color: var(--mpp-primary);
}

.mpp-stars {
	position: relative;
	display: inline-block;
	font-size: 14px;
	letter-spacing: 1.5px;
	line-height: 1;
	white-space: nowrap;
}

.mpp-stars-bg {
	color: #e3e8f0;
}

.mpp-stars-fill {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--mpp-warning);
}

/* intro / video card */

.mpp-intro {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-block: 14px;
	padding: 12px 14px;
	border: 1px solid #ede7fb;
	border-radius: 16px;
	background: linear-gradient(270deg, #f8f4ff 0%, #fdfbff 100%);
	color: var(--mpp-text) !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.mpp-intro:hover {
	border-color: #d9ccf7;
	box-shadow: 0 6px 18px rgba(124, 58, 237, 0.08);
	color: var(--mpp-text) !important;
	text-decoration: none !important;
}

.mpp-intro-play {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 50%;
	background: #fff;
	color: #7c3aed;
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.16);
	padding-inline-start: 2px;
}

.mpp-intro-text {
	display: flex;
	flex-direction: column;
	line-height: 1.6;
	flex: 1 1 auto;
	min-width: 0;
}

.mpp-intro-text strong {
	font-size: 13.5px;
	font-weight: 700;
}

.mpp-intro-text small {
	font-size: 11.5px;
	color: var(--mpp-muted);
}

.mpp-intro-badge {
	color: #c4b5fd;
	display: grid;
	place-items: center;
}

/* excerpt */

.mpp-excerpt-wrap {
	margin-block: 12px 0;
}

.mpp-excerpt {
	font-size: 13px;
	line-height: 2.05;
	color: var(--mpp-text-soft);
	position: relative;
	max-height: 200px;
	overflow: hidden;
}

.mpp-excerpt.is-open {
	max-height: none;
}

.mpp-excerpt.is-clipped {
	-webkit-mask-image: linear-gradient(to top, transparent 0, #000 46px);
	mask-image: linear-gradient(to top, transparent 0, #000 46px);
}

.mpp-more {
	display: inline-block !important;
	margin-block-start: 4px;
	padding: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--mpp-primary) !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	line-height: 1.8 !important;
	text-decoration: none !important;
}

.mpp-more:hover {
	color: var(--mpp-primary) !important;
	text-decoration: underline !important;
}

/* attributes */

.mpp-attrs {
	margin-block-start: 6px;
}

.mpp-attr {
	padding-block-start: 13px;
	margin-block-start: 13px;
	border-block-start: 1px dashed var(--mpp-line);
}

.mpp-attr-label {
	display: block;
	font-size: 12.5px;
	color: var(--mpp-muted);
	margin-block-end: 9px;
}

.mpp-attr-label b {
	color: var(--mpp-text);
	font-weight: 700;
}

.mpp-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mpp-opt {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 13px !important;
	border: 1.5px solid var(--mpp-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	line-height: 1.6 !important;
	color: var(--mpp-text-soft) !important;
	text-decoration: none !important;
	transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
	user-select: none;
}

.mpp-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

label.mpp-opt {
	cursor: pointer;
}

label.mpp-opt:hover {
	border-color: #c5d4ee;
	transform: translateY(-1px);
}

.mpp-opt.is-active {
	border-color: var(--mpp-primary) !important;
	background: var(--mpp-primary-soft) !important;
	color: var(--mpp-primary) !important;
	font-weight: 700 !important;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16) !important;
}

/* Same highlight without JavaScript (kept as a separate rule on purpose). */
.mpp-opt:has(> input:checked) {
	border-color: var(--mpp-primary) !important;
	background: var(--mpp-primary-soft) !important;
	color: var(--mpp-primary) !important;
	font-weight: 700 !important;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16) !important;
}

.mpp-opt.is-active .mpp-swatch,
.mpp-opt:has(> input:checked) .mpp-swatch {
	border-color: transparent !important;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--mpp-primary) !important;
}

.mpp-opt.is-disabled {
	opacity: 0.42;
	cursor: not-allowed;
	text-decoration: line-through;
	transform: none;
}

/* Selected, but the resulting combination is out of stock. */
.mpp-opt.is-oos {
	border-color: #f3c8cd !important;
	background: #fff5f6 !important;
	color: #b4343f !important;
	text-decoration: line-through;
	opacity: 0.85;
}

.mpp-opt.is-oos .mpp-swatch {
	opacity: 0.5;
}

.mpp-attr-value.is-empty {
	color: var(--mpp-muted) !important;
	font-weight: 600;
}

/*
 * "Clear selection" chip.
 *
 * Themes (WoodMart and friends) style every <button> with a fairly specific
 * selector, which used to win over a plain .mpp-attr-reset rule and left the
 * button looking like an unstyled default. Same treatment as .mpp-opt:
 * higher specificity plus !important on every visual property.
 */
.mpp-wrap .mpp-attrs .mpp-attr-reset {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 12px 0 0 !important;
	padding: 6px 13px !important;
	border: 1px dashed var(--mpp-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--mpp-muted) !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.8 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.mpp-wrap .mpp-attrs .mpp-attr-reset:hover,
.mpp-wrap .mpp-attrs .mpp-attr-reset:focus-visible {
	border-color: var(--mpp-primary) !important;
	background: var(--mpp-primary-soft) !important;
	color: var(--mpp-primary) !important;
	outline: none !important;
}

.mpp-wrap .mpp-attrs .mpp-attr-reset svg {
	display: block !important;
	width: 13px !important;
	height: 13px !important;
	flex: 0 0 13px !important;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mpp-wrap .mpp-attrs .mpp-attr-reset[hidden] {
	display: none !important;
}

.mpp-opt--static {
	cursor: default;
	background: #fafbfd !important;
}

.mpp-opt--static:hover {
	transform: none;
	border-color: var(--mpp-line) !important;
}

.mpp-swatch {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid rgba(19, 26, 38, 0.14);
	background-clip: padding-box;
	box-shadow: none;
	flex: 0 0 20px;
	transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

/* add-ons */

.mpp-addons {
	margin-block-start: 16px;
	padding-block-start: 14px;
	border-block-start: 1px dashed var(--mpp-line);
}

.mpp-addons-head {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 800;
	color: var(--mpp-text);
	margin-block-end: 10px;
}

.mpp-addons-head svg {
	color: var(--mpp-primary);
}

.mpp-addons-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mpp-addons.is-collapsed .mpp-addons-list .mpp-addon:nth-child(n + 4) {
	display: none;
}

.mpp-addons.is-collapsed.is-open .mpp-addons-list .mpp-addon:nth-child(n + 4) {
	display: flex;
}

.mpp-addon {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 11px 13px;
	border: 1.5px solid var(--mpp-line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.mpp-addon:hover {
	border-color: #c5d4ee;
}

.mpp-addon.is-checked {
	border-color: var(--mpp-primary);
	background: #f8fbff;
	box-shadow: 0 3px 12px rgba(37, 99, 235, 0.07);
}

.mpp-addon input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.mpp-check {
	display: grid;
	place-items: center;
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	margin-block-start: 3px;
	border: 1.6px solid #cfd8e6;
	border-radius: 6px;
	background: #fff;
	color: transparent;
	transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.mpp-addon.is-checked .mpp-check {
	background: var(--mpp-primary);
	border-color: var(--mpp-primary);
	color: #fff;
}

.mpp-addon-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}

.mpp-addon-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.mpp-addon-title {
	font-size: 12.8px;
	font-weight: 700;
	color: var(--mpp-text);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.mpp-req {
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 5px;
	background: #fff2e6;
	color: #b45309;
}

.mpp-addon-price {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--mpp-text-soft);
	white-space: nowrap;
}

.mpp-addon-price .woocommerce-Price-amount {
	font-size: 12.5px;
}

.mpp-addon-price .woocommerce-Price-currencySymbol {
	font-size: 11px;
	color: var(--mpp-muted);
	margin-inline-start: 2px;
}

.mpp-addon-desc {
	font-size: 11.5px;
	color: var(--mpp-muted);
	line-height: 1.8;
}

.mpp-addons-toggle {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	margin-block-start: 10px;
	padding: 6px 12px !important;
	height: auto !important;
	min-height: 0 !important;
	border: 1px solid var(--mpp-line) !important;
	border-radius: 9px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--mpp-text-soft) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	transition: border-color 0.18s, color 0.18s;
}

.mpp-addons-toggle:hover {
	border-color: var(--mpp-primary) !important;
	color: var(--mpp-primary) !important;
	background: #fff !important;
}

.mpp-addons.is-open .mpp-addons-toggle svg {
	transform: rotate(180deg);
}

/* --------------------------------------------------------------- buybox */

.mpp-buybox-col {
	position: sticky;
	inset-block-start: 20px;
}

.mpp-buybox {
	background: linear-gradient(180deg, #f8faff 0%, #ffffff 42%);
	border: 1px solid var(--mpp-line);
	border-radius: var(--mpp-radius);
	padding: 16px;
	box-shadow: var(--mpp-shadow);
}

.mpp-buybox-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 24px;
	margin-block-end: 6px;
}

.mpp-badge-discount {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 22px;
	padding: 0 7px;
	border-radius: 7px;
	background: var(--mpp-danger);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.mpp-price {
	text-align: end;
	margin-block-end: 4px;
}

.mpp-price-old {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 4px;
	font-size: 12.5px;
	color: #a6afbe;
	text-decoration: line-through;
	line-height: 1.6;
}

.mpp-price-now {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 5px;
	font-size: 27px;
	font-weight: 800;
	letter-spacing: -0.6px;
	line-height: 1.35;
	color: var(--mpp-text);
}

.mpp-cur {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--mpp-muted);
	letter-spacing: 0;
}

/* "از …" prefix while nothing is selected */
.mpp-price-from,
.mpp-mb-from {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--mpp-muted);
	letter-spacing: 0;
	align-self: center;
}

.mpp-price-note {
	font-size: 11px;
	color: var(--mpp-muted);
	line-height: 1.7;
}

.mpp-price-unit {
	font-size: 11.5px;
	color: var(--mpp-muted);
	line-height: 1.8;
}

/* countdown */

.mpp-countdown {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-block: 10px 0;
	padding: 7px 10px;
	border: 1px solid rgba(239, 64, 86, 0.18);
	border-radius: 12px;
	background: rgba(239, 64, 86, 0.06);
}

.mpp-countdown-label {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--mpp-danger);
	line-height: 1.6;
}

.mpp-countdown-clock {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
}

.mpp-cd {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 33px;
	padding: 3px 4px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(19, 26, 38, 0.09);
}

.mpp-cd b {
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--mpp-text);
	font-variant-numeric: tabular-nums;
}

.mpp-cd small {
	font-size: 9px;
	line-height: 1.4;
	color: var(--mpp-muted);
}

/* stock bar */

.mpp-stock {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-block: 10px 0;
}

.mpp-stock-text {
	font-size: 11.5px;
	font-weight: 700;
	color: #b45309;
	line-height: 1.7;
}

.mpp-stock-track {
	display: block;
	height: 6px;
	border-radius: 99px;
	background: #fdeccd;
	overflow: hidden;
}

.mpp-stock-track > span {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, #f59e0b, #f97316);
}

.mpp-stock.is-low .mpp-stock-text {
	color: var(--mpp-danger);
}

.mpp-stock.is-low .mpp-stock-track {
	background: #ffe0e3;
}

.mpp-stock.is-low .mpp-stock-track > span {
	background: linear-gradient(90deg, var(--mpp-danger), #f97316);
}

.mpp-btn-buy {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100% !important;
	height: 50px !important;
	min-height: 0 !important;
	margin-block: 12px 4px;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--mpp-primary) !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	letter-spacing: -0.1px !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.26) !important;
	transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

.mpp-btn-buy:hover {
	background: var(--mpp-primary) !important;
	color: #fff !important;
	filter: brightness(0.95);
	transform: translateY(-1px);
	box-shadow: 0 14px 26px rgba(37, 99, 235, 0.3) !important;
}

.mpp-btn-buy:active {
	transform: translateY(0);
}

.mpp-btn-buy:disabled,
.mpp-btn-buy.is-loading {
	background: #cbd5e6 !important;
	color: #fff !important;
	box-shadow: none !important;
	cursor: not-allowed;
	transform: none;
	filter: none;
}

.mpp-btn-buy.is-loading .mpp-btn-text {
	opacity: 0.75;
}

.mpp-native-cart .button,
.mpp-native-cart .single_add_to_cart_button {
	width: 100%;
	height: 50px;
	border-radius: 14px;
	background: var(--mpp-primary) !important;
	color: #fff !important;
	font-weight: 800;
	border: 0;
}

.mpp-meta {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	font-size: 12.5px;
	color: var(--mpp-text-soft);
}

.mpp-meta li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-block: 6px;
	line-height: 1.7;
}

.mpp-meta b {
	font-weight: 700;
	color: var(--mpp-text);
}

.mpp-meta-icon {
	display: grid;
	place-items: center;
	color: #97a2b4;
	flex: 0 0 auto;
}

.mpp-meta-qty {
	justify-content: space-between;
}

.mpp-qty {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	border: 1px solid var(--mpp-line);
	border-radius: 10px;
	padding: 2px;
	background: #fff;
}

.mpp-qty-btn {
	width: 26px !important;
	height: 26px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #f4f7fc !important;
	background-image: none !important;
	color: var(--mpp-text-soft) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	display: grid;
	place-items: center;
	transition: background 0.16s, color 0.16s;
}

.mpp-qty-btn:hover {
	background: var(--mpp-primary-soft) !important;
	color: var(--mpp-primary) !important;
}

.mpp-qty-input {
	width: 34px !important;
	height: 26px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: var(--mpp-text) !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.mpp-chips {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-block-start: 12px;
	padding-block-start: 12px;
	border-block-start: 1px dashed var(--mpp-line);
}

.mpp-chip {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 7px 8px;
	border-radius: 10px;
	background: #f5f8fc;
	font-size: 11px;
	color: #445167;
	line-height: 1.5;
}

.mpp-chip svg {
	color: var(--mpp-success);
	flex: 0 0 auto;
}

.mpp-points {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-block-start: 12px;
	padding-block-start: 12px;
	border-block-start: 1px dashed var(--mpp-line);
	font-size: 11.5px;
	color: var(--mpp-muted);
}

.mpp-points b {
	margin-inline-start: auto;
	color: #b45309;
	font-weight: 800;
	font-size: 12px;
}

.mpp-points-icon {
	color: var(--mpp-warning);
	display: grid;
	place-items: center;
}

/* ------------------------------------------ installment gateways */

.mpp-inst {
	margin-block-start: 12px;
	padding: 11px 12px 12px;
	border: 1px solid #dde5f7;
	border-radius: var(--mpp-radius-sm);
	background:
		radial-gradient(140% 120% at 100% 0%, #e8efff 0%, rgba(255, 255, 255, 0) 62%),
		#f8faff;
	box-shadow: 0 8px 20px -16px rgba(37, 99, 235, 0.55);
}

.mpp-inst-head {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-block-end: 9px;
}

.mpp-inst-title {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--mpp-text);
}

.mpp-inst-title svg {
	flex: 0 0 auto;
	color: var(--mpp-primary);
}

.mpp-inst-tag {
	margin-inline-start: auto;
	padding: 4px 7px;
	border: 1px solid #e6d9ff;
	border-radius: 999px;
	background: #f3ecff;
	color: #6d28d9;
	font-size: 9.5px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.mpp-inst-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mpp-inst-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid #edf0f7;
	border-radius: 11px;
	background: #fff;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mpp-inst-item:hover {
	border-color: #dde4f2;
	box-shadow: 0 4px 12px -6px rgba(19, 26, 38, 0.2);
}

.mpp-inst-logo {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	overflow: hidden;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--i1, #2563eb), var(--i2, #60a5fa));
	box-shadow: 0 3px 8px -4px rgba(19, 26, 38, 0.45);
}

.mpp-inst-logo b {
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	text-transform: lowercase;
}

.mpp-inst-logo--img {
	padding: 3px;
	border: 1px solid #edf0f7;
	background: #fff;
	box-shadow: none;
}

.mpp-inst-logo--img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mpp-inst-name {
	overflow: hidden;
	color: var(--mpp-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mpp-inst-meta {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	margin-inline-start: auto;
	color: var(--mpp-muted);
	font-size: 10.5px;
	white-space: nowrap;
}

.mpp-inst-count {
	margin-inline-start: auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f1f5fb;
	color: #4b5563;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.8;
	white-space: nowrap;
}

.mpp-inst-times {
	opacity: 0.5;
}

.mpp-inst-amount {
	color: var(--mpp-text-soft);
	font-size: 12px;
	font-weight: 800;
}

.mpp-inst-cur {
	font-size: 9.5px;
}

.mpp-inst-note {
	margin: 8px 0 0;
	color: var(--mpp-muted);
	font-size: 10px;
	line-height: 1.7;
	text-align: center;
}

@media (max-width: 420px) {
	.mpp-inst {
		padding: 10px;
	}

	.mpp-inst-name {
		font-size: 11.5px;
	}

	.mpp-inst-meta {
		font-size: 10px;
	}

	.mpp-inst-amount {
		font-size: 11px;
	}
}

/* ----------------------------------------------------------------- tabs */

.mpp-tabs {
	margin-block-start: 18px;
	background: #fff;
	border: 1px solid var(--mpp-line);
	border-radius: var(--mpp-radius);
	padding: 16px 18px 20px;
	box-shadow: var(--mpp-shadow-sm);
}

.mpp-tabs-nav {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	border-block-end: 1px solid var(--mpp-line);
	padding-block-end: 12px;
	margin-block-end: 16px;
}

.mpp-tab-btn {
	border: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	padding: 8px 14px !important;
	height: auto !important;
	min-height: 0 !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.8 !important;
	color: var(--mpp-muted) !important;
	text-transform: none !important;
	text-decoration: none !important;
	transition: background 0.18s, color 0.18s;
}

.mpp-tab-btn:hover {
	color: var(--mpp-text) !important;
	background: #f6f8fc !important;
}

.mpp-tab-btn.is-active {
	background: var(--mpp-primary-soft) !important;
	color: var(--mpp-primary) !important;
}

.mpp-tab-panel {
	display: none;
}

.mpp-tab-panel.is-active {
	display: block;
	animation: mpp-fade 0.25s ease;
}

@keyframes mpp-fade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.mpp-content {
	font-size: 13.5px;
	line-height: 2.1;
	color: var(--mpp-text-soft);
}

.mpp-content h2,
.mpp-content h3,
.mpp-content h4 {
	font-size: 15px;
	font-weight: 800;
	color: var(--mpp-text);
	margin: 18px 0 8px;
}

.mpp-content ul,
.mpp-content ol {
	padding-inline-start: 20px;
	margin-block: 8px 12px;
}

.mpp-content li {
	margin-block-end: 6px;
}

.mpp-content img {
	border-radius: 12px;
	margin-block: 10px;
}

.mpp-specs {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.mpp-specs th,
.mpp-specs td {
	padding: 11px 13px;
	border-block-end: 1px solid var(--mpp-line-soft);
	text-align: start;
	vertical-align: top;
	line-height: 1.9;
}

.mpp-specs th {
	width: 34%;
	color: var(--mpp-muted);
	font-weight: 600;
	background: #fafbfd;
	border-start-start-radius: 8px;
	border-end-start-radius: 8px;
}

.mpp-specs tr:last-child th,
.mpp-specs tr:last-child td {
	border-block-end: 0;
}

.mpp-empty {
	font-size: 13px;
	color: var(--mpp-muted);
	padding: 14px 0;
}

/* reviews */

.mpp-reviews-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fafbfd;
	border: 1px solid var(--mpp-line-soft);
	margin-block-end: 6px;
}

.mpp-reviews-score {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mpp-score-num {
	font-size: 24px;
	font-weight: 800;
	color: var(--mpp-text);
	line-height: 1;
}

.mpp-reviews-score small {
	font-size: 11.5px;
	color: var(--mpp-muted);
}

.mpp-btn-ghost {
	border: 1px solid var(--mpp-line) !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--mpp-text-soft) !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	padding: 9px 16px !important;
	height: auto !important;
	min-height: 0 !important;
	border-radius: 10px !important;
	text-transform: none !important;
	transition: border-color 0.18s, color 0.18s;
}

.mpp-btn-ghost:hover {
	border-color: var(--mpp-primary) !important;
	color: var(--mpp-primary) !important;
	background: #fff !important;
}

.mpp-review {
	display: flex;
	gap: 12px;
	padding-block: 14px;
	border-block-end: 1px solid var(--mpp-line-soft);
}

.mpp-review:last-child {
	border-block-end: 0;
}

.mpp-review-avatar {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border-radius: 50%;
	background: var(--mpp-primary-soft);
	color: var(--mpp-primary);
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 14px;
}

.mpp-review-body {
	flex: 1 1 auto;
	min-width: 0;
}

.mpp-review-head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12.5px;
}

.mpp-review-head strong {
	font-size: 13px;
	font-weight: 700;
	color: var(--mpp-text);
}

.mpp-review-head time {
	margin-inline-start: auto;
	font-size: 11px;
	color: #a3acbb;
}

.mpp-review-text {
	font-size: 12.8px;
	line-height: 2;
	color: var(--mpp-text-soft);
	margin-block-start: 4px;
}

.mpp-review-form-wrap {
	margin-block-start: 18px;
	padding-block-start: 16px;
	border-block-start: 1px dashed var(--mpp-line);
}

.mpp-review-form-title {
	font-size: 15px;
	font-weight: 800;
	margin: 0 0 12px;
}

.mpp-review-form p {
	margin: 0 0 12px;
}

.mpp-review-form label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--mpp-text-soft);
	margin-block-end: 6px;
}

.mpp-review-form input[type="text"],
.mpp-review-form input[type="email"],
.mpp-review-form select,
.mpp-review-form textarea {
	width: 100%;
	border: 1.5px solid var(--mpp-line);
	border-radius: 11px;
	padding: 10px 12px;
	font-size: 13px;
	font-family: inherit;
	color: var(--mpp-text);
	background: #fff;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.mpp-review-form input:focus,
.mpp-review-form select:focus,
.mpp-review-form textarea:focus {
	outline: 0;
	border-color: var(--mpp-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mpp-review-form .submit {
	margin: 0;
}

.mpp-review-form .submit input,
.mpp-review-form .submit button {
	border: 0;
	border-radius: 12px;
	background: var(--mpp-primary);
	color: #fff;
	font-size: 13.5px;
	font-weight: 800;
	padding: 11px 26px;
	cursor: pointer;
}

/* -------------------------------------------------------------- mobile */

.mpp-mobile-bar {
	display: none;
}

.mpp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: rgba(9, 13, 21, 0.86);
	backdrop-filter: blur(3px);
}

.mpp-lightbox[hidden] {
	display: none;
}

.mpp-lightbox-body {
	max-width: min(92vw, 900px);
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mpp-lightbox-body img {
	max-width: 100%;
	max-height: 88vh;
	border-radius: 12px;
	object-fit: contain;
}

.mpp-lightbox-body iframe {
	width: min(92vw, 860px);
	height: min(52vw, 480px);
	border: 0;
	border-radius: 12px;
	background: #000;
}

.mpp-lightbox-close {
	position: absolute !important;
	inset-block-start: 16px !important;
	inset-inline-end: 16px !important;
	z-index: 3 !important;
	display: grid !important;
	place-items: center !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 0 2px !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.14) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-transform: none !important;
	text-shadow: none !important;
	cursor: pointer !important;
	transition: background 0.16s ease, transform 0.16s ease;
}

.mpp-lightbox-close:hover,
.mpp-lightbox-close:focus-visible {
	background: rgba(255, 255, 255, 0.26) !important;
	color: #fff !important;
	transform: scale(1.06);
	outline: 0 !important;
}

.mpp-lightbox-close::before,
.mpp-lightbox-close::after {
	display: none !important;
	content: none !important;
}

.mpp-toast {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 26px;
	margin-inline: auto;
	width: max-content;
	max-width: 92%;
	padding: 11px 20px;
	border-radius: 12px;
	background: #131a26;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.7;
	box-shadow: 0 14px 36px rgba(9, 13, 21, 0.28);
	z-index: 999998;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s, transform 0.25s;
	pointer-events: none;
}

.mpp-toast.is-show {
	opacity: 1;
	transform: none;
}

.mpp-toast.is-error {
	background: #dc2626;
}

.mpp-notice {
	padding: 14px 16px;
	border: 1px solid #f5c2c7;
	border-radius: 12px;
	background: #fdf2f3;
	color: #a3232f;
	font-size: 13px;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1180px) {
	.mpp-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	}

	.mpp-buybox-col {
		grid-column: 1 / -1;
		position: static;
	}

	.mpp-buybox {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"head head"
			"price button"
			"inst inst"
			"cd cd"
			"stock stock"
			"fs fs"
			"meta meta"
			"chips chips"
			"points points";
		gap: 4px 22px;
		align-items: center;
	}

	.mpp-buybox-head {
		grid-area: head;
		justify-content: flex-start;
		gap: 8px;
	}

	.mpp-inst {
		grid-area: inst;
	}

	.mpp-countdown {
		grid-area: cd;
	}

	.mpp-stock {
		grid-area: stock;
	}

	.mpp-fs-slot {
		grid-area: fs;
	}

	.mpp-price {
		grid-area: price;
		text-align: start;
	}

	.mpp-price-old,
	.mpp-price-now {
		justify-content: flex-start;
	}

	.mpp-btn-buy {
		grid-area: button;
		width: 280px !important;
		max-width: 100%;
		margin: 0;
	}

	.mpp-native-cart {
		grid-area: button;
		width: 280px;
	}

	.mpp-meta {
		grid-area: meta;
		display: flex;
		flex-wrap: wrap;
		gap: 4px 30px;
		margin-block-start: 14px;
		padding-block-start: 12px;
		border-block-start: 1px dashed var(--mpp-line);
	}

	.mpp-meta li {
		padding-block: 4px;
	}

	.mpp-meta-qty {
		gap: 8px;
	}

	.mpp-chips {
		grid-area: chips;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.mpp-points {
		grid-area: points;
	}

	.mpp-points b {
		margin-inline-start: 10px;
	}
}

@media (max-width: 860px) {
	.mpp-wrap {
		overflow-x: clip;
	}

	/* Room for the sticky bar, only when it is actually rendered. */
	.mpp-wrap.mpp-has-bar {
		padding-block-end: 86px;
	}

	.mpp-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	/* Grid children must be able to shrink, otherwise a long word or a big
	   number blows the column out of the viewport on phones. */
	.mpp-gallery,
	.mpp-summary,
	.mpp-buybox-col,
	.mpp-gallery-main,
	.mpp-price {
		min-width: 0;
	}

	.mpp-title {
		font-size: 17px;
		overflow-wrap: anywhere;
	}

	.mpp-en-title,
	.mpp-excerpt,
	.mpp-addon-desc,
	.mpp-addon-title,
	.mpp-cats {
		overflow-wrap: anywhere;
	}

	.mpp-rating-row {
		flex-wrap: wrap;
		row-gap: 4px;
	}

	.mpp-price-now {
		font-size: 23px;
		flex-wrap: wrap;
	}

	.mpp-buybox-head,
	.mpp-countdown {
		flex-wrap: wrap;
		row-gap: 6px;
	}

	.mpp-buybox {
		display: block;
	}

	.mpp-btn-buy {
		width: 100% !important;
		margin-block: 12px 4px !important;
	}

	.mpp-thumbs {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding-block-end: 4px;
		scrollbar-width: none;
	}

	.mpp-thumbs::-webkit-scrollbar {
		display: none;
	}

	.mpp-thumb {
		width: 52px !important;
		height: 52px !important;
		flex: 0 0 52px;
	}

	.mpp-mobile-bar {
		display: flex;
		align-items: center;
		gap: 12px;
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 99990;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, 0.97);
		border-block-start: 1px solid var(--mpp-line);
		box-shadow: 0 -8px 24px rgba(19, 26, 38, 0.08);
	}

	.mpp-mb-price {
		display: flex;
		align-items: baseline;
		gap: 4px;
		flex-direction: column;
		line-height: 1.3;
		min-width: 0;
	}

	.mpp-mb-label {
		font-size: 10px;
		color: var(--mpp-muted);
	}

	.mpp-mb-num {
		font-size: 15px;
		font-weight: 800;
		white-space: nowrap;
	}

	.mpp-mb-price .mpp-cur {
		display: none;
	}

	.mpp-mb-btn {
		flex: 1 1 auto;
		margin: 0;
		height: 44px !important;
		font-size: 13.5px !important;
		box-shadow: none !important;
	}

	.mpp-tabs {
		padding: 12px 14px 16px;
	}

	.mpp-tabs-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.mpp-tabs-nav::-webkit-scrollbar {
		display: none;
	}

	.mpp-tab-btn {
		padding: 7px 11px !important;
		font-size: 12px !important;
		white-space: nowrap;
	}

	.mpp-meta li {
		flex-wrap: wrap;
		row-gap: 4px;
	}

	.mpp-chips {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.mpp-title {
		font-size: 16px;
	}

	.mpp-addon-line {
		flex-wrap: wrap;
		gap: 2px;
	}
}

/* --------------------------------------------------- review star input */

.mpp-rate {
	display: inline-flex;
	flex-direction: row;
	gap: 3px;
	direction: rtl;
	line-height: 1;
	vertical-align: middle;
}

.mpp-rate input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	pointer-events: none;
}

.mpp-review-form .mpp-rate label {
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 26px;
	line-height: 1;
	color: #dfe4ec;
	cursor: pointer;
	user-select: none;
	transition: color 0.15s, transform 0.15s;
}

.mpp-rate label:hover {
	transform: scale(1.1);
}

.mpp-rate label.is-on {
	color: var(--mpp-warning);
}

.mpp-rate input:focus-visible + label {
	outline: 2px solid var(--mpp-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ------------------------------------------------- review submit button */

.mpp-review-form input[type="submit"],
.mpp-review-form button[type="submit"],
.mpp-review-form .form-submit input,
.mpp-review-form .form-submit button,
.mpp-review-form .submit input,
.mpp-review-form .submit button {
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 11px 26px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--mpp-primary) !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 13.5px !important;
	font-weight: 800 !important;
	line-height: 1.7 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: filter 0.18s, transform 0.18s;
}

.mpp-review-form input[type="submit"]:hover,
.mpp-review-form button[type="submit"]:hover {
	filter: brightness(0.95);
	transform: translateY(-1px);
}

.mpp-review-form .form-submit {
	margin: 0;
}

/* --------------------------------------------- size guide + bundle */

.mpp-wrap .mpp-sg-btn,
.mpp-wrap .mpp-sg-btn:hover,
.mpp-wrap .mpp-sg-btn:focus {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	margin-block-start: 12px !important;
	padding: 9px 14px !important;
	border: 1px solid #dbe3f0 !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	background-image: none !important;
	box-shadow: 0 1px 2px rgba(19, 26, 38, 0.05) !important;
	color: var(--mpp-text-soft) !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.6 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	cursor: pointer !important;
	transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.mpp-wrap .mpp-sg-btn:hover,
.mpp-wrap .mpp-sg-btn:focus-visible {
	border-color: var(--mpp-primary) !important;
	background: var(--mpp-primary-soft) !important;
	color: var(--mpp-primary) !important;
	box-shadow: 0 4px 14px -8px rgba(37, 99, 235, 0.45) !important;
	outline: 0 !important;
}

.mpp-wrap .mpp-sg-btn svg {
	flex: 0 0 auto !important;
	width: 16px !important;
	height: 16px !important;
	color: var(--mpp-primary) !important;
}

.mpp-sg {
	width: min(92vw, 660px) !important;
	max-height: 86vh !important;
	overflow: auto !important;
	padding: 20px 20px 22px !important;
	border-radius: 18px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.55) !important;
	text-align: right !important;
}

.mpp-sg .mpp-sg-title {
	position: relative;
	margin: 0 0 16px !important;
	padding: 0 14px 12px 0 !important;
	color: #131a26 !important;
	font-family: inherit !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.6 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	border: 0 !important;
	border-block-end: 1px solid #eef1f6 !important;
}

.mpp-sg .mpp-sg-title::before {
	content: "";
	position: absolute;
	inset-block-start: 0.42em;
	inset-inline-start: 0;
	width: 4px;
	height: 1.1em;
	border-radius: 4px;
	background: var(--mpp-primary);
}

.mpp-sg-img {
	display: block !important;
	width: 100% !important;
	max-height: 260px !important;
	object-fit: contain !important;
	margin-block-end: 14px !important;
	border-radius: 12px !important;
	background: #f8fafc !important;
}

.mpp-sg-scroll {
	overflow-x: auto !important;
	border: 1px solid #e9edf4 !important;
	border-radius: 12px !important;
}

.mpp-sg .mpp-sg-table {
	width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	background: #fff !important;
	font-family: inherit !important;
	font-size: 12.5px !important;
	table-layout: auto !important;
}

.mpp-sg .mpp-sg-table th {
	padding: 11px 10px !important;
	border: 0 !important;
	border-block-end: 1px solid #e4eaf3 !important;
	background: #f2f6fc !important;
	background-image: none !important;
	color: #3d4759 !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.6 !important;
	text-align: center !important;
	white-space: nowrap !important;
	text-transform: none !important;
}

.mpp-sg .mpp-sg-table td {
	padding: 10px !important;
	border: 0 !important;
	border-block-end: 1px solid #f1f4f9 !important;
	background: transparent !important;
	color: #131a26 !important;
	font-family: inherit !important;
	font-size: 12.5px !important;
	line-height: 1.7 !important;
	text-align: center !important;
}

.mpp-sg .mpp-sg-table tbody tr:nth-child(even) td {
	background: #fbfcfe !important;
}

.mpp-sg .mpp-sg-table tbody tr:last-child td {
	border-block-end: 0 !important;
}

.mpp-sg .mpp-sg-note {
	margin: 14px 0 0 !important;
	padding: 0 !important;
	color: var(--mpp-muted) !important;
	font-family: inherit !important;
	font-size: 11.5px !important;
	line-height: 1.9 !important;
	text-align: start !important;
	border: 0 !important;
	background: transparent !important;
}

.mpp-bundle {
	margin-block-start: 18px;
	padding: 14px 16px 16px;
	border: 1px solid var(--mpp-line);
	border-radius: var(--mpp-radius);
	background: #fff;
	box-shadow: var(--mpp-shadow-sm);
}

.mpp-bundle-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-block-end: 12px;
}

.mpp-bundle .mpp-bundle-title {
	margin: 0;
	padding: 0;
	color: var(--mpp-text);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.6;
	border: 0;
}

.mpp-bundle-all {
	margin-inline-start: auto;
	padding: 7px 14px;
	border: 1px solid var(--mpp-primary);
	border-radius: 10px;
	background: var(--mpp-primary-soft);
	color: var(--mpp-primary);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.16s;
}

.mpp-bundle-all.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.mpp-bundle-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mpp-bundle-card {
	display: flex;
	flex: 1 1 290px;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 8px;
	overflow: hidden;
	border: 1px solid var(--mpp-line);
	border-radius: 14px;
	background: #fff;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.mpp-bundle-card:hover {
	border-color: #dbe3f0;
	box-shadow: 0 10px 24px -16px rgba(19, 26, 38, 0.4);
}

.mpp-bundle-thumb {
	display: block;
	flex: 0 0 78px;
	width: 78px;
	height: 78px;
	overflow: hidden;
	border-radius: 11px;
	background: #f6f8fc;
}

.mpp-bundle-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mpp-bundle-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.mpp-wrap .mpp-bundle-name {
	display: -webkit-box;
	overflow: hidden;
	color: var(--mpp-text);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.7;
	text-decoration: none;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.mpp-bundle-price {
	color: var(--mpp-muted);
	font-size: 11.5px;
	white-space: nowrap;
}

.mpp-bundle-price ins {
	color: var(--mpp-text-soft);
	font-weight: 800;
	text-decoration: none;
}

.mpp-bundle-price del {
	opacity: 0.6;
	font-size: 10.5px;
}

.mpp-bundle-add {
	flex: 0 0 auto;
	padding: 8px 13px;
	border: 0;
	border-radius: 9px;
	background: var(--mpp-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.16s, filter 0.16s;
}

.mpp-bundle-add:hover {
	filter: brightness(0.95);
	color: #fff;
}

.mpp-bundle-add.is-link {
	background: #eef3fb;
	color: var(--mpp-primary);
}

.mpp-bundle-add.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 860px) {
	.mpp-bundle {
		padding: 12px;
	}

	.mpp-bundle-card {
		flex: 1 1 100%;
	}

	.mpp-bundle-all {
		margin-inline-start: 0;
	}
}

/* theme hardening: bundle buttons */
.mpp-wrap .mpp-bundle-add,
.mpp-wrap .mpp-bundle-all {
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.6 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	cursor: pointer !important;
}

.mpp-wrap .mpp-bundle-add {
	padding: 8px 13px !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: var(--mpp-primary) !important;
	background-image: none !important;
	color: #fff !important;
}

.mpp-wrap .mpp-bundle-add.is-link {
	background: #eef3fb !important;
	color: var(--mpp-primary) !important;
}

.mpp-wrap .mpp-bundle-all {
	padding: 7px 14px !important;
	border: 1px solid var(--mpp-primary) !important;
	border-radius: 10px !important;
	background: var(--mpp-primary-soft) !important;
	background-image: none !important;
	color: var(--mpp-primary) !important;
}

/* ------------------------------------------- free shipping bar */

.mpp-fs-slot:empty {
	display: none;
}

.mpp-fs {
	margin-block-start: 12px;
	padding: 10px 12px 11px;
	border: 1px solid #e2ebdb;
	border-radius: var(--mpp-radius-sm);
	background: #f7fbf4;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.mpp-fs-head {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #3f6212;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.7;
}

.mpp-fs-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	color: #4d7c0f;
}

.mpp-fs-icon--check {
	display: none;
}

.mpp-fs-track {
	display: block;
	height: 7px;
	margin-block-start: 8px;
	overflow: hidden;
	border-radius: 99px;
	background: #e6efe0;
}

.mpp-fs-fill {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, #a3e635, #22c55e);
	transition: width 0.35s ease;
}

.mpp-fs.is-done {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.mpp-fs.is-done .mpp-fs-head {
	color: #15803d;
}

.mpp-fs.is-done .mpp-fs-icon--truck {
	display: none;
}

.mpp-fs.is-done .mpp-fs-icon--check {
	display: grid;
}

.mpp-fs.is-done .mpp-fs-fill {
	background: #22c55e;
}

/* ------------------------------------------- gallery lightbox navigation */

.mpp-lb-figure {
	position: relative;
	margin: 0;
	line-height: 0;
}

.mpp-lb-figure img {
	max-width: 100%;
	max-height: 86vh;
	border-radius: 14px;
	object-fit: contain;
}

.mpp-lb-nav {
	position: absolute !important;
	inset-block-start: 50% !important;
	z-index: 2 !important;
	display: grid !important;
	place-items: center !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	border-radius: 999px !important;
	background: rgba(15, 23, 42, 0.55) !important;
	background-image: none !important;
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6) !important;
	color: #fff !important;
	font-size: 0 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	transform: translateY(-50%) !important;
	transition: background 0.16s ease, transform 0.16s ease;
}

.mpp-lb-nav svg {
	display: block;
	width: 22px;
	height: 22px;
	pointer-events: none;
}

.mpp-lb-nav:hover {
	background: rgba(15, 23, 42, 0.82) !important;
	color: #fff !important;
	transform: translateY(-50%) scale(1.06) !important;
}

.mpp-lb-prev {
	inset-inline-start: 14px !important;
	inset-inline-end: auto !important;
}

.mpp-lb-next {
	inset-inline-end: 14px !important;
	inset-inline-start: auto !important;
}

.mpp-lb-count {
	position: absolute;
	inset-block-end: 14px;
	inset-inline-start: 50%;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.6);
	color: #fff;
	font-size: 11.5px;
	line-height: 1.9;
	pointer-events: none;
	transform: translateX(50%);
}

/* ------------------------------------------- sticky gallery on desktop */

@media (min-width: 861px) {
	.mpp-gallery-col {
		position: sticky;
		inset-block-start: 20px;
		align-self: start;
	}
}

/* ------------------------------------------------ wholesale badge */

.mpp-ws {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-block-start: 8px;
}

.mpp-ws-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border: 1px solid #dcc9f7;
	border-radius: 999px;
	background: #f6f0ff;
	color: #6d28d9;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.8;
	white-space: nowrap;
}

.mpp-ws-badge svg {
	flex: 0 0 auto;
}

.mpp-ws-note {
	margin: 0;
	color: var(--mpp-muted);
	font-size: 11px;
	line-height: 1.85;
	text-align: start;
}

/* ------------------------------------------------ free / call for price */

.mpp-wrap .mpp-price-now.is-free .mpp-num {
	color: var(--mpp-success);
	font-size: 20px;
	font-weight: 800;
}

.mpp-wrap .mpp-price-now.is-contact .mpp-num {
	color: var(--mpp-text-soft);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
}

.mpp-wrap .mpp-btn-buy.is-unavailable {
	background: #eef1f6 !important;
	background-image: none !important;
	color: #64748b !important;
	box-shadow: none !important;
	cursor: default !important;
	pointer-events: none !important;
}

.mpp-mb-price .mpp-mb-num.is-contact {
	font-size: 12px;
}

/* ------------------------------- wholesale note / price report rows */

/*
 * Both rows live in the buy box column: the note directly above the buy card
 * (above the add-to-cart button), the report row right below it. The column is
 * 302px wide on desktop, so everything here is tuned for a narrow container.
 */

.mpp-wrap .mpp-ws-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	margin-block-end: 10px;
	padding: 10px 12px;
	border: 1px solid var(--mpp-line);
	border-radius: var(--mpp-radius-sm);
	background: var(--mpp-primary-soft);
	color: var(--mpp-text-soft);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.85;
	text-align: center;
}

.mpp-wrap .mpp-ws-row-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--mpp-primary);
}

.mpp-wrap .mpp-ws-row-text {
	min-width: 0;
}

/* "cheaper price?" row */

.mpp-wrap .mpp-report-row {
	width: 100%;
	margin-block-start: 10px;
}

.mpp-wrap .mpp-report-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 11px 12px;
	border: 1px solid var(--mpp-line) !important;
	border-radius: var(--mpp-radius-sm) !important;
	background: var(--mpp-bg) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--mpp-text-soft) !important;
	font-family: inherit !important;
	font-size: 12.5px;
	font-weight: 400 !important;
	line-height: 1.75;
	text-align: start;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer;
	transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.mpp-wrap .mpp-report-btn:hover,
.mpp-wrap .mpp-report-btn:focus-visible {
	border-color: var(--mpp-primary) !important;
	background: var(--mpp-primary-soft) !important;
	color: var(--mpp-text) !important;
	outline: none;
}

.mpp-wrap .mpp-report-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--mpp-muted);
	transition: color 0.18s;
}

.mpp-wrap .mpp-report-btn:hover .mpp-report-icon {
	color: var(--mpp-primary);
}

.mpp-wrap .mpp-report-label {
	flex: 1 1 auto;
	min-width: 0;
}

.mpp-wrap .mpp-report-cta {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--mpp-primary);
	white-space: nowrap;
	border-block-end: 1px dashed currentColor;
	padding-block-end: 1px;
}

/* ------------------------------------------------------- report modal */

/*
 * The modal is printed in wp_footer, outside .mpp-wrap, so the custom
 * properties of the wrapper are not available here: every colour has a
 * literal fallback and the accent is passed inline by the template.
 */
.mpp-rp {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	direction: rtl;
	color: #131a26;
	line-height: 1.85;
	text-align: right;
}

.mpp-rp[hidden] {
	display: none !important;
}

.mpp-rp-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: mpp-rp-fade 0.18s ease-out;
}

.mpp-rp-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 26px 26px 22px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3);
	animation: mpp-rp-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mpp-rp-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes mpp-rp-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

.mpp-rp-close {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f4f9;
	color: #5a6474;
	cursor: pointer;
	transition: background 0.16s, color 0.16s;
}

.mpp-rp-close:hover {
	background: #e6ebf3;
	color: #131a26;
}

.mpp-rp-title {
	margin: 0 34px 6px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 2;
	color: #131a26;
	text-align: center;
}

.mpp-rp-title-name {
	font-weight: 800;
}

.mpp-rp-label {
	display: block;
	margin: 14px 0 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: #5a6474;
	text-align: start;
}

.mpp-rp-input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #e2e8f2;
	border-radius: 10px;
	background: #fbfcfe;
	box-shadow: none;
	color: #131a26;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.9;
	text-align: start;
	transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}

.mpp-rp-input:focus {
	border-color: var(--mpp-rp-accent, #2563eb);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	outline: none;
}

.mpp-rp-input::placeholder {
	color: #a9b2c1;
	opacity: 1;
}

.mpp-rp-textarea {
	min-height: 84px;
	resize: vertical;
}

.mpp-rp-hp {
	position: absolute;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.mpp-rp-submit {
	display: block;
	width: 100%;
	margin-block-start: 18px;
	padding: 13px 18px;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--mpp-rp-accent, #2563eb) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 14px;
	font-weight: 700 !important;
	line-height: 1.7;
	text-align: center;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer;
	transition: filter 0.16s, opacity 0.16s;
}

.mpp-rp-submit:hover {
	filter: brightness(0.94);
}

.mpp-rp-submit[disabled] {
	opacity: 0.65;
	cursor: default;
}

.mpp-rp-msg {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.9;
	text-align: center;
	color: #c0263c;
}

.mpp-rp-msg.is-ok {
	color: #12803f;
}

.mpp-rp-done {
	padding: 8px 0 2px;
	text-align: center;
}

.mpp-rp-done-icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #e8f7ee;
	color: #12803f;
}

.mpp-rp-done-text {
	margin: 12px 0 18px;
	font-size: 13px;
	line-height: 2;
	color: #3d4759;
}

body.mpp-rp-lock {
	overflow: hidden;
}

@media (max-width: 560px) {
	.mpp-rp {
		padding: 12px;
	}

	.mpp-rp-dialog {
		padding: 22px 18px 18px;
		border-radius: 16px;
	}

	.mpp-rp-title {
		margin-inline: 26px;
		font-size: 13px;
	}
}
