/* Guided product page (HP_Guided). Colours come from the theme's tokens, so a client skin
 * restyles it without touching this file; the fallbacks are only for a theme that has none. */
.hpp-guided {
	--hpg-ink: var(--wp--preset--color--ink, #0b0d10);
	--hpg-muted: var(--wp--preset--color--muted, #52525b);
	--hpg-line: var(--wp--preset--color--line, #e4e4e7);
	--hpg-bg: var(--wp--preset--color--background, #fff);
	--hpg-surface: var(--wp--preset--color--surface, #fafaf7);
	--hpg-feature: var(--wp--preset--color--accent, #fff1c2);
	--hpg-brand: var(--wp--preset--color--brand, #0b0d10);
	--hpg-on-brand: var(--wp--preset--color--on-brand, #fff);
	--hpg-r: 12px;
	--hpg-halo: 0 8px 8px rgba(0,0,0,.04), 0 4px 4px rgba(0,0,0,.04), 0 2px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.08);
	display: grid;
	gap: 28px;
	margin: 8px 0 20px;
	color: var(--hpg-ink);
	font-variant-numeric: tabular-nums;
}
.hpp-guided, .hpp-guided *, .hpp-guided *::before, .hpp-guided *::after { box-sizing: border-box; }
/* The generic configurator frames itself; the guided steps carry their own surfaces. */
.hpp-configurator.hpp-guided { border: 0; padding: 0; border-radius: 0; }
.hpp-guided .hpg-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.hpg-sample {
	margin: 0;
	padding: 12px 16px;
	border-radius: var(--hpg-r);
	background: var(--hpg-feature);
	font-size: 14px;
	line-height: 1.45;
}

/* ---- steps ---- */
.hpg-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.hpg-step legend {
	display: flex; align-items: center; gap: 10px;
	padding: 0; margin: 0 0 14px;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 20px; font-weight: 500; letter-spacing: .2px; line-height: 1.3;
}
.hpg-num {
	display: inline-grid; place-items: center;
	width: 28px; height: 28px; border-radius: 9999px;
	background: var(--hpg-brand); color: var(--hpg-on-brand);
	font-size: 14px; font-weight: 600; flex: none;
}
.hpg-sub, .hpg-more { margin: -6px 0 12px; color: var(--hpg-muted); font-size: 14px; }
.hpg-more { margin: 12px 0 0; }
.hpg-more a { color: var(--hpg-ink); }

/* ---- cards ---- */
.hpg-cards { display: grid; gap: 12px; }
.hpg-cards--mat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hpg-cards--art { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hpg-cards--qty { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.hpg-card, .hpg-tile { position: relative; display: block; cursor: pointer; margin: 0; }
.hpg-card input, .hpg-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hpg-card-body, .hpg-tile-body {
	display: flex; flex-direction: column; gap: 4px; height: 100%;
	padding: 16px; border-radius: var(--hpg-r);
	background: var(--hpg-bg);
	box-shadow: 0 0 0 1px var(--hpg-line);
	transition: box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}
.hpg-card:hover .hpg-card-body, .hpg-tile:hover .hpg-tile-body { box-shadow: var(--hpg-halo); }
.hpg-card input:checked + .hpg-card-body,
.hpg-tile input:checked + .hpg-tile-body {
	background: var(--hpg-feature);
	box-shadow: 0 0 0 2px var(--hpg-ink);
}
.hpg-card input:focus-visible + .hpg-card-body,
.hpg-tile input:focus-visible + .hpg-tile-body { outline: 3px solid var(--hpg-ink); outline-offset: 3px; }
.hpg-tile input:disabled + .hpg-tile-body { opacity: .45; cursor: not-allowed; }

.hpg-card-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.hpg-card-cmp { font-size: 13px; font-weight: 500; color: var(--hpg-ink); }
.hpg-card-text { font-size: 13px; color: var(--hpg-muted); line-height: 1.45; }
.hpg-card-price { font-size: 13px; font-weight: 600; }
.hpg-badge {
	align-self: flex-start;
	padding: 2px 10px; border-radius: 9999px;
	background: var(--hpg-brand); color: var(--hpg-on-brand);
	font-size: 11px; letter-spacing: .6px; text-transform: uppercase; font-weight: 600;
}
/* Thickness bar: the four materials read as a comparison, not four numbers. */
.hpg-thick { display: block; height: 6px; margin: 4px 0 2px; border-radius: 9999px; background: var(--hpg-line); overflow: hidden; }
.hpg-thick span { display: block; height: 100%; width: calc(var(--t) * 100%); background: var(--hpg-ink); border-radius: inherit; }

.hpg-tile-body { align-items: flex-start; gap: 2px; padding: 12px 14px; }
.hpg-tile-qty { font-size: 18px; font-weight: 600; line-height: 1.2; }
.hpg-tile-price { font-size: 14px; font-weight: 500; }
.hpg-tile-each { font-size: 12px; color: var(--hpg-muted); }

/* ---- artwork panels ---- */
.hpg-panel {
	margin-top: 14px; padding: 18px;
	border-radius: var(--hpg-r);
	background: var(--hpg-surface);
	box-shadow: 0 0 0 1px var(--hpg-line);
	display: grid; gap: 10px;
}
.hpg-panel[hidden] { display: none; }
.hpp-guided[data-art="upload"] .hpg-panel-pro,
.hpp-guided[data-art="upload"] .hpg-l-pro,
.hpp-guided[data-art="pro"] .hpg-panel-upload,
.hpp-guided[data-art="pro"] .hpg-l-upload { display: none; }
.hpg-template { margin: 0; font-size: 14px; }
.hpg-template a { font-weight: 600; color: var(--hpg-ink); }
.hpg-template span { display: block; color: var(--hpg-muted); margin-top: 2px; }
.hpp-guided .hpp-artlabel { font-weight: 600; font-size: 14px; }
.hpp-guided .hpp-file {
	padding: 10px; border-radius: 8px; background: var(--hpg-bg);
	box-shadow: 0 0 0 1px var(--hpg-line); width: 100%; box-sizing: border-box;
}
.hpp-guided textarea {
	width: 100%; box-sizing: border-box; padding: 10px 12px; border: 0; border-radius: 8px;
	box-shadow: 0 0 0 1px var(--hpg-line); font: inherit; font-size: 15px; background: var(--hpg-bg);
}
.hpg-btn, .hpp-guided .hpp-designbtn.hpg-btn {
	display: inline-block; padding: 12px 24px; border-radius: 9999px;
	background: var(--hpg-brand); color: var(--hpg-on-brand) !important;
	text-decoration: none; font-weight: 500;
}
.hpg-attached { display: grid; gap: 8px; }
.hpg-attached img { max-width: 360px; width: 100%; border-radius: 10px; box-shadow: var(--hpg-halo); background: #fff; }
.hpg-attached p { margin: 0; }
.hpg-edit { margin-left: 8px; font-weight: 600; }

/* ---- summary ---- */
.hpg-summary {
	padding: 18px 20px; border-radius: var(--hpg-r);
	background: var(--hpg-bg); box-shadow: var(--hpg-halo);
}
.hpp-guided .hpp-price { margin: 0; }
.hpp-guided .hpp-breakdown { width: 100%; border-collapse: collapse; font-size: 14px; }
.hpp-guided .hpp-breakdown th { text-align: left; font-weight: 500; padding: 4px 0; }
.hpp-guided .hpp-breakdown td { padding: 4px 0; }
.hpp-guided .hpp-breakdown .hpp-detail { color: var(--hpg-muted); padding: 4px 12px; }
.hpp-guided .hpp-breakdown .hpp-amt { text-align: right; white-space: nowrap; }
.hpp-guided .hpp-breakdown tfoot th, .hpp-guided .hpp-breakdown tfoot .hpp-total {
	font-size: 22px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--hpg-line);
}
.hpp-guided .hpp-breakdown tfoot .hpp-detail { border-top: 1px solid var(--hpg-line); padding-top: 10px; }
.hpg-promises { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.hpg-promises li { position: relative; padding-left: 22px; }
.hpg-promises li::before {
	content: ""; position: absolute; left: 2px; top: .38em; width: 10px; height: 6px;
	border-left: 2px solid var(--hpg-ink); border-bottom: 2px solid var(--hpg-ink); transform: rotate(-45deg);
}
.hpg-missing { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.hpg-missing:empty { display: none; }

/* Woo's own quantity box duplicates ours; the configurator script marks the form. */
form.cart.hpp-has-config .quantity { display: none !important; }
form.cart.hpp-has-config .single_add_to_cart_button {
	width: 100%; padding: 16px 24px !important; border-radius: 9999px !important; font-size: 16px; font-weight: 600;
}

@media (max-width: 900px) {
	.hpg-cards--qty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hpg-cards--art { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.hpg-cards--mat { grid-template-columns: 1fr; }
	.hpg-step legend { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.hpg-card-body, .hpg-tile-body { transition: none; }
}

/* ---- ship-by date ---- */
.hpg-shipline { display: block; line-height: 1.5; margin: 0; padding: 12px 16px; border-radius: var(--hpg-r); background: var(--hpg-surface); box-shadow: 0 0 0 1px var(--hpg-line); font-size: 15px; }
.hpg-dot { display: inline-block; vertical-align: 1px; margin-right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px rgba(31,157,85,.15); }
.hpg-shipline strong { white-space: nowrap; }

/* ---- pricing guide ---- */
.hpg-guide { margin-top: 12px; }
.hpg-guide summary { cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.hpg-guide-scroll { overflow-x: auto; margin-top: 10px; border-radius: var(--hpg-r); box-shadow: 0 0 0 1px var(--hpg-line); }
.hpg-guide table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.hpg-guide th, .hpg-guide td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--hpg-line); white-space: nowrap; }
.hpg-guide thead th { background: var(--hpg-surface); font-weight: 600; }
.hpg-guide th[scope="row"], .hpg-guide thead th:first-child { text-align: left; }
.hpg-guide td small { display: block; color: var(--hpg-muted); font-size: 11px; }
.hpg-guide tbody tr:last-child th, .hpg-guide tbody tr:last-child td { border-bottom: 0; }

/* ---- template picker ---- */
.hpg-tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hpg-tpl { position: relative; display: grid; gap: 6px; cursor: pointer; margin: 0; font-size: 12px; text-align: center; }
.hpg-tpl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hpg-tpl img { width: 100%; height: auto; padding: 6px; border-radius: 10px; background: var(--hpg-bg); box-shadow: 0 0 0 1px var(--hpg-line); transition: box-shadow .15s ease; }
.hpg-tpl input:checked + img { box-shadow: 0 0 0 2px var(--hpg-ink); background: var(--hpg-feature); }
.hpg-tpl input:focus-visible + img { outline: 3px solid var(--hpg-ink); outline-offset: 2px; }
@media (max-width: 520px) { .hpg-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
