/* Printworks storefront — the photo print product page. Namespaced pw- only;
   the theme carries brand styling. The Studio product page has its own
   studio.css. */

/* The print typography, self-hosted (SIL OFL, see assets/fonts/LICENSES.md),
   so the browser preview sets the customer's words in the type the master
   will be printed in. */
@font-face { font-family: "Saira"; src: url("../fonts/saira.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

.pw-preview {
	margin: 0 0 1.5rem;
}
.pw-preview-canvas {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 18px 40px -18px rgba( 20, 24, 18, 0.35 ), 0 2px 8px rgba( 20, 24, 18, 0.08 );
	background: #fafafa;
}
.pw-preview-note {
	margin-top: 0.6rem;
	font-size: 0.8rem;
	color: #6e6a5f;
}

/* Layouts */
.pw-layouts {
	border: 0;
	padding: 0;
	margin: 0 0 1.25rem;
}
.pw-layouts legend,
.pw-words > .pw-words-title,
.pw-photo-upload > label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6e6a5f;
	margin: 0 0 0.6rem;
}
.pw-layout-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 118px, 1fr ) );
	gap: 12px;
}
.pw-layout {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	cursor: pointer;
	margin: 0;
}
.pw-layout input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.pw-layout-thumb {
	display: block;
	border-radius: 3px;
	overflow: hidden;
	border: 1.5px solid #e6e2d9;
	background: #f4f1ea;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.pw-layout-thumb svg {
	display: block;
	width: 100%;
	height: auto;
}
.pw-layout:hover .pw-layout-thumb {
	border-color: #c9c3b6;
}
.pw-layout input:checked ~ .pw-layout-thumb {
	border-color: #de542e;
	box-shadow: 0 0 0 2px rgba( 222, 84, 46, 0.18 );
}
.pw-layout input:focus-visible ~ .pw-layout-thumb {
	outline: 2px solid #de542e;
	outline-offset: 2px;
}
.pw-layout b {
	font-size: 0.88rem;
	font-weight: 600;
	color: #26292a;
}
.pw-layout small {
	font-size: 0.74rem;
	line-height: 1.4;
	color: #8a8f86;
}

/* The paper */
.pw-papers {
	border: 0;
	padding: 0;
	margin: 0 0 1.25rem;
}
.pw-papers legend {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6e6a5f;
	margin: 0 0 0.6rem;
}
.pw-paper-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
}
.pw-paper {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	width: 58px;
	cursor: pointer;
	margin: 0;
	text-align: center;
}
.pw-paper input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.pw-paper-chip {
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid #e6e2d9;
	box-shadow: inset 0 0 0 2px #fff;
	background: #fff;
}
.pw-paper--auto .pw-paper-chip {
	background: conic-gradient( #f7f2e9 0 25%, #1f2320 0 50%, #dde4d8 0 75%, #fbfaf7 0 );
}
.pw-paper input:checked ~ .pw-paper-chip {
	border-color: #de542e;
	box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #de542e;
}
.pw-paper input:focus-visible ~ .pw-paper-chip {
	outline: 2px solid #de542e;
	outline-offset: 3px;
}
.pw-paper small {
	font-size: 0.7rem;
	line-height: 1.15;
	color: #6e6a5f;
}

/* The photograph */
.pw-photo-upload {
	margin: 0 0 1.25rem;
}
.pw-preview-canvas[data-pw-drag] {
	touch-action: none;
	cursor: grab;
}
.pw-preview-canvas[data-pw-drag="none"] {
	cursor: default;
}
.pw-preview-canvas[data-pw-drag="on"] {
	cursor: grabbing;
}
.pw-photo-upload input[type="file"] {
	display: block;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px dashed #c9c3b6;
	border-radius: 6px;
	background: #fbfaf7;
	font-size: 0.9rem;
	color: #26292a;
}
.pw-photo-hint {
	margin: 0.45rem 0 0;
	font-size: 0.8rem;
	color: #8a8f86;
}

/* The words */
.pw-words {
	display: grid;
	gap: 0.7rem;
	margin: 0 0 1.25rem;
}
.pw-word {
	display: grid;
	gap: 0.3rem;
	margin: 0;
}
.pw-word span {
	font-size: 0.8rem;
	color: #6e6a5f;
}
.pw-word input {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid #e6e2d9;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	color: #26292a;
}
.pw-word input:focus {
	outline: none;
	border-color: #de542e;
	box-shadow: 0 0 0 3px rgba( 222, 84, 46, 0.12 );
}

/* Frame options (selects on the photo product; pills on the Studio page) */
.pw-frame-options {
	margin: 0 0 1rem;
}
.pw-frame-option {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0 0 0.75rem;
}
.pw-frame-option select {
	max-width: 320px;
}
