/**
 * Pillow Mockup Generator — front-end widget styles (popup modal flow).
 * The widget renders a hidden host; the purchase flow lives inside a popup
 * modal. All rules are scoped under `.pmg` so nothing leaks into the theme.
 */

.pmg {
	--pmg-ink: #0F172A;
	--pmg-muted: #64748B;
	--pmg-paper: #FFFFFF;
	--pmg-bg: #fbf9f9;
	--pmg-rule: #ebe7e7;
	--pmg-accent: #EB2371;
	--pmg-accent-ink: #FFFFFF;
	--pmg-radius: 7px;
	--pmg-shadow: rgb(0 0 0 / 16%) 0 47px 46px -27px, rgb(0 0 0 / 6%) 0 2px 12px 0;
	--pmg-shadow-hover: rgb(0 0 0 / 16%) 0 47px 46px -27px, rgb(0 0 0 / 16%) 0 2px 12px 0;
	--pmg-transition: all 0.5s ease;

	box-sizing: border-box;
	direction: ltr;
	color: var(--pmg-ink);
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

.pmg h1,
.pmg h2,
.pmg h3,
.pmg h4,
.pmg p,
.pmg figure {
	margin: 0;
	padding: 0;
}

/* Lock background scroll while the modal is open.
   position:fixed (with a JS-restored scroll offset) is the only reliable way to
   stop the page behind the popup from scrolling on iOS / touch devices. */
html.pmg-modal-open {
	overflow: hidden;
}

body.pmg-modal-open {
	position: fixed;
	inset-inline: 0;
	width: 100%;
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Popup modal                                                        */
/* ------------------------------------------------------------------ */
.pmg__modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	padding: 0;
	overscroll-behavior: contain;
}

.pmg__modal[hidden] {
	display: none;
}

.pmg__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgb(15 23 42 / 55%);
	backdrop-filter: blur(2px);
	animation: pmg-fade 0.3s ease both;
}

.pmg__modal-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: var(--pmg-paper);
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	animation: pmg-fade 0.3s ease both;
}

.pmg__modal-close {
	position: fixed;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--pmg-paper);
	color: var(--pmg-ink);
	cursor: pointer;
	box-shadow: rgb(0 0 0 / 15%) 0 4px 14px -2px;
	transition: var(--pmg-transition);
}

.pmg__modal-close:hover {
	background: var(--pmg-rule);
	color: var(--pmg-ink);
}

.pmg__modal-close svg {
	width: 18px;
	height: 18px;
}

/* Top promo bar (full width, edge to edge) */
.pmg__topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 16px;
	background: var(--pmg-ink);
	color: #fff;
	font-size: clamp(12px, 2.4vw, 14px);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-align: center;
}

.pmg__emoji {
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.15em;
}

/* Centered content body inside the full-screen card */
.pmg__modal-body {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 48px) clamp(18px, 4vw, 32px) clamp(40px, 6vw, 64px);
}

/* Hero header inside the modal */
.pmg__hero {
	text-align: center;
	margin-block-end: clamp(20px, 4vw, 32px);
}

.pmg__award {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	margin-block-end: 16px;
	border: 1px solid var(--pmg-rule);
	border-radius: 100px;
	background: var(--pmg-bg);
	font-size: 13px;
	font-weight: 600;
	color: var(--pmg-ink);
}

.pmg__award img {
	width: 18px;
	height: 18px;
}

.pmg__hero-title {
	margin: 0 0 12px !important;
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: clamp(26px, 5.5vw, 40px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--pmg-ink);
}

.pmg__hero-title span {
	color: var(--pmg-accent, var(--pmg-muted));
}

.pmg__hero-subtitle {
	margin: 0 auto;
	max-width: 480px;
	font-size: clamp(15px, 2.6vw, 18px);
	line-height: 1.5;
	color: var(--pmg-muted);
}

/* Hide the marketing/upload hero whenever a mockup is already on screen.
   It only ever shows during "loading" (as a backdrop while the first mockup
   is generated); once there's an image to show it must never look like an
   upload prompt again. */
.pmg[data-state="preview"] .pmg__hero,
.pmg[data-state="size"] .pmg__hero,
.pmg[data-state="details"] .pmg__hero,
.pmg[data-state="done"] .pmg__hero {
	display: none;
}

@keyframes pmg-pop {
	from { opacity: 0; transform: translateY(16px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Flow stage (loading → preview → size → details → done)            */
/* ------------------------------------------------------------------ */
.pmg__stage {
	position: relative;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.pmg__panel {
	display: none;
	width: 100%;
	padding-bottom: 0;
	animation: pmg-fade 0.5s ease both;
}

.pmg[data-state="loading"] .pmg__panel--loading,
.pmg[data-state="preview"] .pmg__panel--preview,
.pmg[data-state="size"] .pmg__panel--size,
.pmg[data-state="details"] .pmg__panel--details,
.pmg[data-state="done"] .pmg__panel--done {
	display: block;
}

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

/* Buttons */
.pmg__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	min-height: 50px;
	padding: 14px 28px;
	border-radius: 100px;
	border: 1.5px solid var(--pmg-ink);
	background: transparent;
	color: var(--pmg-ink);
	cursor: pointer;
	transition: var(--pmg-transition);
	text-decoration: none;
}

.pmg__btn:hover {
	background: var(--pmg-ink);
	color: var(--pmg-paper);
	transform: translateY(-1px);
}

.pmg__btn--primary {
	border-color: var(--pmg-accent);
	background: var(--pmg-accent);
	color: var(--pmg-accent-ink);
	box-shadow: 0 8px 20px rgb(235 35 113 / 25%);
}

.pmg__btn--primary:hover {
	background: transparent;
	color: var(--pmg-accent);
}

.pmg__btn--ghost {
	border-color: var(--pmg-rule);
	color: var(--pmg-muted);
	box-shadow: none;
}

.pmg__btn--ghost:hover {
	background: var(--pmg-bg);
	color: var(--pmg-ink);
}

.pmg__btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

/* Loading + Lottie */
.pmg__panel--loading {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 30px 0;
}

.pmg[data-state="loading"] .pmg__panel--loading {
	display: flex;
}

.pmg__lottie {
	width: 180px;
	height: 180px;
}

.pmg__spinner {
	display: none;
	width: 56px;
	height: 56px;
	border: 4px solid var(--pmg-rule);
	border-top-color: var(--pmg-accent);
	border-radius: 50%;
	animation: pmg-spin 0.9s linear infinite;
}

.pmg.is-no-lottie .pmg__lottie {
	display: none;
}

.pmg.is-no-lottie .pmg__spinner {
	display: block;
}

@keyframes pmg-spin {
	to { transform: rotate(360deg); }
}

.pmg__loading-text {
	font-weight: 500;
	font-size: 18px;
	color: var(--pmg-muted);
	margin: 0;
}

/* Preview frame */
.pmg__frame {
	position: relative;
	display: inline-block;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	background: var(--pmg-paper);
	border-radius: var(--pmg-radius);
	box-shadow: var(--pmg-shadow);
	transition: var(--pmg-transition);
}

.pmg__frame:hover {
	box-shadow: var(--pmg-shadow-hover);
	transform: translateY(-5px);
}

.pmg__result {
	display: block;
	max-width: 100%;
	max-height: 52vh;
	width: auto;
	height: auto;
	border-radius: calc(var(--pmg-radius) - 3px);
	cursor: zoom-in;
}

.pmg__zoom-badge {
	position: absolute;
	inset-block-end: 10px;
	inset-inline-end: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgb(15 23 42 / 55%);
	color: #fff;
	cursor: zoom-in;
	backdrop-filter: blur(4px);
	transition: var(--pmg-transition);
}

.pmg__zoom-badge svg {
	min-width: 20px;
	height: 43px;
}

.pmg__zoom-badge:hover {
	background: var(--pmg-accent);
	transform: scale(1.08);
}

/* Zoom lightbox */
.pmg__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.pmg__lightbox[hidden] {
	display: none;
}

.pmg__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgb(12 12 14 / 88%);
	animation: pmg-fade 0.3s ease both;
}

.pmg__lightbox-close {
	position: absolute;
	inset-block-start: 18px;
	inset-inline-end: 18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 12%);
	color: #fff;
	cursor: pointer;
	transition: var(--pmg-transition);
}

.pmg__lightbox-close:hover {
	background: rgb(255 255 255 / 22%);
}

.pmg__lightbox-close svg {
	width: 22px;
	height: 22px;
}

.pmg__lightbox-stage {
	position: relative;
	z-index: 1;
	max-width: 92vw;
	max-height: 88vh;
	overflow: hidden;
	border-radius: 12px;
	animation: pmg-pop 0.3s ease both;
}

.pmg__lightbox-img {
	display: block;
	max-width: 92vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	cursor: zoom-in;
	transform: scale(1);
	transition: transform 0.3s ease;
	will-change: transform;
}

.pmg__lightbox-img.is-zoomed {
	transform: scale(2.4);
	cursor: zoom-out;
}

/* Gallery of generated mockups */
.pmg__gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-block-start: clamp(16px, 3vw, 24px);
	padding-bottom: 20px;
}

.pmg__thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid var(--pmg-rule);
	border-radius: 12px;
	background: var(--pmg-paper);
	cursor: pointer;
	overflow: hidden;
	transition: var(--pmg-transition);
}

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

.pmg__thumb:hover {
	border-color: var(--pmg-muted);
	transform: translateY(-2px);
}

.pmg__thumb.is-selected {
	border-color: var(--pmg-accent);
	box-shadow: rgb(235 35 113 / 22%) 0 0 0 3px;
}

/* Toolbar */
.pmg__toolbar {
	position: sticky;
	inset-block-end: 10px;
	inset-inline: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 350px;
	max-width: 100%;
	margin: 0 auto;
	padding: 10px;
	background: var(--pmg-paper);
	border: 1px solid var(--pmg-rule);
	border-radius: 100px;
	box-shadow: var(--pmg-shadow);
	flex-wrap: nowrap;
	justify-content: space-around;
}

.pmg__tool {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	min-width: 76px;
	padding: 10px 14px;
	border: 0;
	background: transparent;
	color: var(--pmg-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 100px;
	transition: var(--pmg-transition);
}

.pmg__tool:hover {
	background: var(--pmg-bg);
}

.pmg__tool[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.pmg__tool-icon {
	width: 24px;
	height: 24px;
	color: var(--pmg-accent);
}

.pmg__tool-icon svg {
	width: 100%;
	height: 100%;
}

.pmg__tool--cta {
	margin-inline-start: 6px;
	align-self: stretch;
}

.pmg__attempts {
	font-size: 11px;
	font-weight: 400;
	color: var(--pmg-muted);
}

/* Form */
.pmg__form {
	max-width: 460px;
	margin-inline: auto;
	text-align: center;
}

.pmg__form-title {
	font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
	font-weight: 800;
	font-size: clamp(22px, 3.6vw, 30px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 10px !important;
}

.pmg__form-subtitle {
	font-weight: 500;
	font-size: 15px;
	line-height: 1.5;
	color: var(--pmg-muted);
	margin: 0 auto 24px !important;
	max-width: 36ch;
}

.pmg__field {
	margin-block-end: 0;
	text-align: start;
}

.pmg__field-row {
	display: flex;
	gap: 12px;
}

.pmg__field-row .pmg__field {
	flex: 1;
	min-width: 0;
}

@media (max-width: 480px) {
	.pmg__field-row {
		flex-direction: column;
		gap: 0;
	}
}

.pmg__input-wrap {
	position: relative;
	display: block;
}

.pmg__input {
	width: 100%;
	font-family: inherit;
	font-size: 16px;
	color: var(--pmg-ink);
	min-height: 50px;
	padding-block: 17px;
	padding-inline: 16px;
	border: 1.5px solid var(--pmg-rule);
	border-radius: 14px;
	background: var(--pmg-bg);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.pmg__label {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 14px;
	transform: translateY(-50%);
	padding-inline: 5px;
	background: var(--pmg-bg);
	color: var(--pmg-muted);
	font-size: 16px;
	font-weight: 400;
	pointer-events: none;
	transition: all 0.18s ease;
}

.pmg__input::placeholder {
	color: transparent;
}

.pmg__input:focus {
	outline: 0;
	background: var(--pmg-paper);
	border-color: var(--pmg-accent);
	box-shadow: rgb(235 35 113 / 14%) 0 0 0 4px;
}

.pmg__input:focus ~ .pmg__label,
.pmg__input:not(:placeholder-shown) ~ .pmg__label {
	inset-block-start: 0;
	transform: translateY(-50%) scale(0.82);
	font-weight: 600;
	color: var(--pmg-accent);
	background: var(--pmg-paper);
}

.pmg__input:not(:focus):not(:placeholder-shown) ~ .pmg__label {
	color: var(--pmg-muted);
}

.pmg__field.is-invalid .pmg__input {
	border-color: var(--pmg-accent);
	background: rgb(235 35 113 / 4%);
	box-shadow: rgb(235 35 113 / 12%) 0 0 0 4px;
}

/* State dropdown */
.pmg__input-wrap--select {
	position: relative;
}

.pmg__select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-inline-end: 42px;
	cursor: pointer;
	line-height: 1.2;
}

.pmg__select option[value=""] {
	color: var(--pmg-muted);
}

.pmg__select-arrow {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 14px;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	color: var(--pmg-muted);
	pointer-events: none;
}

.pmg__select-arrow svg {
	width: 100%;
	height: 100%;
}

.pmg__error {
	display: block;
	min-height: 14px;
	margin-block-start: 6px;
	margin-inline-start: 4px;
	font-size: 13px;
	color: var(--pmg-accent);
}

.pmg__form-actions {
	display: flex;
	gap: 12px;
	margin-block-start: 24px;
}

.pmg__form-actions .pmg__btn {
	flex: 1;
	padding-block: 16px;
}

.pmg__form-actions .pmg__btn--primary {
	flex: 2;
	font-weight: 700;
}

.pmg__privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 12px !important;
	font-size: 12.5px;
	color: var(--pmg-muted);
}

.pmg__privacy svg {
	width: 14px;
	height: 14px;
	flex: none;
	color: var(--pmg-accent);
}

/* Notices */
.pmg__notice {
	margin-block-start: 16px;
	font-size: 14px;
	color: var(--pmg-accent);
}

.pmg__notice[hidden] {
	display: none;
}

/* Done */
.pmg__panel--done {
	padding: 30px 0;
}

.pmg__done-icon {
	display: inline-flex;
	width: 72px;
	height: 72px;
	color: var(--pmg-accent);
	margin-block-end: 16px;
}

.pmg__done-icon svg {
	width: 100%;
	height: 100%;
}

.pmg__done-title {
	font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
	font-weight: 800;
	font-size: clamp(24px, 4vw, 36px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 10px;
}

.pmg__done-message {
	font-weight: 500;
	font-size: 17px;
	color: var(--pmg-muted);
	max-width: 460px;
	margin-inline: auto;
}

/* Busy state lock */
.pmg.is-busy {
	pointer-events: none;
}

.pmg.is-busy .pmg__panel--loading {
	pointer-events: auto;
}

@media (max-width: 600px) {
	.pmg__toolbar {
		width: 100%;
	}

	.pmg__tool--cta {
		margin-inline-start: 6px;
	}
}

/* ------------------------------------------------------------------ */
/* Size selection                                                     */
/* ------------------------------------------------------------------ */
.pmg__panel--size {
	padding: 4px;
	text-align: center;
}

.pmg__size-preview {
	margin: 0 0 clamp(16px, 4vw, 24px);
	padding: 0;
	text-align: center;
}

.pmg__size-preview[hidden] {
	display: none;
}

.pmg__size-preview-img {
	display: inline-block !important;
	max-width: min(280px, 80%) !important;
	max-height: 32vh !important;
	width: auto !important;
	height: auto !important;
	border-radius: var(--pmg-radius) !important;
	box-shadow: var(--pmg-shadow) !important;
}

.pmg__size-title {
	font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
	margin: 24px 0 12px !important;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--pmg-ink);
}

.pmg__sizes {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-block-end: 20px;
}

.pmg__size {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px 18px;
	border: 1.5px solid var(--pmg-rule);
	border-radius: 16px;
	background: var(--pmg-bg);
	cursor: pointer;
	text-align: start;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pmg__size:hover {
	border-color: var(--pmg-accent);
	background: var(--pmg-paper);
}

.pmg__size.is-selected {
	border-color: var(--pmg-accent);
	box-shadow: rgb(235 35 113 / 14%) 0 0 0 4px;
	background: var(--pmg-paper);
}

.pmg__size-name {
	font-size: 17px;
	font-weight: 700;
	color: var(--pmg-ink);
}

.pmg__size-cm {
	font-size: 14px;
	color: var(--pmg-muted);
}

.pmg__size-prices {
	margin-inline-start: auto;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.pmg__size-price {
	font-size: 18px;
	font-weight: 800;
	color: var(--pmg-accent);
}

.pmg__size-compare {
	font-size: 14px;
	color: var(--pmg-muted);
	text-decoration: line-through;
}

/* Order summary inside details form */
.pmg__order-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-block-end: 18px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--pmg-bg);
	border: 1.5px dashed var(--pmg-rule);
	font-size: 15px;
	color: var(--pmg-ink);
}

.pmg__order-summary[hidden] {
	display: none;
}

.pmg__order-summary strong {
	color: var(--pmg-accent);
}

.pmg__order-prices {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
}

.pmg__order-compare {
	font-size: 13px;
	color: var(--pmg-muted);
	text-decoration: line-through;
}

/* Free-shipping badge */
.pmg__shipping {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pmg-ink);
}

.pmg__shipping svg {
	width: 20px;
	height: 20px;
	flex: none;
	color: var(--pmg-accent);
}

/* ------------------------------------------------------------------ */
/* Theme override guard (re-assert widget styling at higher           */
/* specificity via `.pmg.pmg` so theme/Elementor rules can't hijack)  */
/* ------------------------------------------------------------------ */
.pmg.pmg button,
.pmg.pmg input,
.pmg.pmg select,
.pmg.pmg textarea {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.pmg.pmg .pmg__btn {
	font-size: 15px;
	font-weight: 600;
	min-height: 32px;
	padding: 3px 25px;
	height: 52px;
	margin-top: auto;
	margin-bottom: auto;
	border: 1.5px solid var(--pmg-ink);
	border-radius: 100px;
	background: transparent;
	color: var(--pmg-ink);
}

.pmg.pmg .pmg__btn:hover {
	background: var(--pmg-ink);
	color: var(--pmg-paper);
}

.pmg.pmg .pmg__btn--primary {
	border-color: var(--pmg-accent);
	background: var(--pmg-accent);
	color: var(--pmg-accent-ink);
}

.pmg.pmg .pmg__btn--primary:hover {
	background: transparent;
	color: var(--pmg-accent);
}

.pmg.pmg .pmg__btn--ghost {
	border-color: var(--pmg-rule);
	background: transparent;
	color: var(--pmg-muted);
}

.pmg.pmg .pmg__btn--ghost:hover {
	background: var(--pmg-bg);
	color: var(--pmg-ink);
}

.pmg.pmg .pmg__tool {
	font-size: 13px;
	font-weight: 600;
	background: transparent;
	color: var(--pmg-ink);
}

.pmg.pmg .pmg__tool:hover {
	background: var(--pmg-bg);
}

.pmg.pmg .pmg__zoom-badge {
	background: rgb(15 23 42 / 55%);
	color: #fff;
}

.pmg.pmg .pmg__zoom-badge:hover {
	background: var(--pmg-accent);
}

.pmg.pmg .pmg__lightbox-close {
	background: rgb(255 255 255 / 12%);
	color: #fff;
}

.pmg.pmg .pmg__lightbox-close:hover {
	background: rgb(255 255 255 / 22%);
}

.pmg.pmg .pmg__input {
	font-size: 16px;
	min-height: 50px;
	color: var(--pmg-ink);
	background: var(--pmg-bg);
	border: 1.5px solid var(--pmg-rule);
	border-radius: 14px;
}

.pmg.pmg .pmg__input:focus {
	background: var(--pmg-paper);
	border-color: var(--pmg-accent);
}

.pmg.pmg .pmg__select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-inline-end: 42px;
	background-image: none;
	height: auto;
}

.pmg.pmg .pmg__thumb {
	background: var(--pmg-paper);
	border: 2px solid var(--pmg-rule);
}

.pmg.pmg .pmg__thumb.is-selected {
	border-color: var(--pmg-accent);
}

.pmg.pmg .pmg__size {
	background: var(--pmg-bg);
	color: var(--pmg-ink);
	border: 1.5px solid var(--pmg-rule);
	font-size: inherit;
}

.pmg.pmg .pmg__size:hover,
.pmg.pmg .pmg__size.is-selected {
	border-color: var(--pmg-accent);
	background: var(--pmg-paper);
}
