/* AD Configurator */
.mkl_pc .ad-cfg-hidden { display: none !important; }
.mkl_pc .ad-cfg-choice-price { display: block; font-size: .85em; opacity: .8; }
.mkl_pc .ad-cfg-out-of-stock { display: block; font-size: .8em; color: #b32d2e; }
.mkl_pc li.choice.out-of-stock .choice-item { opacity: .55; cursor: not-allowed; }
.mkl_pc .ad-cfg-total-wrap { display: inline-flex; gap: .4em; align-items: baseline; margin-right: 1em; }
.mkl_pc .ad-cfg-total-label { font-size: .85em; opacity: .75; }

/* Choices locked by a "force choice" rule */
.ad-cfg-locked { opacity: .45; }
.ad-cfg-locked > button, .ad-cfg-locked .choice-item { cursor: not-allowed; }

/* ------------------------------------------------------------------ */
/* Form fields (v0.4.0)                                                 */
/* ------------------------------------------------------------------ */
/* One field per row, whatever grid the theme gives choice lists. */
.mkl_pc ul.layer_choices.ad-cfg-form li.choices-list > ul { display: flex !important; flex-direction: column; flex-wrap: nowrap; gap: 0; }
.mkl_pc ul.layer_choices.ad-cfg-form li.choices-list > ul > li.ad-cfg-field { width: 100% !important; max-width: 100% !important; flex: 0 0 auto !important; margin: 0 0 1em; padding: 0; list-style: none; float: none; text-align: left; }
.mkl_pc ul.layer_choices.ad-cfg-form li.choices-list > ul > li.ad-cfg-field.ad-cfg-hidden { display: none !important; }
.mkl_pc .ad-cfg-field { list-style: none; }
.mkl_pc .ad-cfg-file-remove { white-space: nowrap; }
.mkl_pc .ad-cfg-field.ad-cfg-hidden { display: none !important; }
.mkl_pc .ad-cfg-field__label,
.mkl_pc .ad-cfg-field__radios legend { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-weight: 600; margin: 0 0 .35em; padding: 0; }
.mkl_pc .ad-cfg-field .required { color: #b32d2e; }
.mkl_pc .ad-cfg-field .choice-price { font-weight: normal; opacity: .8; margin-left: .25em; }
.mkl_pc .ad-cfg-field input[type="text"],
.mkl_pc .ad-cfg-field input[type="number"],
.mkl_pc .ad-cfg-field textarea,
.mkl_pc .ad-cfg-field select { width: 100%; max-width: 100%; box-sizing: border-box; }
.mkl_pc .ad-cfg-field textarea { resize: vertical; min-height: 3.2em; }
.mkl_pc .ad-cfg-field__radios { border: 0; margin: 0; padding: 0; }
.mkl_pc .ad-cfg-field__radio,
.mkl_pc .ad-cfg-field__check { display: block; margin: .2em 0; cursor: pointer; }
.mkl_pc .ad-cfg-field__sub { display: block; margin-top: .5em; }
.mkl_pc .ad-cfg-field__sub select { width: auto; margin-left: .4em; }
.mkl_pc .ad-cfg-field__count { font-size: .85em; font-weight: 400; opacity: .7; margin: 0; white-space: nowrap; }
.mkl_pc .ad-cfg-field__help { font-size: .9em; opacity: .8; margin: .25em 0 0; }
.mkl_pc .ad-cfg-field__error { color: #b32d2e; font-size: .9em; margin: .25em 0 0; }
.mkl_pc .ad-cfg-field__error:empty { display: none; }
.mkl_pc .ad-cfg-field.has-error input,
.mkl_pc .ad-cfg-field.has-error textarea { border-color: #b32d2e; }
.mkl_pc .ad-cfg-color { border: 0; margin: .5em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.mkl_pc .ad-cfg-color legend { float: left; margin-right: .5em; padding: 0; }
.mkl_pc .ad-cfg-swatch { position: relative; cursor: pointer; }
.mkl_pc .ad-cfg-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mkl_pc .ad-cfg-swatch__dot { display: inline-block; width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.mkl_pc .ad-cfg-swatch input:checked + .ad-cfg-swatch__dot { box-shadow: 0 0 0 2px currentColor; }
.mkl_pc .ad-cfg-swatch input:focus-visible + .ad-cfg-swatch__dot { outline: 2px solid; outline-offset: 2px; }
.mkl_pc .ad-cfg-upload { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
.mkl_pc .ad-cfg-upload__button { cursor: pointer; }
.mkl_pc .ad-cfg-upload__button:focus-within { outline: 2px solid; outline-offset: 2px; }
.mkl_pc .ad-cfg-field.is-uploading .ad-cfg-upload__name { opacity: .6; }
.mkl_pc .ad-cfg-upload__adjust label { display: block; margin-top: .35em; font-size: .9em; }
.mkl_pc .ad-cfg-upload__adjust input[type="range"] { width: 100%; }
.mkl_pc .ad-cfg-field .screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Live preview over the product image */
.mkl_pc .mkl_pc_viewer { position: relative; }
.mkl_pc .ad-cfg-overlay { position: absolute; pointer-events: none; z-index: 5; overflow: visible; }
.mkl_pc .ad-cfg-overlay svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mkl_pc .ad-cfg-overlay__text { mix-blend-mode: multiply; }

/* ------------------------------------------------------------------ */
/* Save / share designs (v0.5.0)                                       */
/* ------------------------------------------------------------------ */
.mkl_pc .ad-cfg-design-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .25em;
	align-items: center;
}
.mkl_pc .ad-cfg-dialog {
	position: absolute;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba( 0, 0, 0, .45 );
	padding: 1em;
}
.mkl_pc .ad-cfg-dialog__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: 90%;
	overflow: auto;
	background: #fff;
	color: inherit;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, .3 );
	padding: 1.4em 1.5em 1.2em;
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
}
.mkl_pc .ad-cfg-dialog__title {
	margin: 0 1.5em .7em 0;
	font-size: 1.2em;
	line-height: 1.3;
}
.mkl_pc .ad-cfg-dialog__close,
.mkl_pc .ad-cfg-load-notice__close {
	position: absolute;
	top: .35em;
	right: .45em;
	width: 1.8em;
	height: 1.8em;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.4em;
	line-height: 1;
	cursor: pointer;
	opacity: .65;
	box-shadow: none;
}
.mkl_pc .ad-cfg-dialog__close:hover,
.mkl_pc .ad-cfg-load-notice__close:hover { opacity: 1; background: transparent; }
.mkl_pc .ad-cfg-dialog__label {
	display: block;
	margin: .2em 0 .3em;
	font-weight: 600;
}
.mkl_pc .ad-cfg-dialog__input {
	display: block;
	width: 100% !important;
	box-sizing: border-box;
	margin: 0 0 .6em;
	padding: .55em .7em;
	border: 1px solid rgba( 0, 0, 0, .25 );
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	color: #222;
}
.mkl_pc .ad-cfg-dialog__help { margin: 0 0 .6em; font-size: .92em; opacity: .85; }
.mkl_pc .ad-cfg-dialog__status { min-height: 1.4em; margin: 0 0 .6em; font-size: .92em; }
.mkl_pc .ad-cfg-dialog__status.is-error { color: #b32d2e; }
.mkl_pc .ad-cfg-dialog__status.is-success { color: #1e7b34; }
.mkl_pc .ad-cfg-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	justify-content: flex-end;
}
.mkl_pc .ad-cfg-dialog__actions .button,
.mkl_pc .ad-cfg-dialog__actions button,
.mkl_pc .ad-cfg-dialog__actions a {
	margin: 0 !important;
	width: auto !important;
	text-decoration: none;
}
.mkl_pc .ad-cfg-dialog .ad-cfg-dialog__actions button.ad-cfg-secondary,
.mkl_pc .ad-cfg-dialog .ad-cfg-dialog__actions a.ad-cfg-secondary {
	background: #fff !important;
	background-image: none !important;
	color: #333 !important;
	border: 1px solid rgba( 0, 0, 0, .3 ) !important;
	box-shadow: none !important;
	opacity: 1 !important;
}
.mkl_pc .ad-cfg-dialog .ad-cfg-dialog__actions button.ad-cfg-secondary:hover,
.mkl_pc .ad-cfg-dialog .ad-cfg-dialog__actions a.ad-cfg-secondary:hover {
	border-color: rgba( 0, 0, 0, .6 ) !important;
}
.mkl_pc .ad-cfg-load-notice {
	position: absolute;
	top: 1em;
	left: 50%;
	transform: translateX( -50% );
	z-index: 9999;
	width: min( 520px, calc( 100% - 2em ) );
	box-sizing: border-box;
	padding: .8em 2.4em .8em 1em;
	background: #fff;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	box-shadow: 0 6px 24px rgba( 0, 0, 0, .2 );
	font-size: 14px;
	line-height: 1.45;
}
.mkl_pc .ad-cfg-load-notice.has-changes { border-left-color: #dba617; }
.mkl_pc .ad-cfg-load-notice p { margin: .3em 0 .2em; }
.mkl_pc .ad-cfg-load-notice ul { margin: 0 0 0 1.2em; padding: 0; }

/* My Account > Saved designs */
.ad-cfg-account .ad-cfg-col-image { width: 84px; }
.ad-cfg-account .ad-cfg-col-image img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; display: block; }
.ad-cfg-account .ad-cfg-design-meta { font-size: .9em; opacity: .75; }
.ad-cfg-account .ad-cfg-design-changes { margin: .4em 0 0 1.1em; font-size: .88em; color: #8a5a00; }
.ad-cfg-account .ad-cfg-inline-form { display: inline-block; margin: 0 .2em .3em 0; }
.ad-cfg-account .ad-cfg-rename { margin-top: .3em; font-size: .9em; }
.ad-cfg-account .ad-cfg-rename summary { cursor: pointer; display: inline-block; }
.ad-cfg-account .ad-cfg-rename input.input-text { width: auto; max-width: 220px; display: inline-block; }
.ad-cfg-account .ad-cfg-design-actions-cell { white-space: normal; }
.ad-cfg-account .ad-cfg-share-url { width: 100%; max-width: 340px; font-size: .85em; }
.ad-cfg-account .ad-cfg-note { font-size: .9em; opacity: .8; }

/* [ad_cfg_preset] */
.ad-cfg-preset { display: inline-flex; flex-direction: column; gap: .4em; max-width: 300px; }
.ad-cfg-preset__image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ad-cfg-preset__name { font-weight: 600; }
.ad-cfg-preset__price { opacity: .8; }

.mkl_pc .ad-cfg-fonts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.mkl_pc .ad-cfg-font-tile {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	min-width: 7.5em;
	flex: 1 1 7.5em;
	max-width: 12em;
	padding: 10px 12px 8px;
	border: 1px solid #d7cfc4;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	line-height: 1.2;
	color: inherit;
}
.mkl_pc .ad-cfg-font-tile.is-on { border-color: #3b2a1e; box-shadow: inset 0 0 0 1px #3b2a1e; }
.mkl_pc .ad-cfg-font-tile__sample { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkl_pc .ad-cfg-font-tile__name { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; opacity: .7; font-family: inherit; }

/* v0.14.3: frosted-white engraving (Aluminum) */
.mkl_pc .ad-cfg-overlay__text.is-frost { mix-blend-mode: normal; }
.mkl_pc .ad-cfg-overlay__image.is-frost { filter: grayscale(1) invert(1) brightness(.94) opacity(.85); }

/* v0.16.0: shared fonts + "Upload your own font" (matches the Dice Builder upload) */
.mkl_pc .ad-cfg-font-tile.is-limited .ad-cfg-font-tile__sample { letter-spacing: .04em; }
.mkl_pc .ad-cfg-font-tile__note { display: block; margin-top: 2px; font-size: 10px; line-height: 1.25; opacity: .65; font-family: inherit; white-space: normal; }
.mkl_pc .ad-cfg-font-tile.is-own { border-style: dashed; }
.mkl_pc .ad-cfg-fontup { margin-top: 8px; border: 1px dashed #d7cfc4; border-radius: 6px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #faf7f2; }
.mkl_pc .ad-cfg-fontup.is-drag { border-color: #a43; background: #fbf1ef; }
.mkl_pc .ad-cfg-fontup__btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #3b2a1e; border-radius: 4px; padding: 8px 14px; cursor: pointer; background: #fff; color: #3b2a1e; line-height: 16px; }
.mkl_pc .ad-cfg-fontup__btn:hover { background: #f3ece1; }
.mkl_pc .ad-cfg-fontup__btn b { color: #8a6a2b; font-weight: 700; letter-spacing: 0; }
.mkl_pc .ad-cfg-fontup__hint { font-size: 11px; line-height: 14px; opacity: .7; flex: 1; min-width: 120px; }
.mkl_pc .ad-cfg-fontup__msg { flex-basis: 100%; font-size: 12px; line-height: 16px; font-weight: 600; opacity: .8; }
.mkl_pc .ad-cfg-fontup__msg:empty { display: none; }
.mkl_pc .ad-cfg-fontup__msg.ok { color: #2d6a3a; opacity: 1; }
.mkl_pc .ad-cfg-fontup__msg.warn { color: #9a6200; opacity: 1; }
.mkl_pc .ad-cfg-fontup__msg.err { color: #b3261e; opacity: 1; }
.mkl_pc .ad-cfg-fontup__rm { appearance: none; border: 0; background: none; padding: 0; font-size: 12px; text-decoration: underline; cursor: pointer; color: inherit; }
.mkl_pc .ad-cfg-fontup__consent { flex-basis: 100%; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 700; background: #fff; border: 1px solid #d7cfc4; border-radius: 6px; padding: 10px 12px; cursor: pointer; }
.mkl_pc .ad-cfg-fontup__consent input { flex: none; margin: 1px 0 0; }
.mkl_pc .ad-cfg-fontup__note { flex-basis: 100%; font-size: 11px; line-height: 14px; font-style: italic; opacity: .7; }
.mkl_pc .ad-cfg-text-fee { margin: 8px 0 0; font-size: 13px; line-height: 18px; font-weight: 600; }
.mkl_pc .ad-cfg-font-tile.is-numbering .ad-cfg-font-tile__name,
.mkl_pc .ad-cfg-font-tile.is-numbering .ad-cfg-font-tile__note { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
