/* GENERATED by tests/gen_embed_css.py from gallery.css – do not edit. Shortcode gallery: every rule is scoped to .po-embed. */
/* M7 (0.8.0): same design tokens as the administration (light, white cards, blue accent). */
.po-embed {
	--po-bg: #f4f6fa;
	--po-card: #ffffff;
	--po-surface: #f1f5f9;
	--po-text: #1e293b;
	--po-muted: #64748b;
	--po-border: #e2e8f0;
	--po-accent: #2563eb;
	--po-accent-hover: #1d4ed8;
	--po-accent-soft: #eaf1ff;
	--po-accent-text: #ffffff;
	--po-danger: #b91c1c;
	--po-success: #15803d;
	--po-focus: #2563eb;
	--po-gap: 14px;
	--po-radius: 14px;
	--po-radius-sm: 10px;
	--po-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.po-embed,
.po-embed *,
.po-embed *::before,
.po-embed *::after {
	box-sizing: border-box;
}

.po-embed {
	-webkit-text-size-adjust: 100%;
}

.po-embed {
	margin: 0;
	background: var(--po-bg);
	color: var(--po-text);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	overflow-x: hidden;
}

body.po-modal-open {
	overflow: hidden;
}

.po-embed .po-wrap {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 16px;
}

.po-embed .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.po-embed .po-skip {
	position: absolute;
	left: 8px;
	top: -48px;
	z-index: 10;
	padding: 8px 12px;
	background: var(--po-text);
	color: #fff;
}

.po-embed .po-skip:focus {
	top: 8px;
}

.po-embed :focus-visible {
	outline: 3px solid var(--po-focus);
	outline-offset: 2px;
}

.po-embed .po-header {
	position: sticky;
	top: 0;
	z-index: 5;
	background: var(--po-bg);
	border-bottom: 1px solid var(--po-border);
}

.po-embed .po-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.po-embed .po-header h1 {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.po-embed .po-site {
	margin: 0;
	color: var(--po-muted);
	font-size: 0.875rem;
}

.po-embed .po-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--po-accent);
	border-radius: 6px;
	background: var(--po-accent);
	color: var(--po-accent-text);
	font: inherit;
	cursor: pointer;
}

.po-embed .po-button.po-secondary {
	background: var(--po-bg);
	color: var(--po-accent);
}

.po-embed .po-button:disabled,
.po-embed .po-qty button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.po-embed .po-count {
	min-width: 1.6em;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--po-accent-text);
	color: var(--po-accent);
	font-weight: 700;
	text-align: center;
}

.po-embed .po-intro {
	max-width: 70ch;
	margin-top: 16px;
}

.po-embed .po-note,
.po-embed .po-hint {
	color: var(--po-muted);
}

.po-embed .po-hint {
	font-size: 0.875rem;
}

.po-embed .po-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--po-gap);
	margin: 16px 0 32px;
	padding: 0;
	list-style: none;
}

@media (max-width: 340px) {
	.po-embed .po-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 600px) {
	.po-embed .po-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.po-embed .po-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1300px) {
	.po-embed .po-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.po-embed .po-photo {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid var(--po-border);
	border-radius: 6px;
	background: var(--po-surface);
	cursor: zoom-in;
	overflow: hidden;
}

.po-embed .po-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.po-embed .po-badge {
	position: absolute;
	right: 6px;
	top: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--po-accent);
	color: var(--po-accent-text);
	font-size: 0.75rem;
	font-weight: 700;
}

.po-embed .po-label {
	display: block;
	margin-top: 4px;
	color: var(--po-muted);
	font-size: 0.875rem;
}

.po-embed .po-dialog {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--po-bg);
	color: var(--po-text);
}

.po-embed .po-dialog::backdrop {
	background: rgba(0, 0, 0, 0.75);
}

.po-embed .po-lightbox[open] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
}

.po-embed .po-lb-media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	padding: 12px;
	background: #111;
	touch-action: pan-y;
}

.po-embed .po-lb-media img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 24px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.po-embed .po-lb-panel {
	overflow-y: auto;
	padding: 16px;
	border-left: 1px solid var(--po-border);
}

.po-embed .po-lb-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.po-embed .po-lb-head h2 {
	margin: 0;
	font-size: 1.25rem;
}

.po-embed .po-lb-meta {
	margin: 4px 0 0;
	color: var(--po-muted);
	font-size: 0.875rem;
	overflow-wrap: anywhere;
}

.po-embed .po-icon {
	flex: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--po-border);
	border-radius: 6px;
	background: var(--po-bg);
	color: var(--po-text);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.po-embed .po-lb-nav {
	display: flex;
	gap: 8px;
	margin: 12px 0;
}

.po-embed .po-lb-nav .po-button {
	flex: 1;
}

.po-embed .po-lb-panel h3 {
	margin: 16px 0 4px;
	font-size: 1rem;
}

.po-embed .po-products,
.po-embed .po-lines {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.po-embed .po-products li,
.po-embed .po-lines li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--po-border);
}

.po-embed .po-product-name {
	overflow-wrap: anywhere;
}

.po-embed .po-price {
	display: block;
	color: var(--po-muted);
	font-size: 0.875rem;
}

.po-embed .po-qty {
	display: inline-flex;
	align-items: center;
}

.po-embed .po-qty button {
	width: 40px;
	height: 40px;
	border: 1px solid var(--po-border);
	background: var(--po-surface);
	color: var(--po-text);
	font-size: 1.25rem;
	cursor: pointer;
}

.po-embed .po-qty input {
	width: 3.2em;
	height: 40px;
	border: 1px solid var(--po-border);
	border-left: 0;
	border-right: 0;
	font: inherit;
	text-align: center;
	-moz-appearance: textfield;
}

.po-embed .po-qty input::-webkit-inner-spin-button,
.po-embed .po-qty input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.po-embed .po-cart[open] {
	display: block;
	max-width: 640px;
	margin-left: auto;
	padding: 16px;
	overflow-y: auto;
}

.po-embed .po-lines li {
	grid-template-columns: 64px minmax(0, 1fr);
}

.po-embed .po-lines img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	background: var(--po-surface);
}

.po-embed .po-line-info {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.po-embed .po-line-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.po-embed .po-link-button {
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--po-danger);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.po-embed .po-unavailable {
	color: var(--po-danger);
	font-size: 0.875rem;
}

.po-embed .po-total {
	display: flex;
	justify-content: space-between;
	font-size: 1.125rem;
}

.po-embed .po-error {
	padding-top: 48px;
	padding-bottom: 48px;
}

.po-embed .po-checkout {
	max-width: 760px;
	padding-top: 24px;
	padding-bottom: 48px;
}

.po-embed .po-checkout h2 {
	margin: 24px 0 12px;
	font-size: 1.25rem;
}

.po-embed .po-alert {
	padding: 12px 16px;
	border: 2px solid var(--po-danger);
	border-radius: 6px;
	background: var(--po-bg);
}

.po-embed .po-alert a {
	color: var(--po-danger);
}

.po-embed .po-form {
	display: grid;
	gap: 4px;
}

.po-embed .po-field {
	display: grid;
	gap: 6px;
	margin: 0 0 12px;
}

.po-embed .po-field label {
	font-weight: 600;
}

.po-embed .po-optional {
	color: var(--po-muted);
	font-weight: 400;
}

.po-embed .po-field input,
.po-embed .po-field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--po-muted);
	border-radius: 6px;
	background: var(--po-bg);
	color: var(--po-text);
	font: inherit;
}

.po-embed .po-field [aria-invalid="true"] {
	border: 2px solid var(--po-danger);
}

.po-embed .po-field-error {
	color: var(--po-danger);
	font-size: 0.875rem;
}

.po-embed .po-privacy {
	margin: 8px 0;
	padding: 12px 16px;
	border-radius: 6px;
	background: var(--po-surface);
	font-size: 0.9375rem;
}

.po-embed .po-privacy > :first-child {
	margin-top: 0;
}

.po-embed .po-check {
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: start;
}

.po-embed .po-check input {
	width: 22px;
	min-height: 22px;
	height: 22px;
	margin: 2px 0 0;
}

.po-embed .po-check .po-field-error {
	grid-column: 2;
}

.po-embed .po-order-number {
	font-size: 1.125rem;
	font-weight: 600;
}

@media (max-width: 900px) {
	.po-embed .po-lightbox[open] {
		display: block;
		overflow-y: auto;
	}

	.po-embed .po-lb-media img {
		max-height: 60vh;
	}

	.po-embed .po-lb-panel {
		border-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.po-embed,
.po-embed *,
.po-embed *::before,
.po-embed *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

/* ==========================================================================
   M7 (0.8.0) design layer — client gallery, cart, checkout and confirmation.
   The pages are standalone documents (no theme styles), so these rules cannot leak elsewhere.
   ========================================================================== */
.po-embed {
	background: var(--po-bg);
}

.po-embed .po-header {
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--po-border);
	box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
	backdrop-filter: saturate(160%) blur(6px);
}

.po-embed .po-header h1 {
	font-size: 1.3rem;
	font-weight: 700;
}

.po-embed .po-button {
	min-height: 44px;
	padding: 8px 16px;
	border-radius: var(--po-radius-sm);
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.po-embed .po-button:hover {
	border-color: var(--po-accent-hover);
	background: var(--po-accent-hover);
}

.po-embed .po-button.po-secondary {
	border-color: var(--po-border);
	background: var(--po-card);
	color: var(--po-accent);
}

.po-embed .po-button.po-secondary:hover {
	border-color: var(--po-accent);
	background: var(--po-accent-soft);
}

.po-embed :focus-visible {
	outline: 3px solid var(--po-focus);
	outline-offset: 2px;
}

/* Photo grid: white cards with large previews. */
.po-embed .po-grid {
	gap: var(--po-gap);
	padding-bottom: 32px;
}

.po-embed .po-photo {
	padding: 8px;
	border: 1px solid var(--po-border);
	border-radius: var(--po-radius);
	background: var(--po-card);
	box-shadow: var(--po-shadow);
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.po-embed .po-photo:hover {
	border-color: var(--po-accent);
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
	transform: translateY(-1px);
}

.po-embed .po-photo img {
	border-radius: var(--po-radius-sm);
	background: var(--po-surface);
}

.po-embed .po-label {
	padding: 6px 2px 0;
	font-weight: 600;
}

.po-embed .po-badge {
	background: var(--po-accent);
	color: #fff;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.po-embed .po-intro,
.po-embed .po-hint {
	color: var(--po-muted);
}

/* Lightbox and cart panel */
.po-embed .po-lb-panel,
.po-embed .po-cart[open] {
	background: var(--po-card);
}

.po-embed .po-lines li {
	border-radius: var(--po-radius-sm);
}

.po-embed .po-lb-panel .po-lines li,
.po-embed .po-products li {
	padding: 10px 12px;
	border: 1px solid var(--po-border);
	border-radius: var(--po-radius-sm);
	background: var(--po-card);
}

.po-embed .po-price {
	color: var(--po-muted);
}

.po-embed .po-qty button {
	min-width: 44px;
	min-height: 44px;
	border-radius: var(--po-radius-sm);
}

.po-embed .po-qty input {
	min-height: 44px;
	border-radius: var(--po-radius-sm);
	font-weight: 700;
}

.po-embed .po-lines img {
	border-radius: var(--po-radius-sm);
}

.po-embed .po-total {
	padding: 14px 16px;
	border-radius: var(--po-radius-sm);
	background: var(--po-accent-soft);
	font-size: 1.15rem;
}

.po-embed .po-total strong {
	font-size: 1.35rem;
	color: var(--po-accent-hover);
}

/* Checkout: summary card and form card; two columns on wide screens. */
.po-embed .po-checkout {
	padding-top: 24px;
	padding-bottom: 40px;
}

.po-embed .po-checkout-layout {
	max-width: 1080px;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.po-embed .po-summary-card,
.po-embed .po-checkout .po-form {
	padding: 20px;
	border: 1px solid var(--po-border);
	border-radius: var(--po-radius);
	background: var(--po-card);
	box-shadow: var(--po-shadow);
}

.po-embed .po-checkout-layout > .po-alert {
	grid-column: 1 / -1;
}

.po-embed .po-required-note {
	margin: -4px 0 14px;
	color: var(--po-muted);
	font-size: 0.875rem;
}

.po-embed .po-field input,
.po-embed .po-field textarea {
	min-height: 44px;
	border-radius: var(--po-radius-sm);
}

.po-embed .po-field input:focus,
.po-embed .po-field textarea:focus {
	border-color: var(--po-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
	outline: none;
}

.po-embed .po-privacy {
	border: 1px solid var(--po-border);
	border-radius: var(--po-radius-sm);
	background: var(--po-surface);
}

.po-embed .po-check input {
	width: 22px;
	height: 22px;
}

.po-embed .po-checkout .po-form button[type="submit"] {
	width: 100%;
	min-height: 52px;
	font-size: 1.05rem;
}

@media (min-width: 900px) {
	.po-embed .po-checkout-layout {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	/* Contact form left, order recap right (sticky while filling in the form). */
	.po-embed .po-checkout-layout > .po-form {
		grid-column: 1;
		grid-row: 1;
	}

	.po-embed .po-checkout-layout > .po-summary-card {
		position: sticky;
		top: 88px;
		grid-column: 2;
		grid-row: 1;
	}

	.po-embed .po-checkout-layout > .po-alert ~ .po-summary-card,
.po-embed .po-checkout-layout > .po-alert ~ .po-form {
		grid-row: 2;
	}
}

/* Confirmation page */
.po-embed .po-thanks {
	max-width: 640px;
	margin: 32px auto;
	padding: 28px 24px;
	border: 1px solid var(--po-border);
	border-radius: var(--po-radius);
	background: var(--po-card);
	box-shadow: var(--po-shadow);
	text-align: center;
}

.po-embed .po-thanks-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: #e8f6ee;
	color: var(--po-success);
	font-size: 34px;
	font-weight: 700;
}

.po-embed .po-thanks .po-order-number {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--po-accent-soft);
	color: var(--po-accent-hover);
	font-weight: 700;
}

.po-embed .po-order-no {
	white-space: nowrap;
}

.po-embed .po-thanks-items {
	margin: 18px auto;
	padding: 0;
	max-width: 420px;
	list-style: none;
	text-align: left;
}

.po-embed .po-thanks-items li {
	padding: 10px 12px;
	border-bottom: 1px solid var(--po-border);
}

@media (prefers-reduced-motion: reduce) {
	.po-embed .po-photo,
.po-embed .po-button {
		transition: none;
	}

	.po-embed .po-photo:hover {
		transform: none;
	}
}

/* Embedded in a theme page: the header scrolls with the page, the container keeps its own type. */
.po-embed {
	display: block;
	max-width: 100%;
	border-radius: var(--po-radius);
	padding: 0 0 16px;
	line-height: 1.5;
	text-align: left;
}

.po-embed .po-header {
	position: relative;
	top: auto;
	border-radius: var(--po-radius) var(--po-radius) 0 0;
}

.po-embed .po-header h2 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.po-embed .po-thanks h2 {
	margin: 8px 0 4px;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.25;
}

.po-embed img {
	max-width: 100%;
	height: auto;
	box-shadow: none;
}

.po-embed ul,
.po-embed li {
	list-style: none;
}

.po-embed .po-embed-notice {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--po-border);
	border-radius: var(--po-radius);
	background: var(--po-card);
}

/* 0.10.2 public project page: gallery cards (1–2 columns on phones, 2 on tablets, 3–4 on wide content). */
.po-embed.po-project {
	padding: 16px;
}

.po-embed .po-project-head h2 {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
}

.po-embed .po-project-description {
	color: var(--po-muted);
}

.po-embed .po-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: var(--po-gap);
	margin: 16px 0 0;
	padding: 0;
}

.po-embed .po-project-card {
	min-width: 0;
	margin: 0;
}

.po-embed .po-project-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 10px;
	border: 1px solid var(--po-border);
	border-radius: var(--po-radius);
	background: var(--po-card);
	box-shadow: var(--po-shadow);
	color: var(--po-text);
	text-decoration: none;
}

.po-embed .po-project-link:hover {
	border-color: var(--po-accent);
}

.po-embed .po-project-link:focus-visible {
	outline: 3px solid var(--po-focus);
	outline-offset: 2px;
}

.po-embed .po-project-cover {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--po-radius-sm);
	background: var(--po-surface);
}

.po-embed .po-project-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.po-embed .po-project-title {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.po-embed .po-project-count {
	color: var(--po-muted);
	font-size: 0.9rem;
}

.po-embed .po-project-open {
	margin-top: auto;
	padding: 8px 10px;
	justify-content: center;
	text-align: center;
}

.po-embed.po-project-back {
	margin: 0 0 8px;
	padding: 0;
	background: transparent;
	overflow: visible;
}

.po-embed.po-project-back a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--po-accent);
	font-weight: 600;
}

@media (min-width: 600px) {
	.po-embed .po-project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	/* 3–4 columns by the available width; never more than four. */
	.po-embed .po-project-grid {
		grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 3 * var(--po-gap)) / 4)), 1fr));
	}
}
