/* AI Gift Personalizer - storefront builder. */

.agp {
	--agp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--agp-ease-move: cubic-bezier(0.77, 0, 0.175, 1);
	--agp-ink: #1c1917;
	--agp-muted: #78716c;
	--agp-line: #e7e5e4;
	--agp-surface: #fff;
	--agp-sunken: #f5f4f2;
	--agp-accent: #4c1d95;
	--agp-accent-ink: #fff;
	--agp-radius: 14px;
}

/* ------------------------------------------------------------- entry point */

.agp-entry {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
}

.agp-entry__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--agp-accent, #4c1d95);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease;
}

.agp-entry__btn:active {
	transform: scale(0.97);
}

.agp-entry__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #57534e;
}

.agp-entry__summary img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e7e5e4;
	background: #fff;
}

.agp-cart-thumb {
	border-radius: 6px;
}

/* ------------------------------------------------------------------ dialog */

dialog.agp {
	width: min(1280px, 100vw);
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	padding: 0;
	border: 0;
	background: var(--agp-sunken);
	color: var(--agp-ink);
	overflow: hidden;
	font-size: 15px;
	line-height: 1.45;
}

dialog.agp::backdrop {
	background: rgba(28, 25, 23, 0.55);
	opacity: 0;
	transition: opacity 220ms var(--agp-ease-out);
}

dialog.agp[open]::backdrop {
	opacity: 1;
}

dialog.agp[open] {
	opacity: 1;
	transform: translateY(0) scale(1);
	transition: opacity 220ms var(--agp-ease-out), transform 220ms var(--agp-ease-out);
}

@starting-style {
	dialog.agp[open] {
		opacity: 0;
		transform: translateY(12px) scale(0.985);
	}
}

/* Exit is faster than enter: the system responding, not the user deciding. */
dialog.agp[data-closing] {
	opacity: 0;
	transform: translateY(8px) scale(0.99);
	transition: opacity 150ms var(--agp-ease-out), transform 150ms var(--agp-ease-out);
}

dialog.agp[data-closing]::backdrop {
	opacity: 0;
	transition-duration: 150ms;
}

.agp-shell {
	display: grid;
	/* An implicit auto column grows to the header's min-content (nowrap title +
	   buttons, about 429px) and pushes the close button out of a 375px dialog.
	   Clamp it to the dialog. */
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	height: 100%;
}

/* ------------------------------------------------------------------ header */

.agp-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: var(--agp-surface);
	border-bottom: 1px solid var(--agp-line);
}

.agp-head__title {
	margin: 0;
	font-size: 17px;
	font-weight: 650;
	letter-spacing: -0.01em;
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.agp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 16px;
	border: 1px solid var(--agp-line);
	border-radius: 999px;
	background: var(--agp-surface);
	color: var(--agp-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 550;
	line-height: 1;
	cursor: pointer;
	transition: transform 160ms var(--agp-ease-out), background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.agp-btn:active {
	transform: scale(0.97);
}

.agp-btn[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.agp-btn--primary {
	background: var(--agp-accent);
	border-color: var(--agp-accent);
	color: var(--agp-accent-ink);
}

.agp-btn--icon {
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
}

@media (hover: hover) and (pointer: fine) {
	.agp-btn:hover:not([disabled]) {
		background: var(--agp-sunken);
	}
	.agp-btn--primary:hover:not([disabled]) {
		background: #3b1573;
	}
	.agp-entry__btn:hover {
		background: #3b1573;
	}
}

/* -------------------------------------------------------------------- body */

.agp-body {
	display: grid;
	grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
	min-height: 0;
}

.agp-panel {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px;
	background: var(--agp-sunken);
	-webkit-overflow-scrolling: touch;
}

.agp-card {
	background: var(--agp-surface);
	border-radius: var(--agp-radius);
	padding: 16px;
	margin-bottom: 14px;
}

.agp-card__title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 650;
	letter-spacing: -0.005em;
}

.agp-card__hint {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--agp-muted);
}

/* location chips */

.agp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.agp-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border: 1px solid var(--agp-line);
	border-radius: 999px;
	background: var(--agp-surface);
	color: var(--agp-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: transform 160ms var(--agp-ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.agp-chips--intro .agp-chip {
	opacity: 0;
	transform: translateY(6px);
	animation: agp-chip-in 260ms var(--agp-ease-out) forwards;
}

.agp-chip:active {
	transform: scale(0.97);
}

.agp-chip[aria-pressed="true"] {
	background: var(--agp-accent);
	border-color: var(--agp-accent);
	color: var(--agp-accent-ink);
}

.agp-chip__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 160ms var(--agp-ease-out), transform 160ms var(--agp-ease-out);
}

.agp-chip.has-art .agp-chip__dot {
	opacity: 1;
	transform: scale(1);
}

@keyframes agp-chip-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* dropzone */

.agp-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 150px;
	padding: 20px;
	border: 1.5px dashed #d6d3d1;
	border-radius: 12px;
	background: var(--agp-surface);
	color: var(--agp-muted);
	font-size: 14px;
	text-align: center;
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--agp-ease-out);
}

.agp-drop:active {
	transform: scale(0.99);
}

.agp-drop.is-over {
	border-color: var(--agp-accent);
	background: #f5f3ff;
	color: var(--agp-accent);
}

.agp-drop strong {
	color: var(--agp-ink);
	font-weight: 600;
	font-size: 15px;
}

.agp-formats {
	margin: 10px 0 0;
	font-size: 12px;
	color: #a8a29e;
	text-align: center;
	word-spacing: 4px;
}

/* uploaded file card */

.agp-file {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--agp-line);
	border-radius: 12px;
	background: var(--agp-surface);
}

.agp-file__thumb {
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 8px;
	background: var(--agp-sunken) center / contain no-repeat;
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--agp-muted);
	text-transform: uppercase;
}

.agp-file__meta {
	min-width: 0;
	flex: 1 1 auto;
}

.agp-file__name {
	display: block;
	font-size: 14px;
	font-weight: 550;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.agp-file__sub {
	display: block;
	font-size: 12px;
	color: var(--agp-muted);
}

/* controls */

.agp-control {
	margin-bottom: 14px;
}

.agp-control__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: var(--agp-muted);
	margin-bottom: 6px;
}

.agp-control__row b {
	color: var(--agp-ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.agp-range {
	width: 100%;
	accent-color: var(--agp-accent);
}

.agp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.agp-note {
	margin: 10px 0 0;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13px;
	background: #fef3c7;
	color: #78350f;
}

.agp-note--error {
	background: #fee2e2;
	color: #7f1d1d;
}

/* collapsible section */

.agp-collapse {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 220ms var(--agp-ease-out), opacity 160ms var(--agp-ease-out);
	opacity: 0;
}

.agp-collapse > div {
	overflow: hidden;
	min-height: 0;
}

.agp-collapse.is-open {
	grid-template-rows: 1fr;
	opacity: 1;
}

/* ------------------------------------------------------------------- stage */

.agp-stage-wrap {
	position: relative;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	background: #ece9e4;
	min-height: 0;
}

.agp-stage {
	position: relative;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
	touch-action: none;
	user-select: none;
}

/* Only when a photo is actually turned. The rotated image overhangs the frame it
   is cropped to, but an unconditional clip would also shave the outer half of the
   dashed outline on a zone flush with the photo edge - and every zone that
   predates rotation has to keep rendering exactly as it does now. */
.agp-stage.is-rotated {
	overflow: hidden;
}

.agp-stage img.agp-product {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	-webkit-user-drag: none;
	pointer-events: none;
}

.agp-print {
	position: absolute;
	overflow: hidden;
	cursor: grab;
}

.agp-print.is-dragging {
	cursor: grabbing;
}

/* An SVG so the guide can trace a rounded, round or polygonal zone, not only a
   rectangle. The stroke is width-corrected by vector-effect, so the stretched
   viewBox never thickens one side. */
.agp-outline {
	position: absolute;
	pointer-events: none;
	overflow: visible;
	opacity: 0;
	transition: opacity 200ms var(--agp-ease-out);
}

.agp-outline path {
	fill: none;
	stroke: rgba(76, 29, 149, 0.75);
	stroke-width: 1.5;
	stroke-dasharray: 6 4;
	vector-effect: non-scaling-stroke;
}

.agp-stage-wrap.show-guide .agp-outline {
	opacity: 1;
}

/* The width set on a layer is a fraction of the print zone and is allowed past
   100%: scaling over the zone is deliberate bleed, and the mask crops it.
   Nearly every theme ships `img { max-width: 100% }`, which silently capped the
   layer at the zone's width — the slider and the cm readout kept moving while
   the picture stopped growing, so the editor disagreed with the mockup and the
   production sheet. !important because a fair number of themes set that rule
   !important too. */
.agp-art {
	position: absolute;
	transform-origin: center;
	max-width: none !important;
	max-height: none !important;
	min-width: 0;
	min-height: 0;
	-webkit-user-drag: none;
}

/* Layers take pointer events so tapping one on the photo selects it. They used
   not to, which quietly made the hit test in dragLayers() dead code: selection
   only ever worked from the list on the left. That was survivable until corner
   handles arrived, because handles are drawn for the SELECTED layer - "tap the
   thing, drag its corner" has to work. Moving still works: the zone is this
   element's parent, so the pointerdown reaches it either way. */

/* The resize handles for the selected layer. They overlay the print zone but are
   NOT inside it: the zone has overflow:hidden plus a clip-path, which would mask
   a handle away exactly when a layer is scaled past 100% and bleeding over the
   edge - the moment the customer most needs to grab it. pointer-events:none here
   is load-bearing, not cosmetic: a transparent box across the whole zone would
   otherwise swallow every pointerdown that drag-to-move depends on. */
/* The size readout is editable: type a width or a height in centimetres and the
   other follows, because both come from one scale. Sized to hold "999.9" so the
   row never reflows as the digits change. */
.agp-dims {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-variant-numeric: tabular-nums;
}

.agp-dims i {
	font-style: normal;
	opacity: 0.55;
}

.agp-dim {
	width: 4.6em;
	padding: 2px 4px;
	border: 1px solid rgba(28, 25, 23, 0.18);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-variant-numeric: tabular-nums;
	text-align: right;
	color: inherit;
	-moz-appearance: textfield;
}

/* The spinners would cost half the field's width at this size, and a phone
   shows its own number pad anyway. */
.agp-dim::-webkit-outer-spin-button,
.agp-dim::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.agp-dim--deg {
	width: 3.8em;
}

.agp-dim:focus-visible {
	outline: 2px solid var(--agp-accent);
	outline-offset: 1px;
}

.agp-handles {
	position: absolute;
	pointer-events: none;
}

.agp-handles[hidden] {
	display: none;
}

/* Shown only while a drag is actually snapped, and drawn at the line the layer
   landed on - centred, or flush with an edge. Without it the pull reads as the
   editor twitching rather than as the layer finding its place. */
.agp-guide {
	position: absolute;
	background: var(--agp-accent);
	opacity: 0.9;
	pointer-events: none;
}

.agp-guide[hidden] {
	display: none;
}

.agp-guide--v {
	top: -8%;
	bottom: -8%;
	width: 1px;
	margin-left: -0.5px;
}

.agp-guide--h {
	left: -8%;
	right: -8%;
	height: 1px;
	margin-top: -0.5px;
}

/* 24px of touch target, 11px of visible ink. A phone needs the first and a
   desktop must not see it, so the hit area is the empty box and the dot is a
   pseudo-element inside it. The negative margin centres the box on the corner,
   which leaves transform free for the press feedback. */
.agp-handle {
	position: absolute;
	width: 24px;
	height: 24px;
	margin: -12px 0 0 -12px;
	display: grid;
	place-items: center;
	pointer-events: auto;
	touch-action: none;
}

.agp-handle::after {
	content: "";
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--agp-accent);
	box-shadow: 0 1px 3px rgba(28, 25, 23, 0.35);
	transition: transform 140ms var(--agp-ease-out);
}

.agp-handle:active::after {
	transform: scale(1.3);
}

/* Correct at r=0 only. A rotated layer would need all eight directions and a
   lookup, for a cursor nobody reads. */
.agp-handle[data-h="nw"],
.agp-handle[data-h="se"] { cursor: nwse-resize; }

.agp-handle[data-h="ne"],
.agp-handle[data-h="sw"] { cursor: nesw-resize; }

.agp-art-placeholder {
	position: absolute;
	display: grid;
	place-items: center;
	padding: 8px;
	border: 2px solid var(--agp-accent);
	background: rgba(255, 255, 255, 0.9);
	color: var(--agp-accent);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	overflow: hidden;
	pointer-events: none;
}

.agp-stagebar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 10px 14px;
	background: var(--agp-surface);
	border-top: 1px solid var(--agp-line);
	font-size: 13px;
	color: var(--agp-muted);
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.agp-busy {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(236, 233, 228, 0.75);
	font-size: 14px;
	font-weight: 600;
}

.agp-spinner {
	width: 26px;
	height: 26px;
	border: 3px solid rgba(76, 29, 149, 0.25);
	border-top-color: var(--agp-accent);
	border-radius: 50%;
	animation: agp-spin 520ms linear infinite;
}

@keyframes agp-spin {
	to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 860px) {
	.agp-body {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(38dvh, 45dvh) minmax(0, 1fr);
	}

	.agp-stage-wrap {
		order: -1;
	}

	.agp-panel {
		padding: 14px 14px 96px;
	}

	.agp-head {
		padding: 10px 12px;
	}

	.agp-card {
		padding: 14px;
	}

	.agp-stagebar {
		font-size: 12px;
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.agp *,
	dialog.agp,
	dialog.agp::backdrop {
		animation-duration: 1ms !important;
		transition-duration: 1ms !important;
	}

	.agp-chip {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------- local-only session notice */

.agp-privacy {
	margin: 4px 2px 0;
	font-size: 12px;
	line-height: 1.5;
	color: #78716c;
}

.agp-entry__reset {
	padding: 0;
	border: 0;
	background: none;
	color: #78716c;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	transition: color 160ms ease;
}

.agp-entry__reset[hidden] {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.agp-entry__reset:hover {
		color: #1c1917;
	}
}

/* The add-to-cart button doubles as the upload progress indicator: it is the
   only moment the design leaves the browser. */
.agp-uploading {
	position: relative;
	opacity: 0.75;
	cursor: progress;
}

.agp-uploading::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 2px;
	background: currentColor;
	opacity: 0.6;
	animation: agp-progress 1.1s linear infinite;
	transform-origin: left;
}

@keyframes agp-progress {
	0%   { transform: scaleX(0); }
	60%  { transform: scaleX(1); }
	100% { transform: scaleX(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.agp-uploading::after {
		animation: none;
		transform: scaleX(1);
	}
}

/* ----------------------------------------------------------- layer stack */

.agp-addrow {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.agp-addrow .agp-btn {
	flex: 1 1 auto;
}

.agp-layers {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.agp-empty-layers {
	margin: 0;
	padding: 14px;
	border: 1.5px dashed #d6d3d1;
	border-radius: 12px;
	color: var(--agp-muted);
	font-size: 13px;
	text-align: center;
}

.agp-layer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid var(--agp-line);
	border-radius: 10px;
	background: var(--agp-surface);
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--agp-ease-out);
}

.agp-layer:active {
	transform: scale(0.99);
}

.agp-layer.is-sel {
	border-color: var(--agp-accent);
	background: #f5f3ff;
}

.agp-layer__thumb {
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 6px;
	background: var(--agp-sunken) center / contain no-repeat;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--agp-muted);
	text-transform: uppercase;
}

.agp-layer__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.agp-layer__btn {
	flex: none;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--agp-muted);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--agp-ease-out);
}

.agp-layer__btn:active {
	transform: scale(0.9);
}

@media (hover: hover) and (pointer: fine) {
	.agp-layer__btn:hover {
		background: var(--agp-sunken);
		color: var(--agp-ink);
	}
}

.agp-chip__n {
	display: inline-grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	margin-left: 2px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.16);
	font-size: 11px;
	font-weight: 600;
}

/* ------------------------------------------------------------ text tool */

.agp-field-lbl {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	color: var(--agp-muted);
}

.agp-textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--agp-line);
	border-radius: 10px;
	background: var(--agp-surface);
	color: var(--agp-ink);
	font: inherit;
	font-size: 14px;
	resize: vertical;
	margin-bottom: 10px;
}

.agp-row2 {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	margin-bottom: 10px;
}

.agp-row2 label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--agp-muted);
	min-width: 0;
}

.agp-select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--agp-line);
	border-radius: 10px;
	background: var(--agp-surface);
	color: var(--agp-ink);
	font: inherit;
	font-size: 14px;
}

.agp-color {
	width: 46px;
	height: 38px;
	padding: 2px;
	border: 1px solid var(--agp-line);
	border-radius: 10px;
	background: var(--agp-surface);
	cursor: pointer;
}

.agp-btn--tog.is-on {
	background: var(--agp-accent);
	border-color: var(--agp-accent);
	color: var(--agp-accent-ink);
}

/* Text layers render as real DOM so the preview matches the flattened canvas. */
.agp-art--text {
	display: block;
	text-align: center;
	line-height: 1.25;
}

.agp-art.is-sel {
	outline: 2px dashed rgba(76, 29, 149, 0.9);
	outline-offset: 2px;
}

.agp-panel.is-over {
	outline: 2px dashed var(--agp-accent);
	outline-offset: -6px;
	border-radius: 12px;
}

.agp-chip__price {
	font-size: 12px;
	opacity: 0.75;
}

.agp-bar__extra {
	font-weight: 600;
	color: var(--agp-ink);
}


/* --------------------------------------------------------- focus states */

/* The builder is a modal: chips, buttons and layer rows are all reachable by
   keyboard, and the browser default ring disappears on the dark active chip. */
.agp-btn:focus-visible,
.agp-chip:focus-visible,
.agp-layer:focus-visible,
.agp-layer__btn:focus-visible,
.agp-drop:focus-visible,
.agp-select:focus-visible,
.agp-textarea:focus-visible,
.agp-range:focus-visible,
.agp-entry__btn:focus-visible,
.agp-entry__reset:focus-visible {
	outline: 2px solid var(--agp-accent);
	outline-offset: 2px;
	border-radius: 8px;
}

.agp-chip[aria-pressed="true"]:focus-visible {
	outline-color: #fff;
	outline-offset: -4px;
}

.agp-textarea:focus-visible,
.agp-select:focus-visible {
	outline-offset: 0;
}

/* An untouched text layer shows its hint greyed, so the customer types over
   nothing rather than deleting placeholder words first. It is never exported. */
.agp-art--text.is-placeholder {
	opacity: 0.38;
}

.agp-note--error {
	background: #fee2e2;
	color: #7f1d1d;
}

.agp-total {
	display: block;
	width: 100%;
	margin-top: 4px;
	font-weight: 650;
	color: var(--agp-ink, #1c1917);
}
