/* Scoped to the plugin: theme typography is inherited and no commerce selector is changed. */
.mgc {
	--mgc-bg: #fff;
	--mgc-text: #353434;
	--mgc-button: #f7f0f0;
	--mgc-radius: 8px;
	color: var(--mgc-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.6;
}
.mgc *,
.mgc *::before,
.mgc *::after {
	box-sizing: border-box;
}
.mgc [hidden] {
	display: none !important;
}
.mgc-banner,
.mgc-dialog {
	background: var(--mgc-bg);
	color: var(--mgc-text);
	border: 0;
	border-radius: var(--mgc-radius);
	box-shadow: 0 8px 40px rgb(53 52 52 / 16%);
	padding: 24px;
	font: inherit;
}
.mgc-banner {
	position: fixed;
	z-index: 100001;
	bottom: max(20px, env(safe-area-inset-bottom));
	left: 50%;
	width: min(620px, calc(100% - 32px));
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	transform: translateX(-50%);
	transition:
		opacity 180ms ease,
		translate 180ms ease,
		visibility 180ms;
}
.mgc-banner.mgc-scroll-hidden:not(:focus-within) {
	opacity: 0;
	translate: 0 20px;
	visibility: hidden;
	pointer-events: none;
}
.mgc h2 {
	color: inherit;
	font-family: var(--font-display, 'EB Garamond', Georgia, serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 10px;
	letter-spacing: 0;
}
.mgc p {
	color: inherit;
	font: inherit;
	margin: 0 0 18px;
}
.mgc button,
.mgc a {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
}
.mgc button {
	min-height: 44px;
	cursor: pointer;
	border: 1px solid #8b8483;
	border-radius: 4px;
	padding: 10px 14px;
	background: var(--mgc-button);
	color: var(--mgc-text);
	font-weight: 500;
	box-shadow: none;
}
.mgc button:hover {
	filter: brightness(0.96);
}
.mgc button:focus-visible,
.mgc a:focus-visible,
.mgc input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}
.mgc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mgc-actions button {
	flex: 1 1 130px;
}
.mgc-actions [data-mgc-action='reject'],
.mgc-actions .mgc-preferences {
	background: transparent;
}
.mgc .mgc-policy {
	display: inline-block;
	margin-top: 12px;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-size: 13px;
}
.mgc-dialog {
	position: fixed;
	margin: auto;
	inset: 0;
	width: min(600px, calc(100% - 32px));
	max-height: calc(100dvh - 40px);
	overflow: auto;
	overscroll-behavior: contain;
}
.mgc-dialog::backdrop {
	background: rgb(53 52 52 / 20%);
}
.mgc-dialog-heading {
	display: flex;
	align-items: start;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 8px;
}
.mgc-dialog-heading h2 {
	margin-top: 6px;
}
.mgc .mgc-close {
	flex: 0 0 44px;
	display: grid;
	place-items: center;
	background: transparent;
	padding: 8px;
	border-color: transparent;
}
.mgc-category {
	padding: 16px 0;
	border-top: 1px solid #e5e0e0;
}
.mgc-category-heading {
	display: flex;
	align-items: center;
	gap: 12px;
}
.mgc-category label {
	font-weight: 600;
	margin: 0 auto 0 0;
	cursor: pointer;
}
.mgc-category span {
	font-size: 12px;
}
.mgc-category p {
	margin: 8px 0 0;
	font-size: 13px;
}
.mgc .mgc-category input[type='checkbox'] {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	position: relative;
	flex: 0 0 40px;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
	height: 24px;
	min-height: 24px;
	max-height: 24px;
	padding: 0;
	margin: 0;
	border: 1px solid #8b8483;
	border-radius: 20px;
	background: var(--mgc-bg);
	background-image: none;
	box-shadow: none;
	opacity: 1;
	cursor: pointer;
}
.mgc .mgc-category input[type='checkbox']::before {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	inset: 3px auto auto 3px;
	border-radius: 50%;
	background: var(--mgc-text);
	transition: transform 150ms ease;
}
.mgc .mgc-category input[type='checkbox']:checked {
	background: var(--mgc-text);
	border-color: var(--mgc-text);
}
.mgc .mgc-category input[type='checkbox']:checked::before {
	background: var(--mgc-bg);
	transform: translateX(16px);
}
.mgc .mgc-category input[type='checkbox']:disabled {
	cursor: default;
}
.mgc .mgc-save {
	width: 100%;
	margin: 10px 0;
	background: var(--mgc-text);
	color: var(--mgc-bg);
}
.mgc-footer {
	padding: 16px;
	text-align: center;
}
.mgc .mgc-footer button {
	background: transparent;
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.mgc-status:empty {
	display: none;
}
.mgc .mgc-status {
	position: fixed;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.mgc .mgc-status-error {
	position: fixed;
	z-index: 100002;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: min(620px, calc(100% - 32px));
	height: auto;
	padding: 16px;
	clip-path: none;
	white-space: normal;
	background: var(--mgc-bg);
	color: var(--mgc-text);
	border: 1px solid currentColor;
	border-radius: var(--mgc-radius);
}
@media (max-width: 480px) {
	.mgc-banner,
	.mgc-dialog {
		padding: 20px;
		width: calc(100% - 24px);
	}
	.mgc-banner {
		bottom: max(12px, env(safe-area-inset-bottom));
	}
	.mgc-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.mgc-actions .mgc-preferences {
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.mgc button {
		padding: 10px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mgc-banner,
	.mgc .mgc-category input[type='checkbox']::before {
		transition: none;
	}
}
@media (forced-colors: active) {
	.mgc .mgc-category input[type='checkbox'] {
		appearance: auto;
	}
	.mgc .mgc-category input[type='checkbox']::before {
		display: none;
	}
}
