/* 2.4.41 Fat Head customer page. Layout follows the die-cut sticker builder. */
body.xcs-fathead .xcs-fh-chk {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	margin: 0;
}
body.xcs-fathead .xcs-fh-chk input {
	min-height: 0 !important;
	width: 20px;
	height: 20px;
	margin: 0;
}
body.xcs-fathead #xcs-fh-face {
	width: 100%;
	min-height: 40px;
	border: 1px solid var(--xcs-line, #e7e9ee);
	border-radius: 10px;
	padding: 0 10px;
}
body.xcs-fathead .xcs-stk-file.is-over {
	border-color: var(--xcs-accent, #d9141d);
	background: var(--xcs-accent-bg, #fdecec);
}
.xcs-refresh .xcs-stk-file input[type="file"]#xcs-stk-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	min-height: 0;
}
/* 2.4.41: contain-fit the finished cut-out inside the stage.
   sticker.css sets .xcs-stk-stage canvas { width: 100%; height: auto; },
   which stretches a tall portrait head to the stage width and crops the
   top, chin, border, and cut line. Override that to contain with ~9% padding. */
body.xcs-fathead .xcs-stk-stage {
	box-sizing: border-box;
	height: min(560px, calc(100vh - var(--xcs-sticky-top, 90px) - var(--wp-admin--admin-bar--height, 0px) - 96px));
	max-height: calc(100vh - var(--xcs-sticky-top, 90px) - var(--wp-admin--admin-bar--height, 0px) - 96px);
	min-height: 320px;
}
body.xcs-fathead #xcs-stk-canvas {
	width: auto;
	height: auto;
	max-width: 82%;
	max-height: 82%;
	object-fit: contain;
	object-position: center;
	display: block;
	margin: auto;
}
@media (min-width: 801px) {
	body.xcs-fathead .xcs-stk-layout {
		grid-template-columns: minmax(0, 1.22fr) minmax(280px, 1fr);
		align-items: start;
	}
	body.xcs-fathead .xcs-stk-preview {
		position: sticky;
		top: calc(var(--xcs-sticky-top) + var(--wp-admin--admin-bar--height, 0px));
		align-self: start;
		z-index: 2;
	}
	body.xcs-fathead .xcs-stk-stage {
		min-height: 320px;
		height: min(560px, calc(100vh - var(--xcs-sticky-top, 90px) - var(--wp-admin--admin-bar--height, 0px) - 96px));
		max-height: calc(100vh - var(--xcs-sticky-top, 90px) - var(--wp-admin--admin-bar--height, 0px) - 96px);
	}
	body.xcs-fathead .xcs-stk-options {
		position: static;
		top: auto;
		max-height: none;
		overflow: visible;
		margin-bottom: 0;
		padding: 12px 14px;
	}
}

@media (max-width: 800px) {
	body.xcs-fathead .xcs-stk-stage {
		min-height: 260px;
		height: min(420px, 70vh);
		max-height: 70vh;
	}
}
