.aof-order {
	--aof-accent: #6e0072;
	--aof-accent-hover: #5c175f;
	--aof-ink: #242126;
	--aof-muted: #6d6870;
	--aof-line: #ded9df;
	--aof-soft: #f7f5f7;
	--aof-success: #27744a;
	--aof-danger: #b42318;
	background: #fff;
	color: var(--aof-ink);
	font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.aof-order *,
.aof-order *::before,
.aof-order *::after {
	box-sizing: border-box;
}

.aof-order button,
.aof-order input,
.aof-order textarea {
	font: inherit;
}

.aof-shell {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.aof-promises {
	background: var(--aof-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.aof-promises__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	padding-block: 10px;
	text-align: center;
}

.aof-promises__inner span + span {
	border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.aof-hero {
	padding: 48px 0 30px;
	text-align: center;
}

.aof-hero h1,
.aof-step__header h2,
.aof-summary h2 {
	margin: 0;
	color: var(--aof-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.aof-hero h1 {
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.1;
}

.aof-hero p:last-child {
	max-width: 700px;
	margin: 14px auto 0;
	color: var(--aof-muted);
	font-size: 18px;
}

.aof-eyebrow,
.aof-step__kicker {
	margin: 0 0 8px;
	color: var(--aof-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.aof-progress-wrap {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 10px 0 16px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
}

.admin-bar .aof-progress-wrap {
	top: 32px;
}

.aof-progress {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	max-width: 930px;
	margin: 0 auto;
}

.aof-progress::before {
	position: absolute;
	top: 17px;
	left: 8.4%;
	right: 8.4%;
	height: 2px;
	background: var(--aof-line);
	content: "";
}

.aof-progress__item {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 0 5px;
	border: 0;
	background: transparent;
	color: var(--aof-muted);
	cursor: pointer;
}

.aof-progress__item:disabled {
	cursor: default;
}

.aof-progress__number {
	z-index: 1;
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 2px solid var(--aof-line);
	border-radius: 50%;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
}

.aof-progress__label {
	font-size: 13px;
	font-weight: 600;
}

.aof-progress__item.is-current,
.aof-progress__item.is-complete {
	color: var(--aof-accent);
}

.aof-progress__item.is-current .aof-progress__number,
.aof-progress__item.is-complete .aof-progress__number {
	border-color: var(--aof-accent);
}

.aof-progress__item.is-current .aof-progress__number {
	background: var(--aof-accent);
	color: #fff;
}

.aof-form {
	padding: 24px 0 80px;
}

.aof-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	align-items: start;
	gap: 32px;
}

.aof-workspace {
	min-width: 0;
}

.aof-step[hidden] {
	display: none;
}

.aof-step__header {
	margin-bottom: 28px;
	text-align: center;
}

.aof-step__header h2 {
	font-size: clamp(27px, 3vw, 36px);
	line-height: 1.2;
}

.aof-step__header > p:last-child {
	max-width: 650px;
	margin: 10px auto 0;
	color: var(--aof-muted);
}

.aof-fieldset,
.aof-service {
	min-width: 0;
	margin: 0 0 30px;
	padding: 0;
	border: 0;
}

.aof-fieldset legend,
.aof-service legend {
	width: 100%;
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 700;
}

.aof-help {
	margin: -5px 0 14px;
	color: var(--aof-muted);
	font-size: 14px;
}

.aof-theme-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.aof-chip input,
.aof-choice-card input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.aof-chip span {
	display: block;
	padding: 8px 13px;
	border: 1px solid var(--aof-line);
	border-radius: 999px;
	background: #fff;
	color: #4c484e;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.aof-chip input:checked + span {
	border-color: var(--aof-accent);
	background: #f8edf8;
	color: var(--aof-accent);
}

.aof-chip input:focus-visible + span,
.aof-choice-card input:focus-visible ~ .aof-choice-card__media,
.aof-choice-card input:focus-visible ~ .aof-choice-card__body {
	outline: 3px solid rgba(110, 0, 114, 0.23);
	outline-offset: 2px;
}

.aof-text-field {
	display: grid;
	gap: 7px;
	font-weight: 700;
}

.aof-text-field--compact {
	max-width: 480px;
}

.aof-text-field span small {
	color: var(--aof-muted);
	font-weight: 400;
}

.aof-text-field input,
.aof-text-field textarea,
.aof-number-field input {
	width: 100%;
	border: 1px solid #cfc8d0;
	border-radius: 5px;
	background: #fff;
	color: var(--aof-ink);
}

.aof-text-field input,
.aof-number-field input {
	height: 46px;
	padding: 0 13px;
}

.aof-text-field textarea {
	min-height: 120px;
	padding: 12px 13px;
	resize: vertical;
}

.aof-text-field input:focus,
.aof-text-field textarea:focus,
.aof-number-field input:focus {
	border-color: var(--aof-accent);
	outline: 3px solid rgba(110, 0, 114, 0.14);
}

.aof-card-grid {
	display: grid;
	gap: 14px;
}

.aof-card-grid--subjects {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aof-card-grid--mediums,
.aof-card-grid--frames {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aof-card-grid--sizes {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aof-choice-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	border: 1px solid var(--aof-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(31, 25, 32, 0.03);
	cursor: pointer;
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.aof-choice-card[hidden],
.aof-selection-preview[hidden] {
	display: none;
}

.aof-choice-card:hover {
	border-color: #b8aeb9;
	box-shadow: 0 7px 18px rgba(40, 26, 41, 0.08);
	transform: translateY(-1px);
}

.aof-choice-card:has(input:checked) {
	border-color: var(--aof-accent);
	box-shadow: 0 0 0 2px var(--aof-accent);
}

.aof-choice-card:has(input:checked)::after {
	position: absolute;
	top: 9px;
	right: 9px;
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	background: var(--aof-accent);
	color: #fff;
	content: "✓";
	font-size: 14px;
	font-weight: 800;
}

.aof-choice-card.is-disabled {
	filter: grayscale(0.8);
	opacity: 0.52;
	cursor: not-allowed;
}

.aof-choice-card.is-disabled:hover {
	box-shadow: none;
	transform: none;
}

.aof-choice-card__media {
	display: block;
	background: #eee9ee;
	aspect-ratio: 1.18;
	overflow: hidden;
}

.aof-choice-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aof-card-grid--subjects .aof-choice-card__media {
	aspect-ratio: 272 / 232;
}

.aof-card-grid--mediums .aof-choice-card__media {
	aspect-ratio: 2 / 3;
}

.aof-selection-preview {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	align-items: center;
	gap: 15px;
	max-width: 620px;
	margin: -8px auto 28px;
	padding: 12px;
	border: 1px solid var(--aof-line);
	border-radius: 8px;
	background: var(--aof-soft);
}

.aof-selection-preview img {
	display: block;
	width: 88px;
	height: 108px;
	border-radius: 5px;
	background: #ebe7eb;
	object-fit: cover;
}

.aof-selection-preview div {
	display: grid;
	gap: 3px;
}

.aof-selection-preview span {
	color: var(--aof-muted);
	font-size: 13px;
	font-weight: 600;
}

.aof-selection-preview strong {
	font-size: 16px;
	line-height: 1.35;
}

.aof-selection-preview--review {
	margin-top: 0;
}

.aof-choice-card__body {
	display: grid;
	flex: 1;
	align-content: start;
	gap: 5px;
	padding: 12px;
}

.aof-choice-card__body strong {
	font-size: 15px;
	line-height: 1.3;
}

.aof-choice-card__body small,
.aof-choice-card__body em {
	color: var(--aof-muted);
	font-size: 13px;
	font-style: normal;
	line-height: 1.35;
}

.aof-choice-card__body em {
	color: var(--aof-accent);
	font-weight: 600;
}

.aof-badge {
	position: absolute;
	top: 9px;
	left: 9px;
	z-index: 2;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--aof-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.aof-counts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 180px));
	justify-content: center;
	gap: 16px;
	margin-bottom: 28px;
}

.aof-number-field {
	display: grid;
	grid-template-columns: 1fr 82px;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--aof-line);
	border-radius: 8px;
	font-weight: 700;
}

.aof-number-field input {
	text-align: center;
}

.aof-detail-fields {
	display: grid;
	gap: 20px;
	margin-top: 30px;
}

.aof-check-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.aof-check-row input,
.aof-service-option input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--aof-accent);
}

.aof-check-row--boxed {
	margin-top: 20px;
	padding: 15px;
	border: 1px solid var(--aof-line);
	border-radius: 8px;
	background: var(--aof-soft);
}

.aof-upload {
	position: relative;
	border: 2px dashed #c7bdc8;
	border-radius: 8px;
	background: var(--aof-soft);
	text-align: center;
}

.aof-upload.is-dragging {
	border-color: var(--aof-accent);
	background: #f8edf8;
}

.aof-upload__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.aof-upload__label {
	display: grid;
	justify-items: center;
	gap: 7px;
	padding: 44px 22px;
	cursor: pointer;
}

.aof-upload__input:focus-visible + .aof-upload__label {
	outline: 3px solid rgba(110, 0, 114, 0.22);
	outline-offset: 3px;
}

.aof-upload__icon {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: var(--aof-accent);
	box-shadow: 0 2px 8px rgba(38, 28, 39, 0.1);
}

.aof-upload__label strong {
	font-size: 18px;
}

.aof-upload__label small {
	color: var(--aof-muted);
}

.aof-photo-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.aof-photo {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border: 1px solid var(--aof-line);
	border-radius: 8px;
}

.aof-photo img {
	width: 58px;
	height: 58px;
	border-radius: 5px;
	object-fit: cover;
}

.aof-photo span {
	display: grid;
	min-width: 0;
}

.aof-photo strong {
	overflow: hidden;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aof-photo small {
	color: var(--aof-muted);
}

.aof-photo button {
	padding: 5px;
	border: 0;
	background: transparent;
	color: var(--aof-danger);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.aof-review {
	margin-bottom: 26px;
	border: 1px solid var(--aof-line);
	border-radius: 8px;
	overflow: hidden;
}

.aof-review > div {
	display: grid;
	grid-template-columns: minmax(120px, 0.7fr) 1.3fr;
	gap: 20px;
	padding: 12px 16px;
}

.aof-review > div:nth-child(even) {
	background: var(--aof-soft);
}

.aof-review span {
	color: var(--aof-muted);
}

.aof-review strong {
	text-align: right;
}

.aof-service {
	display: grid;
	gap: 10px;
}

.aof-service-option {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) auto;
	align-items: start;
	gap: 12px;
	padding: 15px;
	border: 1px solid var(--aof-line);
	border-radius: 8px;
	cursor: pointer;
}

.aof-service-option:has(input:checked) {
	border-color: var(--aof-accent);
	box-shadow: 0 0 0 1px var(--aof-accent);
}

.aof-service-option span {
	display: grid;
}

.aof-service-option small {
	color: var(--aof-muted);
}

.aof-service-option b {
	color: var(--aof-accent);
}

.aof-payment-note {
	padding: 18px;
	border-radius: 8px;
	background: #f6edf6;
}

.aof-payment-note > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
}

.aof-payment-note > div span {
	font-weight: 700;
}

.aof-payment-note > div strong {
	color: var(--aof-accent);
	font-size: 28px;
}

.aof-payment-note p {
	margin: 7px 0 0;
	color: var(--aof-muted);
	font-size: 14px;
}

.aof-summary {
	position: sticky;
	top: 105px;
	padding: 22px;
	border: 1px solid var(--aof-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(40, 26, 41, 0.08);
}

.admin-bar .aof-summary {
	top: 137px;
}

.aof-summary h2 {
	padding-bottom: 15px;
	border-bottom: 1px solid var(--aof-line);
	font-size: 24px;
}

.aof-selection-preview--summary {
	display: block;
	max-width: none;
	margin: 16px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.aof-selection-preview--summary img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
}

.aof-selection-preview--summary div {
	margin-top: 9px;
}

.aof-summary dl {
	display: grid;
	gap: 11px;
	margin: 16px 0;
}

.aof-summary dl > div {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 10px;
}

.aof-summary dt {
	color: var(--aof-muted);
	font-size: 13px;
}

.aof-summary dd {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	text-align: right;
}

.aof-summary__price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--aof-line);
}

.aof-summary__price span {
	font-weight: 700;
}

.aof-summary__price strong {
	color: var(--aof-accent);
	font-size: 26px;
}

.aof-summary > p {
	margin: 12px 0 0;
	color: var(--aof-muted);
	font-size: 12px;
}

.aof-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid var(--aof-line);
}

.aof-button {
	min-width: 138px;
	min-height: 48px;
	padding: 11px 22px;
	border: 1px solid var(--aof-accent);
	border-radius: 5px;
	font-weight: 700;
	cursor: pointer;
}

.aof-button--primary {
	margin-left: auto;
	background: var(--aof-accent);
	color: #fff;
}

.aof-button--primary:hover {
	border-color: var(--aof-accent-hover);
	background: var(--aof-accent-hover);
}

.aof-button--secondary {
	background: #fff;
	color: var(--aof-accent);
}

.aof-button--secondary:hover {
	background: #f8edf8;
}

.aof-button:focus-visible,
.aof-progress__item:focus-visible,
.aof-photo button:focus-visible {
	outline: 3px solid rgba(110, 0, 114, 0.26);
	outline-offset: 3px;
}

.aof-button:disabled {
	opacity: 0.58;
	cursor: wait;
}

.aof-error,
.aof-submit-error {
	min-height: 1.4em;
	margin: 10px 0 0;
	color: var(--aof-danger);
	font-size: 14px;
	font-weight: 600;
}

.aof-submit-error:empty {
	display: none;
}

@media (max-width: 980px) {
	.aof-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.aof-summary {
		position: static;
		grid-row: 1;
		display: none;
	}

	.aof-card-grid--subjects {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .aof-progress-wrap {
		top: 46px;
	}

	.aof-promises__inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.aof-promises__inner span + span {
		border-left: 0;
	}

	.aof-promises__inner span:nth-child(even) {
		border-left: 1px solid rgba(255, 255, 255, 0.34);
	}

	.aof-card-grid--subjects,
	.aof-card-grid--mediums,
	.aof-card-grid--frames,
	.aof-card-grid--sizes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aof-progress__label {
		font-size: 11px;
	}
}

@media (max-width: 560px) {
	.aof-shell {
		width: min(100% - 24px, 1180px);
	}

	.aof-hero {
		padding: 34px 0 22px;
	}

	.aof-hero p:last-child {
		font-size: 16px;
	}

	.aof-progress-wrap {
		overflow-x: auto;
	}

	.aof-progress {
		min-width: 520px;
	}

	.aof-form {
		padding-top: 12px;
	}

	.aof-step__header {
		margin-bottom: 22px;
	}

	.aof-card-grid--subjects,
	.aof-card-grid--mediums,
	.aof-card-grid--frames,
	.aof-card-grid--sizes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.aof-choice-card__body {
		padding: 10px;
	}

	.aof-choice-card__body strong {
		font-size: 14px;
	}

	.aof-choice-card__body small,
	.aof-choice-card__body em {
		font-size: 12px;
	}

	.aof-counts {
		grid-template-columns: 1fr;
	}

	.aof-photo-list {
		grid-template-columns: 1fr;
	}

	.aof-review > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.aof-review strong {
		text-align: left;
	}

	.aof-payment-note > div {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.aof-actions {
		position: sticky;
		bottom: 0;
		z-index: 15;
		margin-inline: -12px;
		padding: 12px;
		background: rgba(255, 255, 255, 0.97);
		box-shadow: 0 -6px 18px rgba(40, 26, 41, 0.08);
	}

	.aof-button {
		flex: 1;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aof-order *,
	.aof-order *::before,
	.aof-order *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
