﻿/**
 * AuthorWings Pricing Calculator styles.
 * Scoped under .awpc-wrap so they don't bleed into the host theme.
 */

.awpc-wrap {
	/* Brand palette — matched to authorwings.com (cream / navy / sage) */
	--awpc-accent: #5c7a6b;        /* --aw-sage  */
	--awpc-accent-dark: #4a6356;   /* darker sage for hover */
	--awpc-bg: #ffffff;            /* --base-2 (card surfaces) */
	--awpc-soft: #f6f1e8;          /* --base (warm cream) */
	--awpc-border: #e7ddc9;        /* warm border off --base-3 */
	--awpc-text: #1c2439;          /* --contrast (deep navy) */
	--awpc-muted: #5d6675;         /* muted navy-grey */
	--awpc-success: #5c7a6b;       /* sage doubles as the positive tone */
	--awpc-future: #ece4d2;        /* --base-3, light cream for upcoming steps */
	--awpc-future-text: #9aa0a8;   /* muted grey for upcoming labels */
	--awpc-mint: #b8d3c1;          /* --aw-sage-dark, light mint accent on dark fills */
	--awpc-soft-sage: #dce5de;     /* --aw-sage-soft, tint for hover */
	--awpc-radius: 12px;

	/* Brand typography — Inter for body, Fraunces for headings (as on authorwings.com) */
	--awpc-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--awpc-font-head: 'Fraunces', Georgia, "Times New Roman", serif;

	box-sizing: border-box;
	max-width: 1080px;
	margin: 0 auto;
	color: var(--awpc-text);
	font-family: var(--awpc-font);
	line-height: 1.5;
}

.awpc-wrap *,
.awpc-wrap *::before,
.awpc-wrap *::after {
	box-sizing: border-box;
}

.awpc-header {
	text-align: center;
	margin-bottom: 1.25rem;
}

.awpc-title {
	margin: 0 0 .35rem;
	font-family: var(--awpc-font-head);
	font-size: 1.9rem;
	font-weight: 600;
	letter-spacing: -.01em;
}

.awpc-subtitle {
	margin: 0 auto;
	max-width: 36rem;
	color: var(--awpc-muted);
	font-size: .95rem;
}

/* Tabs */
.awpc-tabs {
	display: flex;
	gap: .5rem;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.awpc-tab {
	appearance: none;
	border: 1px solid var(--awpc-border);
	background: var(--awpc-bg);
	color: var(--awpc-muted);
	padding: .6rem 1.2rem;
	border-radius: 999px;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all .15s ease;
}

.awpc-tab.is-active {
	background: var(--awpc-accent);
	border-color: var(--awpc-accent);
	color: #fff;
}

/* Explicit hover/focus so the host theme's button:hover/:focus can't bleed in */
.awpc-tab:hover,
.awpc-tab:focus,
.awpc-tab:focus-visible {
	border-color: var(--awpc-accent);
	color: var(--awpc-accent);
	background: var(--awpc-bg);
}

.awpc-tab.is-active,
.awpc-tab.is-active:hover,
.awpc-tab.is-active:focus {
	background: var(--awpc-accent);
	border-color: var(--awpc-accent);
	color: #fff;
}

.awpc-tab.is-active:hover {
	background: var(--awpc-accent-dark);
	border-color: var(--awpc-accent-dark);
}

/* Compact tabs once the bundle cards collapse to one per row (<= 394px) */
@media ( max-width: 394px ) {
	.awpc-tab {
		padding: .5rem .5rem;
		font-size: 0.9rem;
		font-weight: 500;
	}
}

/* Layout */
.awpc-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 1.5rem;
	align-items: start;
}

@media ( max-width: 860px ) {
	.awpc-layout {
		grid-template-columns: 1fr;
	}
}

.awpc-panel {
	display: none;
}

.awpc-panel.is-active {
	display: block;
}

/* Wizard steps */
.awpc-step {
	display: none;
	animation: awpc-fade .2s ease;
}

.awpc-step.is-active {
	display: block;
}

@keyframes awpc-fade {
	from { opacity: 0; transform: translateY( 4px ); }
	to { opacity: 1; transform: none; }
}

/* Stepper / progress indicator */
/* Step progress — responsive: connected nodes (desktop) / collapsed breadcrumb
   (tablet) / compact carousel (mobile). State colours: done = navy, current =
   sage, upcoming = light cream. */
.awpc-stepper {
	margin-bottom: 1.5rem;
}

.awpc-sp-full,
.awpc-sp-mid,
.awpc-sp-mini {
	display: none;
}

.awpc-sp-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: .74rem;
	font-weight: 700;
	flex: none;
}

/* FULL (desktop) — connected numbered nodes with labels */
.awpc-sp-full {
	justify-content: space-between;
	position: relative;
}

.awpc-sp-full::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 5%;
	right: 5%;
	height: 2px;
	background: var(--awpc-border);
	z-index: 0;
}

.awpc-sp-node {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	flex: 1;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.awpc-sp-node .awpc-sp-n {
	background: var(--awpc-future);
	color: var(--awpc-future-text);
	border: 2px solid var(--awpc-border);
}

.awpc-sp-node.is-done .awpc-sp-n {
	background: var(--awpc-text);
	color: #fff;
	border-color: var(--awpc-text);
}

.awpc-sp-node.is-active .awpc-sp-n {
	background: var(--awpc-accent);
	color: #fff;
	border-color: var(--awpc-accent);
}

.awpc-sp-lab {
	font-size: .62rem;
	font-weight: 600;
	color: var(--awpc-future-text);
	text-align: center;
	line-height: 1.2;
}

.awpc-sp-node.is-done .awpc-sp-lab {
	color: var(--awpc-text);
}

.awpc-sp-node.is-active .awpc-sp-lab {
	color: var(--awpc-accent);
}

/* MID (tablet) — done checks + current pill + "N to go" */
.awpc-sp-mid {
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.awpc-sp-check {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.awpc-sp-check .awpc-sp-n {
	background: var(--awpc-text);
	color: #fff;
}

.awpc-sp-active {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--awpc-accent);
	color: #fff;
	border-radius: 999px;
	padding: 4px 16px 4px 5px;
	font-weight: 700;
	font-size: .85rem;
}

.awpc-sp-active .awpc-sp-n {
	background: #fff;
	color: var(--awpc-accent);
}

.awpc-sp-ar {
	color: var(--awpc-border);
}

.awpc-sp-togo {
	font-size: .8rem;
	color: var(--awpc-future-text);
	font-weight: 600;
}

/* MINI (mobile) — dots + ‹ current › */
.awpc-sp-mini {
	flex-direction: column;
	align-items: center;
	gap: 11px;
}

.awpc-sp-dots {
	display: flex;
	gap: 7px;
	align-items: center;
}

.awpc-sp-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--awpc-future);
	border: none;
	padding: 0;
	cursor: pointer;
}

.awpc-sp-dot.is-done {
	background: var(--awpc-text);
}

.awpc-sp-dot.is-active {
	width: 24px;
	border-radius: 5px;
	background: var(--awpc-accent);
}

.awpc-sp-carrow {
	display: flex;
	align-items: center;
	gap: 16px;
}

.awpc-sp-arrow {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--awpc-border);
	background: #fff;
	color: var(--awpc-accent-dark);
	font-size: .95rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.awpc-sp-arrow:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.awpc-sp-cur {
	font-family: var(--awpc-font-head);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--awpc-accent);
	text-align: center;
	line-height: 1.15;
}

.awpc-sp-cur small {
	display: block;
	font-family: var(--awpc-font);
	font-size: .7rem;
	color: var(--awpc-future-text);
	font-weight: 600;
}

/* Step-control hover/focus — explicit so the host theme's button:hover/:focus
   (dark navy) can't paint behind the nodes/checks/dots/arrows. */
.awpc-sp-node:hover,
.awpc-sp-node:focus,
.awpc-sp-node:focus-visible,
.awpc-sp-check:hover,
.awpc-sp-check:focus,
.awpc-sp-check:focus-visible {
	background: transparent;
	outline: none;
}

.awpc-sp-node:hover .awpc-sp-lab {
	color: var(--awpc-accent);
}

.awpc-sp-node:focus-visible .awpc-sp-n,
.awpc-sp-check:focus-visible .awpc-sp-n,
.awpc-sp-dot:focus-visible {
	box-shadow: 0 0 0 3px rgba( 92, 122, 107, .35 );
}

/* Dots keep their state colour on hover/focus (state rules win by specificity) */
.awpc-sp-dot:hover,
.awpc-sp-dot:focus {
	background: var(--awpc-future);
	outline: none;
}

.awpc-sp-dot.is-done:hover,
.awpc-sp-dot.is-done:focus {
	background: var(--awpc-text);
}

.awpc-sp-dot.is-active:hover,
.awpc-sp-dot.is-active:focus {
	background: var(--awpc-accent);
}

.awpc-sp-arrow:hover,
.awpc-sp-arrow:focus,
.awpc-sp-arrow:focus-visible {
	background: #fff;
	border-color: var(--awpc-accent);
	color: var(--awpc-accent);
	outline: none;
}

.awpc-sp-arrow:disabled:hover {
	border-color: var(--awpc-border);
	color: var(--awpc-accent-dark);
}

/* Show one variant per device: desktop ≥861, tablet 521–860, mobile ≤520 */
@media ( min-width: 861px ) {
	.awpc-sp-full { display: flex; }
}

@media ( min-width: 521px ) and ( max-width: 860px ) {
	.awpc-sp-mid { display: flex; }
}

@media ( max-width: 520px ) {
	.awpc-sp-mini { display: flex; }
}

/* Step nav */
.awpc-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--awpc-border);
}

.awpc-nav-btn {
	appearance: none;
	border: 1px solid var(--awpc-accent);
	background: var(--awpc-accent);
	color: #fff;
	font-weight: 700;
	font-size: .9rem;
	padding: .6rem 1.5rem;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease;
}

.awpc-nav-next,
.awpc-nav-next:focus {
	background: var(--awpc-accent);
}

.awpc-nav-next:hover {
	background: var(--awpc-accent-dark);
}

.awpc-nav-back {
	background: transparent;
	color: var(--awpc-accent);
}

.awpc-nav-back:hover,
.awpc-nav-back:focus {
	background: var(--awpc-soft);
	color: var(--awpc-accent);
}

.awpc-nav-btn:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.awpc-step-count {
	font-size: .8rem;
	color: var(--awpc-muted);
	font-weight: 600;
	white-space: nowrap;
}

.awpc-review-intro {
	font-size: .88rem;
	color: var(--awpc-muted);
	margin: 0 0 1rem;
}

/* Fields */
.awpc-field {
	margin-bottom: 1.5rem;
}

.awpc-label {
	display: block;
	font-weight: 600;
	margin-bottom: .6rem;
	font-size: .95rem;
}

.awpc-words-out {
	color: var(--awpc-accent);
	font-weight: 700;
}

/*
 * Segmented control — the one shared "choose one" toggle used on every step
 * (ghostwriting yes/no, book type, editing mode, formatting path). A short
 * "Choose one:" label sits above the control.
 */
.awpc-seg-field {
	margin: 0 0 1rem;
}

.awpc-seg-legend {
	display: block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--awpc-muted);
	margin: 0 0 .4rem;
}

/*
 * "Separate buttons" style: each option is its own outlined rounded button
 * with a gap between them; the active one is filled brand sage with white text.
 */
.awpc-segmented {
	display: flex;
	flex-wrap: wrap;
	gap: .55rem;
	background: transparent;
	border: none;
	padding: 0;
}

.awpc-seg {
	appearance: none;
	border: 1.5px solid var(--awpc-border);
	background: var(--awpc-bg);
	color: var(--awpc-text);
	padding: .5rem 1.1rem;
	border-radius: 10px;
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.awpc-seg:hover,
.awpc-seg:focus {
	border-color: var(--awpc-accent);
	color: var(--awpc-accent);
	background: var(--awpc-bg);
	outline: none;
}

.awpc-seg:focus-visible {
	outline: 2px solid var(--awpc-accent);
	outline-offset: 2px;
}

.awpc-seg.is-active,
.awpc-seg.is-active:hover,
.awpc-seg.is-active:focus {
	background: var(--awpc-accent);
	border-color: var(--awpc-accent);
	color: #fff;
	box-shadow: none;
}

.awpc-segmented--sub {
	margin-bottom: 1rem;
}

/*
 * Inline field: a label sits to the LEFT of the control (used for the
 * "Book type" sub-toggle) so it doesn't stack as a second identical control
 * under the ghostwriting Yes/No.
 */
.awpc-seg-field--inline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .35rem .9rem;
}

.awpc-seg-field--inline .awpc-seg-legend {
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	font-size: .9rem;
	line-height: 1.2;
	font-weight: 600;
	color: var(--awpc-text);
}

/*
 * Stacked field: the label sits ABOVE the control (used for the "Book type"
 * radios) as a normal sentence-case label rather than an uppercase legend.
 */
.awpc-seg-field--stack .awpc-seg-legend {
	display: block;
	margin: 0 0 .5rem;
	text-transform: none;
	letter-spacing: 0;
	font-size: .9rem;
	line-height: 1.2;
	font-weight: 600;
	color: var(--awpc-text);
}

/*
 * Secondary (quieter) buttons: the same separate-button style at a smaller
 * size, so a follow-up choice reads as subordinate to the primary toggle.
 */
.awpc-segmented--secondary {
	gap: .45rem;
}

.awpc-segmented--secondary .awpc-seg {
	padding: .35rem .85rem;
	font-size: .8rem;
}

/*
 * Radio-button style — used for the "Book type" follow-up so it reads as a
 * distinct, quieter control type rather than mirroring the primary buttons.
 * Each option is a label preceded by a radio dot; the active dot fills sage.
 */
.awpc-segmented--radio {
	gap: 1.2rem;
	align-items: center;
	background: transparent;
	border: none;
	padding: 0;
}

.awpc-segmented--radio .awpc-seg,
.awpc-segmented--radio .awpc-seg:hover,
.awpc-segmented--radio .awpc-seg:focus,
.awpc-segmented--radio .awpc-seg.is-active,
.awpc-segmented--radio .awpc-seg.is-active:hover,
.awpc-segmented--radio .awpc-seg.is-active:focus {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--awpc-muted);
	padding: 0;
	box-shadow: none;
	font-size: .9rem;
	line-height: 1.2;
}

.awpc-segmented--radio .awpc-seg::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--awpc-border);
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

/* Match the (visible) radio label's line box to the dot so both centre
 * cleanly. Only the full label — leaving the short label's default
 * display:none intact so it doesn't render alongside the full one. */
.awpc-segmented--radio .awpc-seg .awpc-seg-full {
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
}

.awpc-segmented--radio .awpc-seg:hover,
.awpc-segmented--radio .awpc-seg:focus {
	color: var(--awpc-text);
}

.awpc-segmented--radio .awpc-seg:hover::before,
.awpc-segmented--radio .awpc-seg:focus::before {
	border-color: var(--awpc-accent);
}

.awpc-segmented--radio .awpc-seg.is-active,
.awpc-segmented--radio .awpc-seg.is-active:hover,
.awpc-segmented--radio .awpc-seg.is-active:focus {
	color: var(--awpc-text);
	font-weight: 600;
}

.awpc-segmented--radio .awpc-seg.is-active::before {
	content: "\2713"; /* checkmark on the active option */
	border-color: var(--awpc-accent);
	background: var(--awpc-accent);
	color: #fff;
}

/*
 * "Selectable cards" style — used for the "Book type" choice so it echoes the
 * tier cards below it. Each option is a bordered card with a leading check
 * indicator; the active card gets a sage border + tint. The two cards always
 * share one row (flex, even split) and wrap their own text if space is tight.
 */
.awpc-segmented--cards {
	gap: .6rem;
	background: transparent;
	border: none;
	padding: 0;
	flex-wrap: wrap;
}

.awpc-segmented--cards .awpc-seg,
.awpc-segmented--cards .awpc-seg:hover,
.awpc-segmented--cards .awpc-seg:focus,
.awpc-segmented--cards .awpc-seg.is-active,
.awpc-segmented--cards .awpc-seg.is-active:hover,
.awpc-segmented--cards .awpc-seg.is-active:focus {
	flex: 0 0 auto;               /* natural width — do not stretch */
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: .55rem;
	border: 1.5px solid var(--awpc-border);
	border-radius: 11px;
	background: var(--awpc-bg);
	color: var(--awpc-text);
	padding: .65rem .85rem;
	font-size: .88rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	box-shadow: none;
}

/*
 * Fill variant — used only by the "Book type" cards, which split the row
 * evenly and stay on one line. (The Editing/Formatting toggles use the plain
 * cards style above, so they keep their natural, non-full-width size.)
 */
.awpc-segmented--cards--fill {
	flex-wrap: nowrap;
}

.awpc-segmented--cards--fill .awpc-seg {
	flex: 1 1 0;
	min-width: 0;
}

.awpc-segmented--cards .awpc-seg::before {
	content: "";
	width: 17px;
	height: 17px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--awpc-border);
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.awpc-segmented--cards .awpc-seg:hover,
.awpc-segmented--cards .awpc-seg:focus {
	border-color: var(--awpc-accent);
}

.awpc-segmented--cards .awpc-seg.is-active,
.awpc-segmented--cards .awpc-seg.is-active:hover,
.awpc-segmented--cards .awpc-seg.is-active:focus {
	border-color: var(--awpc-accent);
	background: rgba( 92, 122, 107, .09 );
	box-shadow: 0 0 0 1px var(--awpc-accent);
}

.awpc-segmented--cards .awpc-seg.is-active::before {
	content: "\2713";
	border-color: var(--awpc-accent);
	background: var(--awpc-accent);
	color: #fff;
}

.awpc-editmode-note {
	margin: 0 0 .75rem;
}

/*
 * Small screens: let the primary two-option toggles share the row evenly so
 * they stay comfortably tappable. The smaller secondary buttons keep their
 * natural size and wrap if needed.
 */
@media ( max-width: 640px ) {
	.awpc-segmented:not( .awpc-segmented--secondary ):not( .awpc-segmented--cards ) {
		width: 100%;
	}
	.awpc-segmented:not( .awpc-segmented--secondary ):not( .awpc-segmented--cards ) .awpc-seg {
		flex: 1 1 0;
		min-width: 0;
		text-align: center;
	}
}

/*
 * Very-small-screen label swap for the segmented controls.
 * On phones at or below 330px the full labels ("Children's & illustrated",
 * "I have an idea", "Individual services"…) can't fit on one line and, with
 * white-space:nowrap above, they overflowed the pill's right edge. Each segment
 * carries a full label and an abbreviated one; below 331px we show the short
 * label instead. The button's aria-label keeps the full text for assistive tech.
 */
.awpc-seg-short {
	display: none;
}

@media ( max-width: 330px ) {
	.awpc-seg-full {
		display: none;
	}
	.awpc-seg-short {
		display: inline;
	}
}

/* Check-style option cards (individual editing services) */
.awpc-card--check .awpc-card-head {
	padding-left: 1.6rem;
	position: relative;
}

.awpc-card--check .awpc-card-head::before {
	content: "";
	position: absolute;
	left: 0;
	top: .1rem;
	width: 1.05rem;
	height: 1.05rem;
	border: 2px solid var(--awpc-border);
	border-radius: 4px;
	background: #fff;
}

.awpc-card--check.is-selected .awpc-card-head::before {
	background: var(--awpc-accent);
	border-color: var(--awpc-accent);
}

.awpc-card--check.is-selected .awpc-card-head::after {
	content: "\2713"; /* ✓ — escaped so it renders even if the CSS is served as Latin-1 */
	position: absolute;
	left: .18rem;
	top: .02rem;
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
}

/* Range */
.awpc-range {
	width: 100%;
	accent-color: var(--awpc-accent);
}

.awpc-range-scale {
	display: flex;
	justify-content: space-between;
	font-size: .72rem;
	color: var(--awpc-muted);
	margin-top: .2rem;
}

/* Groups */
.awpc-group {
	margin-bottom: 1.75rem;
}

.awpc-group[hidden] {
	display: none;
}

.awpc-group-title {
	margin: 0 0 .75rem;
	font-family: var(--awpc-font-head);
	font-size: 1.1rem;
	font-weight: 600;
	display: flex;
	align-items: baseline;
	gap: .5rem;
}

.awpc-hint,
.awpc-card-price + .awpc-hint {
	font-size: .75rem;
	font-weight: 500;
	color: var(--awpc-muted);
}

/* Option cards */
.awpc-options {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 180px, 1fr ) );
	gap: .65rem;
	padding-top: .75rem; /* room for the top-edge eyebrow pill */
	margin-bottom: 1rem;
}

.awpc-card {
	position: relative;
	display: block;
	border: 2px solid var(--awpc-border);
	border-radius: var(--awpc-radius);
	padding: .85rem .9rem;
	cursor: pointer;
	background: var(--awpc-bg);
	transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.awpc-card:hover {
	border-color: var(--awpc-accent);
	box-shadow: 0 6px 16px rgba( 28, 36, 57, .12 );
}

.awpc-card.is-selected {
	border-color: var(--awpc-accent);
	box-shadow: 0 0 0 3px rgba( 92, 122, 107, .55 ), 0 6px 16px rgba( 28, 36, 57, .12 );
}

/* "✓ Selected" eyebrow on a chosen option card (not the "None" cards) */
.awpc-card.is-selected:not( [data-card="none"] )::after {
	content: "\2713 Selected"; /* ✓ Selected */
}

/* Hide only the card's own radio/checkbox (direct child) — not nested inputs
   such as the illustration quantity stepper. */
.awpc-card > input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.awpc-card-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: .5rem;
}

.awpc-card-name {
	font-weight: 700;
	font-size: .95rem;
}

.awpc-card-price {
	font-weight: 700;
	color: var(--awpc-accent);
	font-size: .9rem;
	white-space: nowrap;
}

.awpc-card-features {
	margin: .55rem 0 0;
	padding: 0;
	list-style: none;
}

.awpc-card-features li {
	font-size: .78rem;
	color: var(--awpc-muted);
	padding-left: 1rem;
	position: relative;
	margin-bottom: .2rem;
}

.awpc-card-features li::before {
	content: "\2713"; /* ✓ — escaped so it renders even if the CSS is served as Latin-1 */
	position: absolute;
	left: 0;
	color: var(--awpc-success);
	font-weight: 700;
}

/* Plain "None" option cards: icon, title and "Not included" all centered,
   both horizontally and vertically within the (grid-stretched) card. */
.awpc-card[data-card="none"] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.awpc-card-none {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	text-align: center;
}

.awpc-card-none-icon {
	width: 1.75rem;
	height: 1.75rem;
	color: var(--awpc-muted);
	opacity: .75;
}

.awpc-card-none-title {
	font-weight: 700;
	font-size: .95rem;
}

.awpc-card-none-text {
	font-size: .82rem;
	color: var(--awpc-muted);
}

.awpc-card-none-note {
	margin-top: .1rem;
	font-size: .74rem;
	color: var(--awpc-muted);
	opacity: .8;
}

/* Add-ons */
.awpc-addon-subhead {
	margin: 1rem 0 .5rem;
	font-size: .82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--awpc-muted);
}

.awpc-addon-subhead:first-child {
	margin-top: 0;
}

.awpc-addons {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: .4rem;
}

.awpc-addon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .55rem;
	padding: .55rem .7rem;
	border: 1px solid var(--awpc-border);
	border-radius: 8px;
	cursor: pointer;
	font-size: .85rem;
}

.awpc-addon input {
	accent-color: var(--awpc-accent);
}

.awpc-addon-label {
	flex: 1;
}

.awpc-addon-price {
	font-weight: 700;
	color: var(--awpc-accent);
}

.awpc-addon-qtywrap {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}

.awpc-addon-qty {
	width: 3.5rem;
	border: 1px solid var(--awpc-border);
	border-radius: 6px;
	padding: .2rem .35rem;
	font-size: .8rem;
	text-align: center;
}

.awpc-addon-unit {
	font-size: .78rem;
	color: var(--awpc-muted);
}

/* Inline manuscript-length field shown beside a per-word add-on (Translation) */
.awpc-addon-words {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	flex-basis: 100%;
	margin-top: .5rem;
	padding-top: .55rem;
	border-top: 1px dashed var(--awpc-border);
}

.awpc-addon-words[hidden] {
	display: none;
}

.awpc-addon-words-label {
	font-size: .78rem;
	font-weight: 600;
	color: var(--awpc-text);
}

.awpc-words-input {
	width: 7rem;
	max-width: 100%;
	border: 1px solid var(--awpc-muted);
	border-radius: 6px;
	padding: .35rem .5rem;
	font-size: .85rem;
	text-align: center;
	font-family: inherit;
	background: #fff;
	color: var(--awpc-text);
}

/* Inline quantity stepper inside a selected per-unit illustration card */
.awpc-card-qty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .35rem;
	margin-top: .7rem;
	padding-top: .7rem;
	border-top: 1px dashed var(--awpc-border);
}

.awpc-card-qty[hidden] {
	display: none;
}

.awpc-card-qty-label {
	font-size: .8rem;
	font-weight: 600;
	color: var(--awpc-text);
}

.awpc-illus-qty {
	width: 5rem;
	max-width: 100%;
	flex: none;
	border: 1px solid var(--awpc-muted);
	border-radius: 6px;
	padding: .35rem .5rem;
	font-size: .9rem;
	text-align: center;
	font-family: inherit;
	background: #fff;
	color: var(--awpc-text);
}

/* Rush / toggle */
.awpc-rush {
	padding: .85rem 1rem;
	background: var(--awpc-soft);
	border-radius: var(--awpc-radius);
}

.awpc-toggle {
	display: flex;
	align-items: center;
	gap: .55rem;
	cursor: pointer;
	font-size: .9rem;
}

.awpc-toggle em {
	color: var(--awpc-muted);
	font-style: normal;
	font-size: .8rem;
}

.awpc-toggle input {
	accent-color: var(--awpc-accent);
}

/* Bundle cards */
.awpc-bundle-group {
	margin-bottom: 1.75rem;
}

.awpc-options--bundle {
	/* Match the Build-Your-Own option cards so bundles also show two per row on
	   small screens and collapse to one only on very small (phone) screens. */
	grid-template-columns: repeat( auto-fit, minmax( 180px, 1fr ) );
}

.awpc-bundle-card {
	position: relative;
	text-align: left;
	border: 2px solid var(--awpc-border);
	border-radius: var(--awpc-radius);
	padding: 1rem;
	background: var(--awpc-bg);
	/* These cards are <button>s, which don't inherit text colour the way the
	   <label> option cards do — set it explicitly so the bundle name shows on
	   every theme instead of falling back to the theme's button colour. */
	color: var(--awpc-text);
	cursor: pointer;
	/* Option A: name and price sit on the first line (like the option cards),
	   then the Save badge and the feature list each take their own row. */
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	column-gap: .6rem;
	row-gap: .4rem;
	transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

/* Hover/focus (unified with option cards): sage border + subtle lift.
   The colour is re-asserted here because a hovered/focused <button> can pick
   up the theme's own button:hover / button:focus colour and hide the name. */
.awpc-bundle-card:hover,
.awpc-bundle-card:focus,
.awpc-bundle-card:focus-visible {
	border-color: var(--awpc-accent);
	background: var(--awpc-bg);
	color: var(--awpc-text);
	box-shadow: 0 6px 16px rgba( 28, 36, 57, .12 );
	outline: none;
}

/* Selected = sage ring (navy is reserved for "Most Popular") */
.awpc-bundle-card.is-selected,
.awpc-bundle-card.is-selected:hover,
.awpc-bundle-card.is-selected:focus {
	border-color: var(--awpc-accent);
	background: var(--awpc-bg);
	color: var(--awpc-text);
	box-shadow: 0 0 0 3px rgba( 92, 122, 107, .55 ), 0 6px 16px rgba( 28, 36, 57, .12 );
}

.awpc-bundle-card.is-selected::after {
	content: "\2713 Selected"; /* ✓ Selected */
}

/* When a card is selected, hide its MOST POPULAR pill so the single
   top-edge eyebrow reads "Selected" instead (they never stack). */
.awpc-card.is-selected .awpc-popular-badge,
.awpc-bundle-card.is-selected .awpc-popular-badge {
	display: none;
}

/* ===== Eyebrow pill (MOST POPULAR / SELECTED): small, centered on the top
   edge — same in both Build-Your-Own cards and bundles ===== */
.awpc-popular-badge,
.awpc-card.is-selected:not( [data-card="none"] )::after,
.awpc-bundle-card.is-selected::after {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX( -50% );
	z-index: 2;
	background: var(--awpc-accent);
	color: #fff;
	font-size: .58rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 3px 11px;
	white-space: nowrap;
}

/* ===== Most Popular = navy fill + white text (both contexts) ===== */
.awpc-card--popular,
.awpc-bundle-card--popular {
	background: var(--awpc-text); /* navy */
	border-color: var(--awpc-text);
	color: #fff;
	box-shadow: 0 6px 16px rgba( 28, 36, 57, .14 );
}

.awpc-card--popular .awpc-card-name,
.awpc-card--popular .awpc-card-price,
.awpc-bundle-card--popular .awpc-bundle-name,
.awpc-bundle-card--popular .awpc-bundle-price {
	color: #fff;
}

.awpc-card--popular .awpc-card-features li,
.awpc-bundle-card--popular .awpc-bundle-features li {
	color: #eef0f4;
}

.awpc-card--popular .awpc-card-features li::before,
.awpc-bundle-card--popular .awpc-bundle-features li::before {
	color: var(--awpc-mint, #b8d3c1);
}

/* Quantity stepper on a navy popular card: the "Number of illustrations"
   label is dark by default and vanishes on navy — make it white and lighten
   the dashed divider so the field stays readable. */
.awpc-card--popular .awpc-card-qty {
	border-top-color: rgba( 255, 255, 255, .25 );
}

.awpc-card--popular .awpc-card-qty-label {
	color: #fff;
}

.awpc-bundle-card--popular .awpc-bundle-save {
	background: var(--awpc-mint, #b8d3c1);
	color: var(--awpc-text);
}

/* Hover on a navy popular card: stay navy, lift more */
.awpc-card--popular:hover,
.awpc-bundle-card--popular:hover,
.awpc-bundle-card--popular:focus {
	background: var(--awpc-text);
	border-color: var(--awpc-text);
	color: #fff;
	box-shadow: 0 10px 26px rgba( 28, 36, 57, .28 );
}

/* Selected on a popular (navy) card: keep navy, add a clear sage ring */
.awpc-card--popular.is-selected,
.awpc-bundle-card--popular.is-selected,
.awpc-bundle-card--popular.is-selected:hover,
.awpc-bundle-card--popular.is-selected:focus {
	background: var(--awpc-text);
	border-color: var(--awpc-text);
	color: #fff;
	box-shadow: 0 0 0 3px rgba( 92, 122, 107, .85 ), 0 8px 20px rgba( 28, 36, 57, .25 );
}

.awpc-bundle-name {
	grid-column: 1;
	font-weight: 700;
	font-size: 1rem;
}

.awpc-bundle-price {
	grid-column: 2;
	justify-self: end;
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--awpc-accent);
}

.awpc-bundle-save {
	grid-column: 1 / -1;
	justify-self: start;
	display: inline-block;
	background: #dce5de;
	color: var(--awpc-success);
	font-size: .72rem;
	font-weight: 700;
	padding: .15rem .5rem;
	border-radius: 999px;
}

.awpc-bundle-features {
	grid-column: 1 / -1;
	margin: .35rem 0 0;
	padding: 0;
	list-style: none;
}

.awpc-bundle-features li {
	font-size: .78rem;
	color: var(--awpc-muted);
	padding-left: 1rem;
	position: relative;
	margin-bottom: .2rem;
}

.awpc-bundle-features li::before {
	content: "\2713"; /* ✓ — escaped so it renders even if the CSS is served as Latin-1 */
	position: absolute;
	left: 0;
	color: var(--awpc-success);
}

/* ===== Small screens: keep two cards per row, collapsing to one only on very
   small screens. The bundle price is reduced a little (not the name or feature
   text, which stay full size) so two cards fit per row without the price being
   clipped. The grid uses auto-fit with a 180px floor, so columns are never
   narrower than the price needs: it shows two per row down to ~360px and drops
   to a single full-width card below that automatically. ===== */
@media ( max-width: 640px ) {
	.awpc-options,
	.awpc-options--bundle {
		grid-template-columns: repeat( auto-fit, minmax( 180px, 1fr ) );
		gap: .9rem .5rem; /* row gap leaves room for the top-edge eyebrow pill */
	}

	.awpc-card,
	.awpc-bundle-card {
		padding: .55rem;
	}

	.awpc-bundle-price {
		font-size: 1.05rem; /* reduced from 1.4rem so two cards fit per row */
	}

	.awpc-card-features li,
	.awpc-bundle-features li {
		margin-bottom: .15rem;
	}

	.awpc-bundle-save {
		padding: .1rem .4rem;
	}

	.awpc-popular-badge,
	.awpc-card.is-selected:not( [data-card="none"] )::after,
	.awpc-bundle-card.is-selected::after {
		padding: 2px 8px;
		top: -8px;
	}
}

/* Summary */
.awpc-summary {
	position: sticky;
	top: 1rem;
}

.awpc-summary-inner {
	border: 1px solid var(--awpc-border);
	border-radius: var(--awpc-radius);
	padding: 1.25rem;
	background: var(--awpc-soft);
}

.awpc-summary-title {
	margin: 0 0 .85rem;
	font-family: var(--awpc-font-head);
	font-size: 1.2rem;
	font-weight: 600;
}

.awpc-lines {
	list-style: none;
	margin: 0 0 .85rem;
	padding: 0;
}

.awpc-lines li {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
	font-size: .85rem;
	padding: .4rem 0;
	border-bottom: 1px dashed var(--awpc-border);
}

.awpc-lines .awpc-empty {
	justify-content: center;
	color: var(--awpc-muted);
	border: none;
	font-style: italic;
}

.awpc-line-amount {
	font-weight: 700;
	white-space: nowrap;
}

.awpc-savings {
	background: #dce5de;
	color: var(--awpc-success);
	font-size: .8rem;
	font-weight: 700;
	text-align: center;
	padding: .4rem;
	border-radius: 8px;
	margin-bottom: .75rem;
}

.awpc-total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: .5rem;
	border-top: 2px solid var(--awpc-border);
	font-weight: 700;
}

.awpc-total {
	font-size: 1.6rem;
	color: var(--awpc-accent);
}

/* Rush surcharge: its own line + an explanation under the total. */
.awpc-line--rush .awpc-line-label,
.awpc-line--rush .awpc-line-amount {
	color: #8a5a12;
}

.awpc-rush-note {
	background: #fbf3e2;
	color: #8a5a12;
	font-size: .74rem;
	line-height: 1.4;
	padding: .5rem .6rem;
	border-radius: 8px;
	margin: .6rem 0 0;
}

.awpc-plan {
	font-size: .8rem;
	color: var(--awpc-muted);
	margin: .5rem 0 0;
}

.awpc-disclaimer {
	font-size: .72rem;
	color: var(--awpc-muted);
	margin: .75rem 0 1rem;
}

/* CTA / form */
.awpc-cta {
	display: block;
	width: 100%;
	appearance: none;
	border: none;
	background: var(--awpc-accent);
	color: #fff;
	font-weight: 700;
	font-size: .95rem;
	padding: .75rem 1rem;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease;
}

.awpc-cta:focus {
	background: var(--awpc-accent);
	color: #fff;
}

.awpc-cta:hover {
	background: var(--awpc-accent-dark);
	color: #fff;
}

.awpc-cta--submit {
	margin-top: .25rem;
}

/* Quote CTA before any service is selected (estimate is $0): greyed and
   inactive, so the consultation form can't open on an empty estimate. */
.awpc-cta--disabled,
.awpc-cta:disabled {
	background: var(--awpc-border);
	color: var(--awpc-muted);
	cursor: not-allowed;
	opacity: .85;
}

.awpc-cta--disabled:hover,
.awpc-cta:disabled:hover,
.awpc-cta--disabled:focus,
.awpc-cta:disabled:focus {
	background: var(--awpc-border);
	color: var(--awpc-muted);
}

/* The base .awpc-cta rule sets display:block, which outranks the browser's
   default [hidden] rule — so without this the "Email me this estimate" button
   stays visible after JS sets its hidden attribute, leaving two CTA buttons
   stacked once the quote form opens. */
.awpc-cta[hidden] {
	display: none;
}

.awpc-quote-form {
	margin-top: .85rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.awpc-quote-form[hidden] {
	display: none;
}

.awpc-quote-form input[type="text"],
.awpc-quote-form input[type="email"],
.awpc-quote-form input[type="tel"],
.awpc-quote-form input[type="date"],
.awpc-quote-form input[type="time"],
.awpc-quote-form select,
.awpc-quote-form textarea {
	width: 100%;
	border: 1px solid var(--awpc-border);
	border-radius: 8px;
	padding: .55rem .65rem;
	font-size: .85rem;
	font-family: inherit;
	background-color: #fff;
	box-sizing: border-box;
}

/* Fuller built-in form: labelled fields, two-up rows on wider layouts. */
.awpc-form-field {
	display: flex;
	flex-direction: column;
	gap: .2rem;
}

.awpc-form-label {
	font-size: .75rem;
	font-weight: 600;
	color: var(--awpc-muted, #5b6472);
}

.awpc-req {
	color: #b91c1c;
}

.awpc-form-row {
	display: flex;
	gap: .5rem;
}

.awpc-form-row .awpc-form-field {
	flex: 1 1 0;
	min-width: 0;
}

@media ( max-width: 480px ) {
	.awpc-form-row {
		flex-direction: column;
	}
}

/* International phone input (intl-tel-input) fills its field like the others. */
.awpc-quote-form .iti {
	display: block;
	width: 100%;
}

/* Match the flag/dial-code sizing to the rest of the form fields. */
.awpc-quote-form .iti__selected-flag,
.awpc-quote-form .iti__selected-dial-code {
	font-size: .85rem;
}

.awpc-quote-form .iti--separate-dial-code .iti__selected-flag {
	border-radius: 8px 0 0 8px;
	background-color: #f6f7f9;
}

.awpc-quote-form .iti__flag {
	transform: scale(.9);
}

/* Keep the country dropdown readable and above nearby fields. */
.awpc-quote-form .iti__country-list {
	font-size: .85rem;
	z-index: 5;
}

/* Intro shown at the top of the built-in form. */
.awpc-form-intro {
	margin-bottom: .35rem;
}

.awpc-form-intro-title {
	margin: 0 0 .25rem;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--awpc-ink, #1f2a37);
	line-height: 1.25;
}

.awpc-form-intro-subtitle {
	margin: 0;
	font-size: .85rem;
	color: var(--awpc-muted, #5b6472);
	line-height: 1.45;
}

/* Inline helper above the preferred call date/time fields. */
.awpc-form-hint {
	margin: .2rem 0 -.2rem;
	font-size: .78rem;
	color: var(--awpc-muted, #5b6472);
	line-height: 1.45;
}

/* "Important notes" block under the form — small, quote-style. */
.awpc-notes {
	margin-top: .85rem;
	padding: .35rem 0;
	font-size: .72rem;
	line-height: 1.4;
	color: var(--awpc-muted, #6b7280);
}

.awpc-notes-title {
	margin: 0 0 .3rem;
	font-weight: 600;
	font-size: .72rem;
	color: var(--awpc-muted, #6b7280);
}

.awpc-notes-line {
	margin: .15rem 0;
}

/* Confirmation panel shown after a successful built-in-form submission. */
.awpc-form-success {
	position: relative;
	margin-top: .85rem;
	padding: 1rem 2.2rem 1rem 1.1rem;
	border: 1px solid #a7e3c8;
	border-left: 4px solid var(--awpc-success, #16a34a);
	border-radius: 10px;
	background: #d9f5e6;
	color: #14532d;
	font-size: .85rem;
	line-height: 1.5;
}

.awpc-form-success-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	color: #166534;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.awpc-form-success-close:hover,
.awpc-form-success-close:focus {
	background: rgba(22, 101, 52, 0.12);
}

.awpc-form-success[hidden] {
	display: none;
}

.awpc-form-success-title {
	margin: 0 0 .5rem;
	font-weight: 700;
	font-size: .95rem;
}

.awpc-form-success-body {
	color: #166534;
}

.awpc-hp {
	display: none !important;
}

.awpc-form-msg {
	font-size: .8rem;
	margin: .25rem 0 0;
	min-height: 1em;
}

.awpc-form-msg.is-success {
	color: var(--awpc-success);
}

.awpc-form-msg.is-error {
	color: #b91c1c;
}

.awpc-reset {
	display: block;
	width: 100%;
	margin-top: .75rem;
	appearance: none;
	background: transparent;
	border: none;
	color: var(--awpc-muted);
	font-size: .8rem;
	cursor: pointer;
	text-decoration: underline;
}

.awpc-reset:hover,
.awpc-reset:focus {
	color: var(--awpc-text);
	background: transparent;
}

/* Collapsible sections (design sub-sections + add-on groups) */
.awpc-acc {
	border: 1px solid var(--awpc-border);
	border-radius: var(--awpc-radius);
	margin-bottom: .85rem;
	background: var(--awpc-bg);
	overflow: hidden;
}

.awpc-acc-summary {
	display: flex;
	align-items: center;
	gap: .6rem;
	cursor: pointer;
	padding: .8rem 1rem;
	font-weight: 700;
	font-size: 1.02rem;
	list-style: none;
	user-select: none;
}

.awpc-acc-summary::-webkit-details-marker {
	display: none;
}

.awpc-acc-summary::before {
	content: "\25B8"; /* ▸ */
	color: var(--awpc-muted);
	font-size: .8em;
	transition: transform .15s ease;
}

.awpc-acc[open] > .awpc-acc-summary::before {
	transform: rotate( 90deg );
}

.awpc-acc[open] > .awpc-acc-summary {
	border-bottom: 1px solid var(--awpc-border);
}

.awpc-acc-title {
	flex: 1;
	font-family: var(--awpc-font-head);
}

.awpc-acc-badge {
	font-weight: 600;
	font-size: .75rem;
	color: var(--awpc-accent);
	background: rgba( 92, 122, 107, .08 );
	border-radius: 999px;
	padding: .15rem .65rem;
}

.awpc-acc .awpc-options,
.awpc-acc .awpc-addons {
	padding: 1rem;
}

/* Secondary actions (copy link / print / reset) — a row of icon tiles. */
.awpc-summary-actions {
	display: flex;
	gap: .35rem;
	margin-top: .6rem;
}

.awpc-tile-btn {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: .3rem;
	appearance: none;
	background: var(--awpc-bg);
	border: 1px solid var(--awpc-border);
	border-radius: 7px;
	padding: .4rem .3rem;
	color: var(--awpc-text);
	font-family: inherit;
	font-size: .7rem;
	font-weight: 500;
	line-height: 1.1;
	cursor: pointer;
	box-shadow: none;
	transition: background .15s ease, border-color .15s ease;
}

/* Explicit hover/focus/active so the host theme's button:hover/:focus/:active
   can't bleed in and fade or recolour the tiles. The resting look is also
   enforced on plain :focus (after a mouse click) so a click never leaves a
   tile "stuck" highlighted; keyboard users get a focus ring via :focus-visible. */
.awpc-tile-btn,
.awpc-tile-btn:focus {
	background: var(--awpc-bg);
	border-color: var(--awpc-border);
	color: var(--awpc-text);
	opacity: 1;
	box-shadow: none;
	outline: none;
}

.awpc-tile-btn:hover {
	background: var(--awpc-soft);
	border-color: var(--awpc-accent);
	color: var(--awpc-text);
	opacity: 1;
}

.awpc-tile-btn:active {
	background: var(--awpc-soft-sage);
	border-color: var(--awpc-accent);
	color: var(--awpc-text);
	opacity: 1;
}

.awpc-tile-btn:focus-visible {
	outline: 2px solid var(--awpc-accent);
	outline-offset: 1px;
}

.awpc-tile-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.awpc-tile-ico {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
	color: var(--awpc-accent);
}

.awpc-tile-label {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Reset reads as the quieter, "undo" action. */
.awpc-tile-btn--reset,
.awpc-tile-btn--reset .awpc-tile-ico {
	color: var(--awpc-muted);
}

/* Mobile sticky total bar (hidden on desktop, shown ≤860px) */
.awpc-mobilebar {
	display: none;
}

@media ( max-width: 860px ) {
	.awpc-mobilebar {
		display: flex;
		align-items: center;
		gap: .75rem;
		position: sticky;
		bottom: 0;
		z-index: 40;
		margin-top: 1rem;
		padding: .6rem .75rem;
		background: var(--awpc-bg);
		border: 1px solid var(--awpc-border);
		border-radius: var(--awpc-radius) var(--awpc-radius) 0 0;
		box-shadow: 0 -6px 18px rgba( 0, 0, 0, .08 );
	}

	.awpc-mobilebar-total {
		display: flex;
		flex-direction: column;
		line-height: 1.1;
	}

	.awpc-mobilebar-label {
		font-size: .68rem;
		color: var(--awpc-muted);
		text-transform: uppercase;
		letter-spacing: .02em;
	}

	.awpc-mobilebar-amount {
		font-size: 1.15rem;
		font-weight: 700;
		color: var(--awpc-accent);
	}

	.awpc-mobilebar-cta {
		width: auto;
		flex: 1;
		margin: 0;
		white-space: nowrap;
	}
}

/* Print / save-to-PDF: show only a clean estimate */
.awpc-print-head {
	display: none;
}

@media print {
	.awpc-wrap {
		display: flex;
		flex-direction: column;
		max-width: none;
	}

	.awpc-tabs,
	.awpc-stepper,
	.awpc-nav,
	.awpc-panels,
	.awpc-subtitle,
	.awpc-quote-form,
	.awpc-summary .awpc-cta,
	.awpc-reset,
	.awpc-summary-actions,
	.awpc-mobilebar {
		display: none !important;
	}

	.awpc-print-head {
		display: block;
		order: -1;
		text-align: center;
		margin-bottom: 1rem;
	}

	.awpc-print-site {
		font-weight: 700;
		font-size: 1.1rem;
		margin: 0;
	}

	.awpc-print-meta {
		color: #555;
		margin: .15rem 0 0;
	}

	.awpc-layout {
		display: block;
	}

	.awpc-summary {
		position: static;
	}

	.awpc-summary-inner {
		border: none;
		background: #fff;
		padding: 0;
	}
}

/* ==========================================================================
   Popup / modal calculator
   Trigger button: [authorwings_calculator_button]; modal printed in footer.
   ========================================================================== */

.awpc-open-button {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 10px;
	background: #5c7a6b; /* --aw-sage */
	color: #ffffff;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid #5c7a6b;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.awpc-open-button:hover,
.awpc-open-button:focus {
	background: #4a6356; /* darker sage */
	border-color: #4a6356;
	color: #ffffff;
	text-decoration: none;
}

.awpc-open-button:active {
	transform: translateY(1px);
}

/* Lock background scroll while the popup is open. */
.awpc-modal-lock {
	overflow: hidden;
}

.awpc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 0; /* full-screen: no gap around the dialog */
	overflow-y: auto;
	opacity: 0;
	transition: opacity 0.2s ease;
	-webkit-overflow-scrolling: touch;
}

/* When closed, stay fully out of the way. The base rule above sets
   display:flex, which would otherwise override the browser's default
   [hidden] handling and leave an invisible full-screen layer swallowing
   clicks — this puts the modal back to display:none while hidden. */
.awpc-modal[hidden] {
	display: none !important;
}

.awpc-modal.is-open {
	opacity: 1;
}

.awpc-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.awpc-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;       /* fill the full screen width */
	min-height: 100%;      /* …and the full screen height */
	margin: 0;
	background: #ffffff;
	border-radius: 0;
	box-shadow: none;
	transform: translateY(-12px);
	transition: transform 0.2s ease;
}

.awpc-modal.is-open .awpc-modal__dialog {
	transform: translateY(0);
}

.awpc-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	line-height: 1;
	color: #64748b;
	background: #f5f7fa;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.awpc-modal__close:hover,
.awpc-modal__close:focus {
	background: #e2e8f0;
	color: #1a202c;
}

.awpc-modal__body {
	padding: 56px 20px 32px; /* top room clears the close button */
}

/* The calculator caps itself at ~1080px; keep it centered on wide screens. */
.awpc-modal__body .awpc-wrap {
	margin: 0 auto;
}

@media ( max-width: 640px ) {
	.awpc-modal__body {
		padding: 52px 12px 24px;
	}
}

/* Forminator estimate-form popup: full-screen, matching the calculator popup.
   The form itself is capped and centered so it reads well on wide screens. */
.awpc-estimate-modal__body {
	max-width: 720px;
	margin: 0 auto;
}

/* -------------------------------------------------------------------------
 * Manuscript length (words + pages), formatting path panels and card notes.
 * ---------------------------------------------------------------------- */

/* Two side-by-side length inputs (word count + page count). */
.awpc-length-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: 1.25rem;
}

.awpc-length-field {
	margin: 0;
}

/* The numeric field that mirrors each range slider. */
.awpc-length-number {
	width: 8rem;
	max-width: 100%;
	margin-top: .6rem;
	border: 1px solid var(--awpc-muted);
	border-radius: 6px;
	padding: .4rem .55rem;
	font-size: .9rem;
	font-family: inherit;
	text-align: center;
	background: #fff;
	color: var(--awpc-text);
}

/* Graceful "over the cap — request a custom quote" note. */
.awpc-cap-note {
	margin: .55rem 0 0;
	padding: .5rem .65rem;
	border-radius: 6px;
	background: #fbf3e2;
	color: #8a5a12;
	font-size: .8rem;
	line-height: 1.35;
}

.awpc-cap-note[hidden] {
	display: none;
}

/* Ghostwriting yes/no: the tier cards + book-type toggle live in this wrapper,
 * shown only when "Yes" is chosen. */
.awpc-ghost-cards[hidden] {
	display: none;
}

.awpc-ghost-note {
	margin: .25rem 0 .85rem;
}

/* Formatting: text vs illustrated panels swapped by the segmented control. */
.awpc-fmt-panel[hidden] {
	display: none;
}

.awpc-options--formatting {
	display: block;
}

.awpc-options--formatting > .awpc-card {
	margin-bottom: .85rem;
}

/*
 * Formatting accordion: the intro hint and the text/illustrated toggle are
 * direct children of the <details>, so they need the same 1rem side padding as
 * the option cards below (which sit inside the padded .awpc-options container).
 * Without this they sat flush against the accordion's left edge, misaligned
 * with everything under them.
 */
.awpc-acc[data-acc="formatting"] > .awpc-hint {
	margin: 0;
	padding: 1rem 1rem .4rem;
}

.awpc-acc[data-acc="formatting"] > .awpc-seg-field {
	margin: 0;
	padding: 0 1rem;
}

.awpc-acc[data-acc="formatting"] .awpc-segmented--sub {
	margin-bottom: 0;
}

.awpc-acc[data-acc="formatting"] > .awpc-options--formatting {
	padding-top: .85rem;
}

.awpc-fmt-panel {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: .85rem;
	align-items: start;
}

/* The contextual word/page input that sits with the formatting cards. */
.awpc-fmt-length {
	grid-column: 1 / -1;
	margin: .25rem 0 0;
	padding: .85rem 1rem;
	border: 1px dashed var(--awpc-border);
	border-radius: var(--awpc-radius);
	background: var(--awpc-soft);
}

.awpc-fmt-length .awpc-label {
	margin-bottom: .35rem;
}

/* Platform-limitation note on a card (e.g. the Nook line on fixed-layout
 * ebook levels) — small, italic, muted. */
.awpc-card-note {
	display: block;
	margin-top: .55rem;
	font-size: .78rem;
	line-height: 1.35;
	color: var(--awpc-muted);
}

.awpc-card-note em {
	font-style: italic;
}

/* Keep the italic note legible on the navy "Most Popular" / selected card. */
.awpc-card.is-selected .awpc-card-note,
.awpc-card--popular.is-selected .awpc-card-note {
	color: var(--awpc-mint);
}
