/* XGPrint POD Customizer */
.xgp-pod-entry {
	margin: 18px 0 8px;
	padding: 16px 18px;
	border: 1px solid rgba(16, 42, 43, .16);
	border-left: 3px solid #d9654d;
	background: #f7f8f4;
}

.xgp-pod-open,
.xgp-pod-save,
.xgp-pod-secondary-button,
.xgp-pod-command,
.xgp-pod-toggle,
.xgp-pod-icon-button {
	font: inherit;
}

.xgp-pod-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid #102a2b;
	border-radius: 5px;
	background: #102a2b;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
	transition: transform .16s ease, background .16s ease;
}

.xgp-pod-open:hover,
.xgp-pod-open:focus-visible {
	background: #0f5b5b;
	transform: translateY(-1px);
}

.xgp-pod-open svg,
.xgp-pod-save svg,
.xgp-pod-command svg,
.xgp-pod-toggle svg,
.xgp-pod-icon-button svg {
	width: 18px;
	height: 18px;
}

.xgp-pod-entry-status {
	display: inline-block;
	margin: 10px 0 0;
	color: #5d6b69;
	font-size: .88rem;
	line-height: 1.5;
}

.xgp-pod-entry-status.is-saved {
	color: #14532d;
	font-weight: 700;
}

.xgp-pod-entry-status.is-error {
	color: #b32d2e;
	font-weight: 700;
}

.single_add_to_cart_button.xgp-pod-awaiting-design {
	opacity: .5;
	cursor: not-allowed;
}

.xgp-pod-modal[hidden] {
	display: none;
}

.xgp-pod-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 22px;
}

.xgp-pod-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 32, 34, .72);
	backdrop-filter: blur(3px);
}

.xgp-pod-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1180px, 100%);
	max-height: min(900px, 96vh);
	overflow: hidden;
	border-radius: 8px;
	background: #f7f8f4;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
	color: #102a2b;
}

.xgp-pod-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 28px 18px;
	border-bottom: 1px solid rgba(16, 42, 43, .14);
}

.xgp-pod-kicker {
	margin: 0 0 8px;
	color: #d9654d;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.xgp-pod-header h2 {
	margin: 0;
	font-size: clamp(1.45rem, 2.8vw, 2.25rem);
	line-height: 1.1;
}

.xgp-pod-icon-button {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(16, 42, 43, .2);
	border-radius: 5px;
	background: transparent;
	color: #102a2b;
	cursor: pointer;
}

.xgp-pod-icon-button:hover,
.xgp-pod-icon-button:focus-visible {
	border-color: #102a2b;
	background: #102a2b;
	color: #fff;
}

.xgp-pod-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	min-height: 0;
	padding: 24px 28px;
	overflow: auto;
}

.xgp-pod-scene {
	min-width: 0;
}

.xgp-pod-canvas-shell {
	position: relative;
	width: min(100%, 680px);
	margin: 0 auto;
	background: #e8ece8;
	box-shadow: inset 0 0 0 1px rgba(16, 42, 43, .12);
}

.xgp-pod-canvas-shell canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	background: #eef1ed;
}

.xgp-pod-canvas-shell .canvas-container {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
}

.xgp-pod-print-area {
	position: absolute;
	left: 22.5%;
	top: 16.25%;
	width: 55%;
	height: 67.5%;
	box-sizing: border-box;
	border: 2px dashed rgba(217, 101, 77, .82);
	pointer-events: none;
}

.xgp-pod-print-area span {
	position: absolute;
	top: 7px;
	left: 9px;
	padding: 2px 5px;
	background: rgba(247, 248, 244, .88);
	color: #b04a38;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.xgp-pod-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	padding: 10px 14px;
	transform: translate(-50%, -50%);
	border-radius: 4px;
	background: rgba(16, 42, 43, .86);
	color: #fff;
	font-size: .82rem;
	white-space: nowrap;
	pointer-events: none;
}

.xgp-pod-scene-note {
	max-width: 680px;
	margin: 12px auto 0;
	color: #5d6b69;
	font-size: .82rem;
	line-height: 1.5;
}

.xgp-pod-tools {
	min-width: 0;
}

.xgp-pod-tool-section {
	margin-bottom: 18px;
	padding: 18px;
	border: 1px solid rgba(16, 42, 43, .14);
	border-radius: 6px;
	background: #fff;
}

.xgp-pod-tool-section h3 {
	margin: 0 0 14px;
	font-size: 1rem;
}

.xgp-pod-command-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.xgp-pod-command {
	display: flex;
	min-height: 82px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 1px solid rgba(16, 42, 43, .2);
	border-radius: 5px;
	background: #f7f8f4;
	color: #102a2b;
	cursor: pointer;
	font-size: .78rem;
	font-weight: 700;
	text-align: center;
}

.xgp-pod-command:hover,
.xgp-pod-command:focus-visible {
	border-color: #0f5b5b;
	background: #e9f1ed;
}

.xgp-pod-command:disabled {
	opacity: .5;
	cursor: wait;
}

.xgp-pod-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.xgp-pod-section-heading h3 {
	margin-bottom: 0;
}

.xgp-pod-delete {
	width: 32px;
	height: 32px;
	border-color: rgba(179, 45, 46, .3);
	color: #b32d2e;
}

.xgp-pod-delete:hover,
.xgp-pod-delete:focus-visible {
	border-color: #b32d2e;
	background: #b32d2e;
	color: #fff;
}

.xgp-pod-field {
	display: block;
	margin-top: 14px;
	color: #5d6b69;
	font-size: .78rem;
	font-weight: 700;
}

.xgp-pod-field textarea,
.xgp-pod-field input[type="range"] {
	display: block;
	width: 100%;
	margin-top: 6px;
}

.xgp-pod-field textarea {
	box-sizing: border-box;
	min-height: 70px;
	padding: 8px;
	resize: vertical;
	border: 1px solid rgba(16, 42, 43, .2);
	border-radius: 4px;
	font: inherit;
	font-weight: 400;
}

.xgp-pod-field input[type="color"] {
	display: block;
	width: 48px;
	height: 34px;
	margin-top: 6px;
	padding: 2px;
	border: 1px solid rgba(16, 42, 43, .2);
	border-radius: 4px;
	background: #fff;
}

.xgp-pod-inline-fields {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 16px;
	align-items: end;
}

.xgp-pod-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	padding: 7px 10px;
	border: 1px solid rgba(16, 42, 43, .2);
	border-radius: 4px;
	background: #fff;
	color: #102a2b;
	cursor: pointer;
	font-size: .78rem;
	font-weight: 700;
}

.xgp-pod-toggle.is-active {
	border-color: #0f5b5b;
	background: #e9f1ed;
}

.xgp-pod-layer-actions {
	display: flex;
	gap: 7px;
	margin-top: 14px;
}

.xgp-pod-layer-actions .xgp-pod-icon-button {
	width: 34px;
	height: 34px;
}

.xgp-pod-summary {
	background: #eef4ef;
}

.xgp-pod-summary p {
	margin: 7px 0 0;
	color: #5d6b69;
	font-size: .8rem;
}

.xgp-pod-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 28px;
	border-top: 1px solid rgba(16, 42, 43, .14);
	background: #fff;
}

.xgp-pod-message {
	min-height: 20px;
	margin: 0;
	color: #5d6b69;
	font-size: .82rem;
	line-height: 1.4;
}

.xgp-pod-message[data-type="error"] {
	color: #b32d2e;
	font-weight: 700;
}

.xgp-pod-message[data-type="success"] {
	color: #14532d;
	font-weight: 700;
}

.xgp-pod-footer-actions {
	display: flex;
	gap: 9px;
	flex-shrink: 0;
}

.xgp-pod-secondary-button,
.xgp-pod-save {
	min-height: 42px;
	padding: 0 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: .84rem;
	font-weight: 700;
}

.xgp-pod-secondary-button {
	border: 1px solid rgba(16, 42, 43, .22);
	background: #fff;
	color: #102a2b;
}

.xgp-pod-secondary-button:hover,
.xgp-pod-secondary-button:focus-visible {
	border-color: #102a2b;
}

.xgp-pod-save {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #d9654d;
	background: #d9654d;
	color: #fff;
}

.xgp-pod-save:hover,
.xgp-pod-save:focus-visible {
	background: #b94f3d;
}

.xgp-pod-save:disabled,
.xgp-pod-secondary-button:disabled {
	opacity: .55;
	cursor: wait;
}

@media (max-width: 850px) {
	.xgp-pod-dialog {
		max-height: 100vh;
		border-radius: 0;
	}

	.xgp-pod-workspace {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.xgp-pod-tools {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.xgp-pod-tool-section {
		margin-bottom: 0;
	}

	.xgp-pod-tool-section:first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.xgp-pod-modal {
		padding: 0;
	}

	.xgp-pod-header,
	.xgp-pod-footer {
		padding-inline: 16px;
	}

	.xgp-pod-header {
		padding-block: 16px;
	}

	.xgp-pod-tools {
		display: block;
	}

	.xgp-pod-tool-section {
		margin-bottom: 12px;
	}

	.xgp-pod-footer {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
	}

	.xgp-pod-footer-actions {
		justify-content: flex-end;
	}
}

html.xgp-pod-modal-open,
body.xgp-pod-modal-open {
	overflow: hidden;
}
