/*
 * cm-shop.css — software subscriptions: plans, cart, checkout, My Account.
 * ---------------------------------------------------------------------------
 * Enqueued by inc/cm-shop/assets.php on Cart / Checkout / My Account and on the
 * software singles, after cm-site (and cm-software on a single). WooCommerce's
 * own woocommerce-general / -layout / -smallscreen sheets are dequeued on those
 * pages, so everything Woo prints is styled here.
 *
 * Rules win on specificity, never with !important. Two legacy traps:
 *   - assets/css/style.css paints h2 at 68px uppercase and h3 at 60px with a
 *     27px bottom pad and a 35px bottom margin, and p { margin-bottom: 35px }.
 *     The reset block below neutralises them inside .cm-shop at (0,1,1).
 *   - cosmick-2026.css is hard-coded after this file, so anything it styles at
 *     (0,1,0) needs (0,2,0) here.
 *
 * Tokens are the --cm26-* set from cosmick-2026.css. On a software single the
 * plan cards also read the page's --sw-* tone variables (cm-software.css), with
 * --cm26-* fallbacks.
 *
 * Signature: the billing timeline. Wherever money is summarised (cart, checkout
 * summary) the "Due today" row and the "Then $X/month starting <date>" rows are
 * joined by a rail with a filled dot for today and a hollow dot for renewals —
 * the one thing a subscriber most needs to understand, drawn as a shape.
 */

/* ===========================================================================
   SCOPE RESET
   =========================================================================== */

.cm-shop :is(h2, h3, h4),
.cm-shop-plans :is(h2, h3, h4) {
	margin: 0;
	padding: 0;
	font-family: var(--cm26-font-display);
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -.012em;
	color: var(--cm26-ink);
	text-transform: none;
	opacity: 1;
}

.cm-shop p,
.cm-shop-plans p { margin: 0; }

.cm-shop ul,
.cm-shop ol { margin: 0; padding: 0; list-style: none; }

.cm-shop :where(a:not(.cm-btn):not(.button)) {
	color: var(--cm26-brand-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cm-shop :where(a:not(.cm-btn):not(.button)):hover { color: var(--cm26-brand-hover); text-decoration-thickness: 2px; }

.cm-shop table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.cm-shop th { text-align: left; font-weight: 500; }

.cm-shop .screen-reader-text,
.cm-shop-plans .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.cm-shop [hidden] { display: none; }

.cm-shop > .cm-wrap > .woocommerce { display: grid; gap: 24px; }

/* ===========================================================================
   BUTTONS (Woo's .button classes mapped onto the theme's)
   =========================================================================== */

.cm-shop .button,
.cm-shop button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1.5px solid var(--cm26-btn2-border);
	border-radius: var(--cm26-radius);
	background: transparent;
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .18s var(--cm26-ease), border-color .18s var(--cm26-ease), color .18s var(--cm26-ease), transform .18s var(--cm26-ease);
}

.cm-shop .button:hover:not(:disabled) { border-color: var(--cm26-charcoal); background: var(--cm26-sand); color: var(--cm26-ink); }

.cm-shop .button.alt,
.cm-shop .checkout-button,
.cm-shop #place_order,
.cm-shop .button.cm-btn-primary {
	border-color: var(--cm26-brand-ink);
	background: var(--cm26-brand-ink);
	color: var(--cm26-on-brand);
	box-shadow: 0 3px rgba(105, 33, 27, .12);
}

.cm-shop .button.alt:hover:not(:disabled),
.cm-shop .checkout-button:hover,
.cm-shop #place_order:hover:not(:disabled),
.cm-shop .button.cm-btn-primary:hover:not(:disabled) {
	border-color: var(--cm26-brand-hover);
	background: var(--cm26-brand-hover);
	color: var(--cm26-on-brand);
}

.cm-shop .button:disabled,
.cm-shop .button.disabled,
.cm-shop .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.cm-shop .button.cm-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.cm-shop .checkout-button,
.cm-shop #place_order { width: 100%; min-height: 54px; font-size: 16px; }

.cm-shop .is-busy,
.cm-shop-plans .is-busy { cursor: progress; opacity: .7; }

/* A text-styled button (e.g. "Book a demo"). */
.cm-shop-linkbtn {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cm26-brand-ink);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
}

.cm-shop-linkbtn:hover { color: var(--cm26-brand-hover); text-decoration-thickness: 2px; }

/* ===========================================================================
   PROGRESS STRIP (page head)
   =========================================================================== */

.cm-page-head .cm-shop-steps { width: 100%; margin-top: 4px; }

.cm-shop-steps ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.cm-shop-steps .cm-shop-step { display: flex; align-items: center; }

.cm-shop-steps .cm-shop-step + .cm-shop-step::before {
	content: "";
	width: clamp(20px, 5vw, 56px);
	height: 1.5px;
	margin: 0 12px;
	background: var(--cm26-line);
}

.cm-shop-steps .cm-shop-step.is-done + .cm-shop-step::before,
.cm-shop-steps .cm-shop-step.is-current + .cm-shop-step::before { background: linear-gradient(90deg, var(--cm26-brand-ink), var(--cm26-line)); }

.cm-shop-steps .cm-shop-step > a,
.cm-shop-steps .cm-shop-step > span {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--cm26-stone);
	font-family: var(--cm26-font-display);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.cm-shop-steps .cm-shop-step > a:hover .cm-shop-step-label { text-decoration: underline; text-underline-offset: 3px; }

.cm-shop-steps .cm-shop-step-mark {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1.5px solid var(--cm26-input-border);
	border-radius: 999px;
	background: var(--cm26-card);
	color: var(--cm26-stone);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cm-shop-steps .cm-shop-step.is-done .cm-shop-step-mark {
	border-color: var(--cm26-brand-ink);
	background: var(--cm26-tint);
	color: var(--cm26-brand-ink);
}

.cm-shop-steps .cm-shop-step.is-done > a,
.cm-shop-steps .cm-shop-step.is-current > span { color: var(--cm26-ink); }

.cm-shop-steps .cm-shop-step.is-current .cm-shop-step-mark {
	border-color: var(--cm26-brand-ink);
	background: var(--cm26-brand-ink);
	color: var(--cm26-on-brand);
	box-shadow: 0 0 0 4px rgba(184, 53, 43, .14);
}

/* Phones: tighten the connectors so all three steps keep one line. */
@media (max-width: 479.98px) {
	.cm-shop-steps .cm-shop-step + .cm-shop-step::before { width: 14px; margin: 0 8px; }
	.cm-shop-steps .cm-shop-step > a,
	.cm-shop-steps .cm-shop-step > span { gap: 7px; font-size: 13.5px; }
	.cm-shop-steps .cm-shop-step-mark { width: 26px; height: 26px; font-size: 12.5px; }
}

/* ===========================================================================
   NOTICES
   =========================================================================== */

.cm-shop .woocommerce-notices-wrapper:empty { display: none; }

.cm-shop .woocommerce-message,
.cm-shop .woocommerce-info,
.cm-shop .woocommerce-error,
.cm-shop .woocommerce-notice:not(.woocommerce-thankyou-order-received) {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 16px;
	padding: 14px 16px 14px 46px;
	border: 1px solid var(--cm26-line);
	border-left-width: 4px;
	border-radius: var(--cm26-radius);
	background: var(--cm26-card);
	color: var(--cm26-prose);
	font-size: 15px;
	line-height: 1.5;
	list-style: none;
}

.cm-shop .woocommerce-message::before,
.cm-shop .woocommerce-info::before,
.cm-shop .woocommerce-error::before {
	content: "";
	position: absolute;
	top: 16px;
	left: 16px;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: currentColor;
	-webkit-mask: var(--cm-shop-notice-icon) center / 18px 18px no-repeat;
	mask: var(--cm-shop-notice-icon) center / 18px 18px no-repeat;
}

.cm-shop .woocommerce-message {
	--cm-shop-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	border-left-color: #3f7a4f;
}

.cm-shop .woocommerce-message::before { color: #2f6b3f; background: #2f6b3f; }

.cm-shop .woocommerce-info {
	--cm-shop-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
	border-left-color: var(--cm26-stone);
}

.cm-shop .woocommerce-info::before { background: var(--cm26-stone); }

.cm-shop .woocommerce-error {
	--cm-shop-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
	flex-direction: column;
	align-items: flex-start;
	border-color: #e7c3bf;
	border-left-color: var(--cm26-error-line);
	background: #fdf3f2;
	color: var(--cm26-error);
	font-weight: 500;
}

.cm-shop .woocommerce-error::before { background: var(--cm26-error); }
.cm-shop .woocommerce-error li { margin: 0; }
.cm-shop .woocommerce-error:focus { outline: 3px solid var(--cm26-brand-ink); outline-offset: 3px; }

/* "View cart" / "Click here to enter your code" links inside notices. */
.cm-shop .woocommerce-message .button,
.cm-shop .woocommerce-info .button,
.cm-shop .woocommerce-info a,
.cm-shop .woocommerce-message a {
	order: 2;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--cm26-brand-ink);
	font-family: var(--cm26-font-display);
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cm-shop .woocommerce-message .button:hover,
.cm-shop .woocommerce-info .button:hover { background: none; color: var(--cm26-brand-hover); }

/* Checkout gate note (form-login.php). */
.cm-shop-gate-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 24px;
	padding: 16px 18px;
	border: 1px solid #ecd2cd;
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-tint);
	color: var(--cm26-prose);
	font-size: 15.5px;
	line-height: 1.55;
}

.cm-shop-gate-note > svg { flex: 0 0 auto; margin-top: 3px; color: var(--cm26-brand-ink); }
.cm-shop-gate-note strong { color: var(--cm26-ink); }

/* ===========================================================================
   FORM FIELDS (matches gf-2026: --cm26-input-border, radius-input)
   =========================================================================== */

.cm-shop .form-row { display: grid; gap: 6px; margin: 0; padding: 0; }

.cm-shop .form-row > label,
.cm-shop .woocommerce-form-row > label,
.cm-shop fieldset legend {
	display: block;
	margin: 0;
	font-family: var(--cm26-font-display);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cm26-ink);
}

.cm-shop .required,
.cm-shop abbr.required { color: var(--cm26-brand-ink); text-decoration: none; border: 0; }

.cm-shop .optional { color: var(--cm26-stone); font-weight: 500; font-size: 13px; }

.cm-shop input.input-text,
.cm-shop input[type="text"],
.cm-shop input[type="email"],
.cm-shop input[type="tel"],
.cm-shop input[type="password"],
.cm-shop input[type="number"],
.cm-shop input[type="url"],
.cm-shop select,
.cm-shop textarea {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	background: var(--cm26-card);
	color: var(--cm26-ink);
	border: 1.5px solid var(--cm26-input-border);
	border-radius: var(--cm26-radius-input);
	box-shadow: none;
	font-family: var(--cm26-font-body);
	font-size: 16px;
	line-height: 1.4;
	transition: border-color .15s var(--cm26-ease), box-shadow .15s var(--cm26-ease);
}

.cm-shop textarea { min-height: 112px; resize: vertical; }

.cm-shop select {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6460' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
}

.cm-shop input.input-text:hover,
.cm-shop select:hover,
.cm-shop textarea:hover { border-color: var(--cm26-input-hover); }

.cm-shop input.input-text:focus,
.cm-shop input[type="text"]:focus,
.cm-shop input[type="email"]:focus,
.cm-shop input[type="tel"]:focus,
.cm-shop input[type="password"]:focus,
.cm-shop select:focus,
.cm-shop textarea:focus {
	border-color: var(--cm26-brand-ink);
	outline: none;
	box-shadow: 0 0 0 3px rgba(184, 53, 43, .18);
}

.cm-shop .woocommerce-invalid input.input-text,
.cm-shop .woocommerce-invalid select,
.cm-shop .woocommerce-invalid .select2-selection,
.cm-shop input[aria-invalid="true"] { border-color: var(--cm26-error-line); }

.cm-shop .checkout-inline-error-message,
.cm-shop .woocommerce-invalid .woocommerce-input-wrapper + .error { color: var(--cm26-error); font-size: 13.5px; font-weight: 500; }

.cm-shop .woocommerce-input-wrapper { display: block; }

.cm-shop .woocommerce-form__label-for-checkbox,
.cm-shop label.checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--cm26-font-body);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.cm-shop input[type="checkbox"],
.cm-shop input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--cm26-brand-ink);
	flex: 0 0 auto;
}

/* Show-password toggle Woo's JS injects (its icon font is in the dequeued sheet). */
.cm-shop .password-input { position: relative; display: block; }
.cm-shop .password-input input.input-text { padding-right: 52px; }

.cm-shop .show-password-input {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--cm26-radius-sm);
	background: var(--cm26-stone);
	transform: translateY(-50%);
	cursor: pointer;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.06 12.35a1 1 0 0 1 0-.7 10.75 10.75 0 0 1 19.88 0 1 1 0 0 1 0 .7 10.75 10.75 0 0 1-19.88 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.06 12.35a1 1 0 0 1 0-.7 10.75 10.75 0 0 1 19.88 0 1 1 0 0 1 0 .7 10.75 10.75 0 0 1-19.88 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.cm-shop .show-password-input.display-password { background: var(--cm26-brand-ink); }
.cm-shop .show-password-input:focus-visible { outline: 3px solid var(--cm26-brand-ink); outline-offset: 0; }

.cm-shop .woocommerce-password-strength {
	margin-top: 6px;
	padding: 6px 10px;
	border-radius: var(--cm26-radius-tag);
	font-size: 13px;
	font-weight: 600;
	background: var(--cm26-sand);
	color: var(--cm26-body);
}

.cm-shop .woocommerce-password-strength.strong { background: #e6f0e8; color: #2f6b3f; }
.cm-shop .woocommerce-password-strength.short,
.cm-shop .woocommerce-password-strength.bad { background: #fdf3f2; color: var(--cm26-error); }
.cm-shop .woocommerce-password-hint { display: block; margin-top: 6px; color: var(--cm26-stone); font-size: 13px; }

/* Select2 / SelectWoo (country & state). */
.cm-shop .select2-container { width: 100%; }

.cm-shop .select2-container--default .select2-selection--single {
	height: 48px;
	border: 1.5px solid var(--cm26-input-border);
	border-radius: var(--cm26-radius-input);
	background: var(--cm26-card);
}

.cm-shop .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0 40px 0 14px;
	color: var(--cm26-ink);
	font-size: 16px;
	line-height: 45px;
}

.cm-shop .select2-container--default .select2-selection--single .select2-selection__arrow { top: 10px; right: 10px; }

.cm-shop .select2-container--default.select2-container--focus .select2-selection--single,
.cm-shop .select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--cm26-brand-ink);
	box-shadow: 0 0 0 3px rgba(184, 53, 43, .18);
}

body.cm-shop-page .select2-dropdown { border-color: var(--cm26-input-border); border-radius: var(--cm26-radius-input); overflow: hidden; }
body.cm-shop-page .select2-container--default .select2-results__option--highlighted[aria-selected],
body.cm-shop-page .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--cm26-brand-ink); color: var(--cm26-on-brand); }
body.cm-shop-page .select2-search--dropdown .select2-search__field { min-height: 40px; border: 1.5px solid var(--cm26-input-border); border-radius: var(--cm26-radius-sm); }

/* ===========================================================================
   PANELS + SUMMARY CARD
   =========================================================================== */

.cm-shop-panel,
.cm-shop .cm-shop-summary {
	background: var(--cm26-card);
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	box-shadow: inset 0 1px rgba(255, 255, 255, .85), var(--cm26-shadow-card);
}

.cm-shop-panel { padding: clamp(20px, 3vw, 32px); }
.cm-shop .cm-shop-summary { padding: clamp(20px, 2.6vw, 28px); }

.cm-shop-panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--cm26-line);
}

.cm-shop .cm-shop-panel-title,
.cm-shop .cm-shop-summary-title {
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: -.018em;
}

.cm-shop .cm-shop-summary-title { margin-bottom: 18px; }

.cm-shop .cm-shop-secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--cm26-stone);
	font-size: 13px;
	font-weight: 500;
}

.cm-shop .cm-shop-secure svg { color: #2f6b3f; }

/* ===========================================================================
   TOTALS TABLE + THE BILLING TIMELINE
   =========================================================================== */

.cm-shop .cm-shop-totals,
.cm-shop .cm-shop-totals tbody,
.cm-shop .cm-shop-totals tfoot { display: block; }

.cm-shop .cm-shop-totals tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 4px 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--cm26-line);
}

.cm-shop .cm-shop-totals th,
.cm-shop .cm-shop-totals td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cm26-body);
	font-size: 15px;
	line-height: 1.45;
	font-weight: 500;
}

.cm-shop .cm-shop-totals td { text-align: right; color: var(--cm26-ink); font-variant-numeric: tabular-nums; }

/* review-order line items */
.cm-shop .woocommerce-checkout-review-order-table .cart_item td.product-name { text-align: left; color: var(--cm26-ink); font-weight: 600; }
.cm-shop .cm-shop-totals .cart_item { padding: 14px 0; }

.cm-shop .cm-shop-line-kind {
	display: block;
	margin-bottom: 2px;
	color: var(--cm26-stone);
	font-family: var(--cm26-font-display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.cm-shop .cm-shop-per { color: var(--cm26-stone); font-size: 13px; font-weight: 500; }

.cm-shop .cm-shop-totals .variation,
.cm-shop .cm-shop-totals .wc-item-meta { margin: 4px 0 0; color: var(--cm26-stone); font-size: 13px; font-weight: 400; }

/* Timeline: order-total ("Due today") + recurring rows. */
.cm-shop .cm-shop-totals tr.order-total,
.cm-shop .cm-shop-totals tr.cm-shop-recurring-row {
	position: relative;
	padding-left: 26px;
	border-bottom: 0;
}

.cm-shop .cm-shop-totals tr.order-total { margin-top: 6px; padding-top: 16px; }

.cm-shop .cm-shop-totals tr.order-total::before,
.cm-shop .cm-shop-totals tr.cm-shop-recurring-row::before {
	content: "";
	position: absolute;
	left: 2px;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	box-sizing: border-box;
}

.cm-shop .cm-shop-totals tr.order-total::before { top: 26px; background: var(--cm26-brand-ink); box-shadow: 0 0 0 4px rgba(184, 53, 43, .14); }
.cm-shop .cm-shop-totals tr.cm-shop-recurring-row::before { top: 16px; border: 2px solid var(--cm26-brand-ink); background: var(--cm26-card); }

/* The rail: from today's dot down through each renewal dot. */
.cm-shop .cm-shop-totals tr.order-total:has(+ tr.cm-shop-recurring-row)::after,
.cm-shop .cm-shop-totals tr.cm-shop-recurring-row:has(+ tr.cm-shop-recurring-row)::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 40px;
	bottom: -14px;
	width: 2px;
	background: repeating-linear-gradient(to bottom, var(--cm26-brand) 0 4px, transparent 4px 8px);
}

.cm-shop .cm-shop-totals tr.cm-shop-recurring-row:has(+ tr.cm-shop-recurring-row)::after { top: 24px; }

.cm-shop .cm-shop-totals tr.order-total th {
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 16px;
	font-weight: 700;
}

.cm-shop .cm-shop-totals tr.order-total td {
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.1;
}

.cm-shop .cm-shop-totals tr.order-total td small,
.cm-shop .cm-shop-totals tr.order-total .includes_tax { display: block; font-family: var(--cm26-font-body); font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--cm26-stone); }

.cm-shop .cm-shop-totals tr.cm-shop-recurring-row { padding-top: 8px; padding-bottom: 8px; }
.cm-shop .cm-shop-totals tr.cm-shop-recurring-row:last-child,
.cm-shop .cm-shop-totals tr.cm-shop-recurring-row:last-of-type { padding-bottom: 4px; }

.cm-shop .cm-shop-recurring-row th { display: grid; gap: 0; }
.cm-shop .cm-shop-recurring-then { color: var(--cm26-brand-ink); font-family: var(--cm26-font-display); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cm-shop .cm-shop-recurring-label { color: var(--cm26-ink); font-weight: 600; }
.cm-shop .cm-shop-recurring-row td { display: grid; justify-items: end; gap: 0; }
.cm-shop .cm-shop-recurring-amount { color: var(--cm26-ink); font-weight: 700; }
.cm-shop .cm-shop-recurring-starts { color: var(--cm26-stone); font-size: 13px; font-weight: 400; }

/* Coupon rows in totals. */
.cm-shop .cm-shop-totals .cart-discount td { color: #2f6b3f; }
.cm-shop .woocommerce-remove-coupon { margin-left: 6px; font-size: 13px; }

/* Reassurance list (summary foot + plans foot). */
.cm-shop-assure,
.cm-shop .cm-shop-assure {
	display: grid;
	gap: 8px;
	margin: 20px 0 0;
	padding: 16px 0 0;
	list-style: none;
	border-top: 1px solid var(--cm26-line);
}

.cm-shop-assure li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--cm26-body);
	font-size: 14px;
	line-height: 1.4;
}

.cm-shop-assure svg { flex: 0 0 auto; color: var(--sw-tone, var(--cm26-brand-ink)); }

.cm-shop .wc-proceed-to-checkout { margin-top: 20px; }

/* ===========================================================================
   CART
   =========================================================================== */

.cm-shop-cart {
	display: grid;
	gap: 24px;
	align-items: start;
}

@media (min-width: 960px) {
	.cm-shop-cart { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 32px; }
	.cm-shop-cart-aside { position: sticky; top: calc(var(--cm26-header-h) + var(--cm26-admin-bar-h, 0px) + 24px); }
}

.cm-shop-cart-form {
	background: var(--cm26-card);
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	box-shadow: inset 0 1px rgba(255, 255, 255, .85), var(--cm26-shadow-card);
	overflow: hidden;
}

.cm-shop .cm-shop-lines,
.cm-shop .cm-shop-lines tbody { display: block; }

.cm-shop .cm-shop-lines tr.cart_item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	grid-template-areas:
		"thumb name  total"
		"thumb rm    total";
	align-items: start;
	gap: 6px 18px;
	padding: 22px clamp(18px, 3vw, 28px);
	border-bottom: 1px solid var(--cm26-line);
}

.cm-shop .cm-shop-lines td { display: block; padding: 0; border: 0; }
.cm-shop .cm-shop-lines td::before { content: none; }

.cm-shop .cm-shop-lines td.product-thumbnail { grid-area: thumb; }
.cm-shop .cm-shop-lines td.product-name { grid-area: name; }
.cm-shop .cm-shop-lines td.product-subtotal { grid-area: total; text-align: right; }
.cm-shop .cm-shop-lines td.product-remove { grid-area: rm; align-self: end; }
.cm-shop .cm-shop-lines td.product-price { display: none; }
.cm-shop .cm-shop-lines td.product-quantity { display: none; }

/* A quantity that can actually change gets its own row. */
.cm-shop .cm-shop-lines tr.cart_item:has(.product-quantity input[type="number"]) td.product-quantity { display: block; grid-column: 2; }

.cm-shop .cm-shop-lines .product-thumbnail img,
.cm-shop .cm-shop-lines .cm-shop-monogram {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: var(--cm26-radius);
	object-fit: cover;
	background: var(--cm26-sand);
}

.cm-shop .cm-shop-monogram {
	display: grid;
	place-items: center;
	border: 1px solid var(--cm26-line);
	color: var(--cm26-brand-ink);
	font-family: var(--cm26-font-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 64px;
	text-align: center;
}

.cm-shop .cm-shop-lines td.product-name,
.cm-shop .cm-shop-lines td.product-name > a {
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.cm-shop .cm-shop-lines td.product-name > a:hover { color: var(--cm26-brand-ink); text-decoration: underline; }

.cm-shop .cm-shop-line-note { display: block; margin-top: 4px; color: var(--cm26-body); font-family: var(--cm26-font-body); font-size: 14px; font-weight: 400; }

.cm-shop .cm-shop-lines td.product-subtotal {
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.cm-shop .cm-shop-lines td.product-subtotal .cm-shop-per { display: block; font-family: var(--cm26-font-body); font-size: 12.5px; }

.cm-shop .cm-shop-lines td.product-remove a.remove {
	color: var(--cm26-stone);
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cm-shop .cm-shop-lines td.product-remove a.remove:hover { color: var(--cm26-error); }

.cm-shop .cm-shop-lines .quantity input.qty { width: 84px; min-height: 40px; padding: 6px 10px; }

.cm-shop .cm-shop-lines tr.cm-shop-actions-row { display: block; }

.cm-shop .cm-shop-lines td.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px clamp(18px, 3vw, 28px);
	background: rgba(243, 237, 231, .45);
}

.cm-shop .cm-shop-lines td.actions:not(:has(> details)):not(:has(> .button:not([hidden]))) { display: none; }

.cm-shop .cm-shop-coupon summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.cm-shop .cm-shop-coupon summary::-webkit-details-marker { display: none; }

.cm-shop .cm-shop-coupon summary::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 1.5px solid;
	border-bottom: 1.5px solid;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s var(--cm26-ease);
}

.cm-shop .cm-shop-coupon[open] summary::after { transform: translateY(1px) rotate(-135deg); }

.cm-shop .cm-shop-coupon .coupon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cm-shop .cm-shop-coupon .coupon input.input-text { width: auto; flex: 1 1 180px; min-height: 40px; }

.cm-shop .cross-sells { margin-top: 24px; }
.cm-shop .cross-sells > h2 { font-size: 18px; margin-bottom: 12px; }

/* Empty cart */
.cm-shop .wc-empty-cart-message .cart-empty { display: none; }

.cm-shop .cm-shop-empty {
	display: grid;
	justify-items: center;
	gap: 16px;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	max-width: 560px;
	margin-inline: auto;
	padding: clamp(32px, 6vw, 56px) 24px;
	text-align: center;
}

.cm-shop .cm-shop-empty-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: var(--cm26-tint);
	color: var(--cm26-brand-ink);
}

.cm-shop .cm-shop-empty-copy { max-width: 42ch; color: var(--cm26-body); font-size: 16px; }

/* ===========================================================================
   CHECKOUT
   =========================================================================== */

.cm-shop .cm-shop-checkout {
	display: grid;
	gap: 24px;
	align-items: start;
}

/* clip, not hidden: the section (.cm-section-tight) and body are
   overflow:hidden, which makes each a scroll container, so the sticky summary
   measured its top offset from the section and sat 96px below the details
   panel instead of level with it. Same fix as cm-areas-single.css. */
body.cm-shop-page--checkout { overflow-x: clip; overflow-y: visible; }
body.cm-shop-page--checkout section.cm-shop--checkout { overflow: clip; }

@media (min-width: 960px) {
	.cm-shop .cm-shop-checkout { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 32px; }
	.cm-shop .cm-shop-checkout-aside { position: sticky; top: calc(var(--cm26-header-h) + var(--cm26-admin-bar-h, 0px) + 24px); }
}

/* On phones the summary comes first, so the price is read before the form. */
@media (max-width: 959.98px) {
	.cm-shop .cm-shop-checkout-aside { order: -1; }
}

.cm-shop .cm-shop-checkout-main { display: grid; gap: 24px; min-width: 0; }

.cm-shop .col2-set { display: grid; gap: 20px; }

/* .col-1 / .col-2 are also Bootstrap grid classes (style.css): undo their
   8.33% / 16.67% widths wherever Woo uses them as plain column names. */
.cm-shop .col2-set > .col-1,
.cm-shop .col2-set > .col-2 {
	flex: none;
	width: auto;
	max-width: none;
	padding-inline: 0;
}

.cm-shop .col2-set > .cm-shop-login-card { padding: clamp(22px, 3.4vw, 36px); }
.cm-shop .col2-set .col-2:empty,
.cm-shop .col2-set .col-2:not(:has(*)) { display: none; }

/* form-billing.php's own "Billing details" h3: the panel heading replaces it. */
.cm-shop .cm-shop-panel--details .woocommerce-billing-fields > h3 { display: none; }

.cm-shop .woocommerce-additional-fields > h3,
.cm-shop .woocommerce-shipping-fields > h3,
.cm-shop .woocommerce-account-fields > h3 { margin: 8px 0 12px; font-size: 16px; }

.cm-shop .woocommerce-billing-fields__field-wrapper,
.cm-shop .woocommerce-shipping-fields__field-wrapper,
.cm-shop .woocommerce-additional-fields__field-wrapper,
.cm-shop .woocommerce-address-fields__field-wrapper,
.cm-shop .create-account {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.cm-shop .woocommerce-billing-fields__field-wrapper > .form-row,
.cm-shop .woocommerce-shipping-fields__field-wrapper > .form-row,
.cm-shop .woocommerce-additional-fields__field-wrapper > .form-row,
.cm-shop .woocommerce-address-fields__field-wrapper > .form-row,
.cm-shop .create-account > * { grid-column: 1 / -1; }

.cm-shop .woocommerce-billing-fields__field-wrapper > .form-row-first,
.cm-shop .woocommerce-shipping-fields__field-wrapper > .form-row-first,
.cm-shop .woocommerce-address-fields__field-wrapper > .form-row-first { grid-column: 1; }

.cm-shop .woocommerce-billing-fields__field-wrapper > .form-row-last,
.cm-shop .woocommerce-shipping-fields__field-wrapper > .form-row-last,
.cm-shop .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 2; }

@media (max-width: 559.98px) {
	.cm-shop .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.cm-shop .woocommerce-billing-fields__field-wrapper > .form-row-last,
	.cm-shop .woocommerce-shipping-fields__field-wrapper > .form-row-first,
	.cm-shop .woocommerce-shipping-fields__field-wrapper > .form-row-last,
	.cm-shop .woocommerce-address-fields__field-wrapper > .form-row-first,
	.cm-shop .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 1 / -1; }
}

/* Registration: first and last name side by side, stacked on phones. */
.cm-shop .woocommerce-form-register .cm-shop-reg-names {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.cm-shop .woocommerce-form-register .cm-shop-reg-names > .form-row { width: auto; float: none; margin-inline: 0; }

.cm-shop .woocommerce-form-register .cm-shop-reg-names .optional { color: var(--cm26-stone); font-weight: 400; }

@media (max-width: 419.98px) {
	.cm-shop .woocommerce-form-register .cm-shop-reg-names { grid-template-columns: minmax(0, 1fr); }
}

/* Checkout login / coupon toggles above the form. */
.cm-shop form.checkout_coupon,
.cm-shop form.woocommerce-form-login:not(.login) {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
	margin: 0 0 20px;
	padding: 18px;
	border: 1px dashed var(--cm26-input-border);
	border-radius: var(--cm26-radius-card);
}

.cm-shop form.checkout_coupon .form-row-first { flex: 1 1 220px; }
.cm-shop form.checkout_coupon .clear { display: none; }

/* --- Payment box ------------------------------------------------------ */

.cm-shop #payment { background: none; border-radius: 0; }

.cm-shop #payment ul.payment_methods {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
}

.cm-shop #payment ul.payment_methods li.wc_payment_method {
	margin: 0;
	padding: 0;
	border: 1.5px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	overflow: hidden;
	transition: border-color .18s var(--cm26-ease), background-color .18s var(--cm26-ease);
}

.cm-shop #payment ul.payment_methods li.wc_payment_method:has(> input:checked) { border-color: var(--cm26-brand-ink); }

.cm-shop #payment ul.payment_methods li.wc_payment_method > input.input-radio {
	position: absolute;
	margin: 21px 0 0 18px;
}

.cm-shop #payment ul.payment_methods li.wc_payment_method > label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 60px;
	padding: 12px 18px 12px 48px;
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 15.5px;
	font-weight: 700;
	cursor: pointer;
}

/* A lone payment method needs no radio. */
.cm-shop #payment ul.payment_methods li.wc_payment_method:only-child > input.input-radio { position: absolute; opacity: 0; pointer-events: none; }
.cm-shop #payment ul.payment_methods li.wc_payment_method:only-child > label { padding-left: 18px; }

.cm-shop #payment ul.payment_methods li img { max-height: 24px; width: auto; margin: 0; }

.cm-shop #payment .payment_box {
	position: relative;
	margin: 0;
	padding: 4px 18px 18px;
	background: transparent;
	color: var(--cm26-body);
	font-size: 14.5px;
}

.cm-shop #payment .payment_box::before { content: none; }
.cm-shop #payment .payment_box p { margin: 0 0 12px; }

.cm-shop #payment .payment_box fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.cm-shop #payment .woocommerce-SavedPaymentMethods {
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.cm-shop #payment .woocommerce-SavedPaymentMethods li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px solid var(--cm26-line);
	border-radius: var(--cm26-radius-input);
	background: var(--cm26-paper);
}

.cm-shop #payment .woocommerce-SavedPaymentMethods li:has(input:checked) { border-color: var(--cm26-brand-ink); background: var(--cm26-tint); }
.cm-shop #payment .woocommerce-SavedPaymentMethods li label { font-weight: 600; cursor: pointer; }

/* Plans always save the card, so the "Save payment information" checkbox may be
   hidden by the checkout stage; when it shows, keep it tidy. */
.cm-shop #payment .woocommerce-SavedPaymentMethods-saveNew { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cm-shop #payment .woocommerce-SavedPaymentMethods-saveNew label { font-weight: 500; }

.cm-shop #payment .wc-stripe-upe-element,
.cm-shop #payment .wc-upe-form { min-height: 40px; }

.cm-shop #payment .place-order {
	display: grid;
	gap: 14px;
	margin: 20px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--cm26-line);
}

.cm-shop .woocommerce-terms-and-conditions-wrapper,
.cm-shop .woocommerce-privacy-policy-text { color: var(--cm26-stone); font-size: 13.5px; line-height: 1.55; }

.cm-shop .woocommerce-terms-and-conditions-wrapper .form-row { display: flex; }
.cm-shop .woocommerce-terms-and-conditions {
	max-height: 220px;
	overflow: auto;
	margin-bottom: 12px;
	padding: 14px;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius);
	background: var(--cm26-paper);
}

/* Woo's blockUI overlay while the checkout refreshes. */
.cm-shop .blockUI.blockOverlay { border-radius: var(--cm26-radius-card); background: var(--cm26-paper); }

/* ===========================================================================
   ORDER RECEIVED
   =========================================================================== */

/* Layout: one column on phones (confirmation, receipt, next steps); from
   1000px the receipt rides in a sticky right column beside both cards.
   Rows are auto + 1fr so a receipt taller than the confirmation never opens
   a gap between the two main cards. */
.cm-shop-order { display: grid; gap: 24px; }

.cm-shop .cm-shop-order-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "lead" "aside" "next";
	gap: 20px;
	align-items: start;
}

.cm-shop .cm-shop-order-lead { grid-area: lead; min-width: 0; }
.cm-shop .cm-shop-order-next { grid-area: next; min-width: 0; }
.cm-shop .cm-shop-order .cm-shop-receipt { grid-area: aside; min-width: 0; }

/* Sticky needs the section + body not to be scroll containers (see checkout). */
body.cm-shop-page--received { overflow-x: clip; overflow-y: visible; }
body.cm-shop-page--received section.cm-shop--received { overflow: clip; }

@media (min-width: 1000px) {
	.cm-shop .cm-shop-order-grid {
		grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
		grid-template-rows: auto 1fr;
		grid-template-areas: "lead aside" "next aside";
		gap: 24px 40px;
	}

	.cm-shop .cm-shop-order .cm-shop-receipt { position: sticky; top: calc(var(--cm26-header-h) + var(--cm26-admin-bar-h, 0px) + 24px); }
}

/* --- Confirmation card ---------------------------------------------------- */

.cm-shop .cm-shop-confirm {
	position: relative;
	overflow: hidden;
	padding: clamp(22px, 3.4vw, 40px);
	background:
		radial-gradient(90% 120% at 100% 0%, var(--cm26-tint) 0, rgba(255, 244, 242, 0) 62%),
		var(--cm26-card);
}


.cm-shop .cm-shop-confirm-top { display: flex; gap: 22px; align-items: flex-start; }

.cm-shop .cm-shop-confirm-badge {
	position: relative;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: var(--cm26-brand-ink);
	color: var(--cm26-on-brand);
	box-shadow: 0 0 0 8px rgba(184, 53, 43, .1);
	animation: cm-shop-pop .55s var(--cm26-ease) both;
}

.cm-shop .cm-shop-confirm-badge svg { stroke-width: 2.4; }

.cm-shop .cm-shop-confirm-badge::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: inherit;
	border: 2px solid var(--cm26-brand);
	opacity: 0;
	animation: cm-shop-ring 1.1s .25s var(--cm26-ease) both;
}

.cm-shop .cm-shop-confirm-badge--bad { background: var(--cm26-error); box-shadow: 0 0 0 8px rgba(163, 34, 26, .1); }
.cm-shop .cm-shop-confirm-badge--bad svg { stroke-width: 2; }
.cm-shop .cm-shop-confirm-badge--bad::after { content: none; }

@keyframes cm-shop-pop {
	from { transform: scale(.6); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

@keyframes cm-shop-ring {
	0%   { transform: scale(.9); opacity: .9; }
	100% { transform: scale(1.5); opacity: 0; }
}

.cm-shop .cm-shop-confirm-body { display: grid; gap: 6px; min-width: 0; padding-top: 4px; }

.cm-shop .cm-shop-confirm .cm-shop-confirm-title {
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.2;
	letter-spacing: -.025em;
}

.cm-shop .woocommerce-thankyou-order-received { color: var(--cm26-body); font-size: 16px; }

/* What was bought, with each plan's live status. */
.cm-shop .cm-shop-confirm-items {
	display: grid;
	gap: 10px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--cm26-line);
}

.cm-shop .cm-shop-confirm-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius);
	background: var(--cm26-card);
}

.cm-shop .cm-shop-confirm-item-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--cm26-radius);
	background: var(--cm26-tint);
	color: var(--cm26-brand-ink);
}

.cm-shop .cm-shop-confirm-item-text { display: grid; gap: 1px; min-width: 0; }

.cm-shop .cm-shop-confirm-item-text strong {
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.cm-shop .cm-shop-confirm-item-text span { color: var(--cm26-stone); font-size: 13.5px; }

.cm-shop .cm-shop-confirm-actions { margin-top: 24px; }

/* Failed: same card, error tone, no rings. */
.cm-shop .cm-shop-confirm--failed {
	border-color: #e7c3bf;
	background: radial-gradient(90% 120% at 100% 0%, #fdf3f2 0, rgba(253, 243, 242, 0) 62%), var(--cm26-card);
}

.cm-shop .cm-shop-confirm--failed .woocommerce-notice {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cm26-body);
	font-size: 16px;
}

.cm-shop .cm-shop-confirm--failed .woocommerce-notice::before { content: none; }
.cm-shop .cm-shop-confirm--failed p.cm-shop-confirm-actions { margin-top: 24px; }

/* --- What happens next ------------------------------------------------------ */

.cm-shop .cm-shop-next { padding: 4px 0; }
.cm-shop .cm-shop-next.cm-card { padding: clamp(22px, 3.4vw, 40px); }
.cm-shop .cm-shop-next-title { margin-bottom: 22px; font-size: 20px; }

/* A real sequence, so it is numbered. */
.cm-shop .cm-shop-next-list { display: grid; gap: 0; counter-reset: cm-shop-next; }

.cm-shop .cm-shop-next-list > li {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 0 0 24px 52px;
	counter-increment: cm-shop-next;
}

.cm-shop .cm-shop-next-list > li:last-child { padding-bottom: 0; }

.cm-shop .cm-shop-next-list > li::before {
	content: counter(cm-shop-next);
	position: absolute;
	left: 0;
	top: -2px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1.5px solid var(--cm26-brand-ink);
	border-radius: 999px;
	background: var(--cm26-card);
	color: var(--cm26-brand-ink);
	font-family: var(--cm26-font-display);
	font-size: 14px;
	font-weight: 700;
}

/* The first step is done (or underway): filled. */
.cm-shop .cm-shop-next-list > li:first-child:not(.cm-shop-next-item--warn)::before { background: var(--cm26-brand-ink); color: var(--cm26-on-brand); }

.cm-shop .cm-shop-next-list > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 15px;
	top: 34px;
	bottom: 2px;
	width: 2px;
	background: var(--cm26-line);
}

.cm-shop .cm-shop-next-list h3 { font-size: 16.5px; }
.cm-shop .cm-shop-next-list p { color: var(--cm26-body); font-size: 15px; max-width: 60ch; }

.cm-shop .cm-shop-next p.cm-shop-next-actions {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--cm26-line);
}

/* The narrow main column (1000 to 1180px) can't fit both buttons on one line:
   stack them full width instead of letting the second one wrap alone. */
@media (min-width: 1000px) and (max-width: 1179.98px) {
	.cm-shop .cm-shop-order .cm-shop-next-actions .cm-btn { flex: 1 1 100%; }
}

/* Payment-method instructions (bank transfer etc.) inside the main column. */
.cm-shop .cm-shop-order .cm-shop-order-payinfo {
	display: grid;
	gap: 12px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--cm26-line);
	color: var(--cm26-body);
	font-size: 15px;
}

.cm-shop .cm-shop-order .cm-shop-order-payinfo h2 { font-size: 18px; }

/* Declined: not a sequence, so plain markers instead of numbers. */
.cm-shop .cm-shop-try-list { display: grid; gap: 20px; }

.cm-shop .cm-shop-try-list > li { position: relative; display: grid; gap: 4px; padding-left: 28px; }

.cm-shop .cm-shop-try-list > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--cm26-error);
}

.cm-shop .cm-shop-try-list h3 { font-size: 16.5px; }
.cm-shop .cm-shop-try-list p { color: var(--cm26-body); font-size: 15px; max-width: 60ch; }

/* Someone else's order: Woo prints its plain login form (global/form-login.php). */
.cm-shop--received form.woocommerce-form-login {
	display: grid;
	gap: 16px;
	max-width: 520px;
	margin: 20px 0 0;
	padding: clamp(22px, 3.4vw, 36px);
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	box-shadow: var(--cm26-shadow-card);
}

.cm-shop--received form.woocommerce-form-login .form-row-first,
.cm-shop--received form.woocommerce-form-login .form-row-last { float: none; width: auto; }
.cm-shop--received form.woocommerce-form-login .clear { display: none; }
.cm-shop--received form.woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) { gap: 16px; justify-items: start; }
.cm-shop--received form.woocommerce-form-login .woocommerce-form-login__rememberme { margin: 0; }
.cm-shop--received form.woocommerce-form-login .lost_password { margin: 0; font-size: 14px; }

/* Same coral as the page's other primary buttons (.cm-btn-primary in cosmick-2026.css). */
.cm-shop.cm-shop--received form.woocommerce-form-login .woocommerce-form-login__submit {
	width: 100%;
	border-color: var(--studio-coral);
	background: var(--studio-coral);
	color: var(--studio-charcoal);
	box-shadow: none;
}

.cm-shop.cm-shop--received form.woocommerce-form-login .woocommerce-form-login__submit:hover:not(:disabled) {
	border-color: #ff5747;
	background: #ff5747;
	color: var(--studio-charcoal);
}

/* --- Receipt ---------------------------------------------------------------- */

.cm-shop .cm-shop-order .cm-shop-receipt { display: grid; gap: 0; padding: 0; overflow: hidden; }

.cm-shop .cm-shop-order .cm-shop-receipt-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 22px 24px 20px;
	border-bottom: 1px solid var(--cm26-line);
	background: var(--cm26-sand);
}

.cm-shop .cm-shop-order .cm-shop-receipt-heading { display: grid; gap: 2px; min-width: 0; }

.cm-shop .cm-shop-order .cm-shop-receipt-eyebrow {
	color: var(--cm26-brand-ink);
	font-family: var(--cm26-font-display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.cm-shop .cm-shop-order .cm-shop-receipt .cm-shop-receipt-title { margin: 0; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cm-shop .cm-shop-order .cm-shop-receipt-date { color: var(--cm26-stone); font-size: 14px; }
.cm-shop .cm-shop-order .cm-shop-receipt-head .cm-shop-pill { margin-top: 2px; }

.cm-shop .cm-shop-order .cm-shop-receipt-lines { padding: 8px 24px 20px; }
.cm-shop .cm-shop-order .cm-shop-receipt-lines tbody { padding-bottom: 4px; }
.cm-shop .cm-shop-order .cm-shop-receipt-lines .cart_item th.product-name { display: grid; gap: 0; text-align: left; color: var(--cm26-ink); font-weight: 600; }
.cm-shop .cm-shop-order .cm-shop-receipt-lines .cart_item td.product-total { display: grid; justify-items: end; align-content: start; font-weight: 600; }
.cm-shop .cm-shop-order .cm-shop-receipt-lines .cart_item td.product-total .cm-shop-per { margin-top: -1px; }
.cm-shop .cm-shop-order .cm-shop-receipt-lines .product-quantity { color: var(--cm26-stone); font-weight: 500; }

/* The "tear line" between what was bought and what was charged. */
.cm-shop .cm-shop-order .cm-shop-receipt-lines tfoot { position: relative; margin-top: 6px; padding-top: 6px; }

.cm-shop .cm-shop-order .cm-shop-receipt-lines tfoot::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: repeating-linear-gradient(to right, var(--cm26-input-border) 0 5px, transparent 5px 10px);
	opacity: .55;
}

.cm-shop .cm-shop-order .cm-shop-receipt-lines tbody tr:last-child { border-bottom: 0; }

.cm-shop .cm-shop-order .cm-shop-receipt-facts {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 20px 24px;
	border-top: 1px solid var(--cm26-line);
}

.cm-shop .cm-shop-order .cm-shop-receipt-fact { display: grid; gap: 3px; min-width: 0; }

.cm-shop .cm-shop-order .cm-shop-receipt-fact dt {
	color: var(--cm26-stone);
	font-family: var(--cm26-font-display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.cm-shop .cm-shop-order .cm-shop-receipt-fact dd {
	margin: 0;
	color: var(--cm26-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.cm-shop .cm-shop-order .cm-shop-receipt-fact dd.cm-shop-receipt-email { font-size: 14.5px; }

.cm-shop .cm-shop-order .cm-shop-receipt-card { display: flex; align-items: center; gap: 8px; }
.cm-shop .cm-shop-order .cm-shop-receipt-card svg { flex: 0 0 auto; color: var(--cm26-stone); }
.cm-shop .cm-shop-order .cm-shop-receipt-card span { font-variant-numeric: tabular-nums; }

.cm-shop .cm-shop-order .cm-shop-receipt-address { margin: 0; color: var(--cm26-body); font-size: 14.5px; font-style: normal; line-height: 1.55; }

.cm-shop .cm-shop-order .cm-shop-receipt-help {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 24px;
	border-top: 1px solid var(--cm26-line);
	background: var(--cm26-paper);
	color: var(--cm26-body);
	font-size: 14px;
}

.cm-shop .cm-shop-order .cm-shop-receipt-help svg { flex: 0 0 auto; color: var(--cm26-brand-ink); }
.cm-shop .cm-shop-order .cm-shop-receipt-help a { font-weight: 600; white-space: nowrap; }

@media (max-width: 479.98px) {
	.cm-shop .cm-shop-confirm-top { flex-direction: column; gap: 18px; }
	.cm-shop .cm-shop-confirm-body { padding-top: 0; }
	.cm-shop .cm-shop-confirm-badge { width: 46px; height: 46px; }
	.cm-shop .cm-shop-confirm-item { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 14px; }
	.cm-shop .cm-shop-confirm-item-icon { width: 40px; height: 40px; }
	.cm-shop .cm-shop-confirm-item .cm-shop-pill { grid-column: 2; justify-self: start; }
	.cm-shop .cm-shop-order .cm-shop-receipt-head,
	.cm-shop .cm-shop-order .cm-shop-receipt-facts { padding-left: 20px; padding-right: 20px; }
	.cm-shop .cm-shop-order .cm-shop-receipt-lines { padding-left: 20px; padding-right: 20px; }
	.cm-shop .cm-shop-order .cm-shop-receipt-help { padding-left: 20px; padding-right: 20px; }
	.cm-shop .cm-shop-next-actions .cm-btn { flex: 1 1 100%; }
}

/* Woo's order details + customer details tables (also used under View order). */
.cm-shop .woocommerce-order-details,
.cm-shop .woocommerce-customer-details { display: grid; gap: 14px; }

.cm-shop .woocommerce-order-details__title,
.cm-shop .woocommerce-column__title { font-size: 18px; }

.cm-shop table.shop_table.order_details,
.cm-shop table.woocommerce-orders-table,
.cm-shop table.woocommerce-table--order-downloads,
.cm-shop table.account-orders-table {
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	border-collapse: separate;
	overflow: hidden;
	background: var(--cm26-card);
}

.cm-shop table.shop_table.order_details th,
.cm-shop table.shop_table.order_details td,
.cm-shop table.woocommerce-orders-table th,
.cm-shop table.woocommerce-orders-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--cm26-line);
	font-size: 15px;
	text-align: left;
	vertical-align: top;
}

.cm-shop table.shop_table.order_details thead th,
.cm-shop table.woocommerce-orders-table thead th {
	background: var(--cm26-sand);
	color: var(--cm26-body);
	font-family: var(--cm26-font-display);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cm-shop table.shop_table.order_details tfoot th { color: var(--cm26-body); }
.cm-shop table.shop_table.order_details tfoot tr:last-child th,
.cm-shop table.shop_table.order_details tfoot tr:last-child td { border-bottom: 0; font-weight: 700; color: var(--cm26-ink); }
.cm-shop table.shop_table.order_details .product-total,
.cm-shop table.shop_table.order_details tfoot td { text-align: right; }

.cm-shop .woocommerce-customer-details address {
	padding: 16px;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	font-style: normal;
	line-height: 1.6;
}

.cm-shop .woocommerce-customer-details address p { margin-top: 6px; }

@media (max-width: 639.98px) {
	.cm-shop table.shop_table_responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cm-shop table.woocommerce-orders-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--cm26-line); }
	.cm-shop table.woocommerce-orders-table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px; border: 0; text-align: right; }
	.cm-shop table.woocommerce-orders-table td::before { content: attr(data-title); color: var(--cm26-stone); font-weight: 600; text-align: left; }
}

/* ===========================================================================
   SIGN IN / CREATE ACCOUNT
   =========================================================================== */

.cm-shop .cm-shop-login { display: grid; gap: 24px; align-items: start; }
.cm-shop .cm-shop-login--single { max-width: 520px; }

@media (min-width: 860px) {
	.cm-shop .cm-shop-login:not(.cm-shop-login--single) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

.cm-shop .cm-shop-login-card { display: grid; gap: 6px; padding: clamp(22px, 3.4vw, 36px); }

.cm-shop .cm-shop-login-card--new { background: linear-gradient(180deg, var(--cm26-tint), var(--cm26-card) 140px); }

.cm-shop .cm-shop-login-title { font-size: 22px; letter-spacing: -.02em; }
.cm-shop .cm-shop-login-sub { margin-bottom: 14px; color: var(--cm26-body); font-size: 15px; }

.cm-shop .cm-shop-login-card form { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; }

.cm-shop .cm-shop-login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cm-shop .cm-shop-login-row .lost_password { font-size: 14px; }
.cm-shop .cm-shop-login-card button[type="submit"] { width: 100%; }
.cm-shop .cm-shop-login-hint { color: var(--cm26-stone); font-size: 14px; }

/* Lost / reset password forms. */
.cm-shop form.woocommerce-ResetPassword,
.cm-shop form.lost_reset_password {
	display: grid;
	gap: 16px;
	max-width: 520px;
	padding: clamp(22px, 3.4vw, 36px);
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	box-shadow: var(--cm26-shadow-card);
}

.cm-shop form.lost_reset_password .clear { display: none; }

/* ===========================================================================
   MY ACCOUNT (templates by the account stage: cm-shop-* classes)
   =========================================================================== */

.cm-shop-account-in .cm-shop > .cm-wrap > .woocommerce { gap: 24px 40px; align-items: start; }

@media (min-width: 900px) {
	.cm-shop-account-in .cm-shop > .cm-wrap > .woocommerce { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); }
	.cm-shop-account-in .cm-shop > .cm-wrap > .woocommerce > * { grid-column: 1 / -1; }
	.cm-shop-account-in .cm-shop > .cm-wrap > .woocommerce > .woocommerce-MyAccount-navigation,
	.cm-shop-account-in .cm-shop > .cm-wrap > .woocommerce > .cm-shop-nav { grid-column: 1; position: sticky; top: calc(var(--cm26-header-h) + var(--cm26-admin-bar-h, 0px) + 24px); }
	.cm-shop-account-in .cm-shop > .cm-wrap > .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
}

.cm-shop .woocommerce-MyAccount-content { display: grid; gap: 24px; min-width: 0; }
.cm-shop .woocommerce-MyAccount-content > p { color: var(--cm26-body); }

/* Left nav. */
.cm-shop .cm-shop-nav ul,
.cm-shop .woocommerce-MyAccount-navigation ul { display: grid; gap: 2px; }

.cm-shop .cm-shop-nav a,
.cm-shop .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: var(--cm26-radius);
	color: var(--cm26-body);
	font-family: var(--cm26-font-display);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s var(--cm26-ease), color .15s var(--cm26-ease);
}

.cm-shop .cm-shop-nav a:hover,
.cm-shop .woocommerce-MyAccount-navigation a:hover { background: var(--cm26-sand); color: var(--cm26-ink); text-decoration: none; }

.cm-shop .cm-shop-nav .is-active a,
.cm-shop .cm-shop-nav a[aria-current="page"],
.cm-shop .woocommerce-MyAccount-navigation .is-active a {
	background: var(--cm26-card);
	color: var(--cm26-brand-ink);
	box-shadow: inset 3px 0 0 var(--cm26-brand-ink), 0 1px 2px #2624230d;
}

.cm-shop .cm-shop-nav .woocommerce-MyAccount-navigation-link--customer-logout,
.cm-shop .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--cm26-line); }

/* Phones: the nav scrolls sideways as a chip row. */
@media (max-width: 899.98px) {
	.cm-shop .cm-shop-nav,
	.cm-shop .woocommerce-MyAccount-navigation { margin-inline: calc(var(--cm26-gutter) * -1); overflow-x: auto; scrollbar-width: none; }
	.cm-shop .cm-shop-nav ul,
	.cm-shop .woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; width: max-content; padding: 2px var(--cm26-gutter) 6px; }
	.cm-shop .cm-shop-nav a,
	.cm-shop .woocommerce-MyAccount-navigation a { min-height: 40px; border: 1px solid var(--cm26-line); background: var(--cm26-card); white-space: nowrap; }
	.cm-shop .cm-shop-nav .is-active a,
	.cm-shop .woocommerce-MyAccount-navigation .is-active a { border-color: var(--cm26-brand-ink); box-shadow: none; }
	.cm-shop .cm-shop-nav .woocommerce-MyAccount-navigation-link--customer-logout,
	.cm-shop .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
}

/* Account section wrapper + headings. */
.cm-shop .cm-shop-account { display: grid; gap: 24px; min-width: 0; }

.cm-shop .cm-shop-account > h2,
.cm-shop .cm-shop-account-title { font-size: 20px; letter-spacing: -.018em; }

/* Subscription cards. */
.cm-shop .cm-shop-sub-list,
.cm-shop .cm-shop-subs { display: grid; gap: 16px; }

.cm-shop .cm-shop-sub-card {
	display: grid;
	gap: 16px;
	padding: clamp(18px, 3vw, 28px);
	background: var(--cm26-card);
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	box-shadow: inset 0 1px rgba(255, 255, 255, .85), var(--cm26-shadow-card);
}

.cm-shop a.cm-shop-sub-card,
.cm-shop .cm-shop-sub-card a.cm-shop-sub-link { color: inherit; text-decoration: none; }
.cm-shop a.cm-shop-sub-card { transition: border-color .2s var(--cm26-ease), transform .25s var(--cm26-ease); }
.cm-shop a.cm-shop-sub-card:hover { border-color: #cdbfb3; transform: translateY(-1px); }

.cm-shop .cm-shop-sub-card :is(h2, h3) { font-size: 19px; letter-spacing: -.018em; }

.cm-shop .cm-shop-sub-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}

.cm-shop .cm-shop-sub-price {
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}

.cm-shop .cm-shop-sub-meta { color: var(--cm26-stone); font-size: 14px; }

/* Status pills. */
.cm-shop-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--cm26-sand);
	color: var(--cm26-body);
	font-family: var(--cm26-font-display);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .02em;
	white-space: nowrap;
}

.cm-shop-pill::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: currentColor;
}

.cm-shop-pill--ok    { background: #e6f0e8; color: #2b6239; }   /* 6.2:1 */
.cm-shop-pill--warn  { background: #fbf0dc; color: #7a4c06; }   /* 6.4:1 */
.cm-shop-pill--bad   { background: #fbe7e5; color: var(--cm26-error); }
.cm-shop-pill--muted { background: var(--cm26-sand); color: var(--cm26-stone); }

/* Definition list (plan details, billing). */
.cm-shop .cm-shop-dl:not(ul) {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 0;
	margin: 0;
	border-top: 1px solid var(--cm26-line);
}

.cm-shop .cm-shop-dl:not(ul) > dt,
.cm-shop .cm-shop-dl:not(ul) > dd,
.cm-shop .cm-shop-dl:not(ul) > div > dt,
.cm-shop .cm-shop-dl:not(ul) > div > dd {
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--cm26-line);
	font-size: 15px;
}

.cm-shop .cm-shop-dl:not(ul) > div { display: contents; }
.cm-shop .cm-shop-dl:not(ul) dt { padding-right: 24px; color: var(--cm26-stone); font-weight: 500; }
.cm-shop .cm-shop-dl:not(ul) dd { color: var(--cm26-ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 479.98px) {
	.cm-shop .cm-shop-dl:not(ul) { grid-template-columns: minmax(0, 1fr); }
	.cm-shop .cm-shop-dl:not(ul) dt { padding-bottom: 0; border-bottom: 0; }
	.cm-shop .cm-shop-dl:not(ul) dd { padding-top: 2px; text-align: left; }
}

/* Action rows. */
.cm-shop .cm-shop-action-row,
.cm-shop p.cm-shop-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px 20px;
	margin: 0;
}

.cm-shop .cm-shop-action-form { display: grid; gap: 6px; justify-items: start; margin: 0; }
.cm-shop .cm-shop-action-form--cancel { margin-left: auto; justify-items: end; text-align: right; }

@media (max-width: 559.98px) {
	.cm-shop .cm-shop-action-row { display: grid; }
	.cm-shop .cm-shop-action-form,
	.cm-shop .cm-shop-action-form--cancel { justify-items: stretch; margin-left: 0; text-align: left; }
	.cm-shop .cm-shop-action-form .cm-btn { width: 100%; }
}

.cm-shop .cm-shop-hint { color: var(--cm26-stone); font-size: 13.5px; line-height: 1.5; }

.cm-shop .cm-btn-danger,
.cm-shop .cm-shop-btn-danger {
	border-color: var(--cm26-error-line);
	background: transparent;
	color: var(--cm26-error);
}

.cm-shop .cm-btn-danger:hover:not(:disabled),
.cm-shop .cm-shop-btn-danger:hover:not(:disabled) { background: #fdf3f2; border-color: var(--cm26-error); color: var(--cm26-error); }

/* Panels from the account templates (title as a direct child, no panel head). */
.cm-shop .cm-shop-panel > .cm-shop-panel-title { margin-bottom: 16px; font-size: 18px; }
.cm-shop .cm-shop-panel-lede { margin: -6px 0 18px; color: var(--cm26-body); font-size: 15px; max-width: 64ch; }
.cm-shop .cm-shop-panel-lede p { margin: 0 0 8px; }

/* Subscription detail view. */
.cm-shop .cm-shop-sub-view { display: grid; gap: 20px; min-width: 0; }
.cm-shop .cm-shop-back a { font-size: 14.5px; font-weight: 600; text-decoration: none; }
.cm-shop .cm-shop-back a:hover { text-decoration: underline; }
.cm-shop .cm-shop-sub-view > .cm-shop-sub-head .cm-shop-sub-title { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.024em; }
.cm-shop .cm-shop-sub-tagline { flex: 1 1 100%; color: var(--cm26-body); font-size: 15px; }
.cm-shop .cm-shop-sub-title a { color: inherit; text-decoration: none; }
.cm-shop .cm-shop-sub-title a:hover { color: var(--cm26-brand-ink); text-decoration: underline; }

.cm-shop .cm-shop-alert {
	padding: 14px 16px;
	border: 1px solid var(--cm26-line);
	border-left: 4px solid var(--cm26-stone);
	border-radius: var(--cm26-radius);
	background: var(--cm26-card);
	color: var(--cm26-prose);
	font-size: 15px;
}

.cm-shop .cm-shop-alert--warn { border-color: #efdcb8; border-left-color: #b7791f; background: #fdf7ec; }
.cm-shop .cm-shop-alert--bad  { border-color: #e7c3bf; border-left-color: var(--cm26-error-line); background: #fdf3f2; color: var(--cm26-error); }
.cm-shop .cm-shop-alert--muted { background: var(--cm26-sand); }

.cm-shop .cm-shop-sub-card.cm-shop-tone-bad  { box-shadow: inset 4px 0 0 var(--cm26-error-line), var(--cm26-shadow-card); }
.cm-shop .cm-shop-sub-card.cm-shop-tone-warn { box-shadow: inset 4px 0 0 #b7791f, var(--cm26-shadow-card); }
.cm-shop .cm-shop-sub-card.cm-shop-tone-muted { background: rgba(255, 253, 251, .6); }
.cm-shop .cm-shop-sub-card > article { display: grid; gap: 16px; }
.cm-shop .cm-shop-sub-cta { margin: 0; }

/* Inline definition list on cards: label above value, side by side. */
.cm-shop .cm-shop-dl.cm-shop-dl--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	border: 0;
}

.cm-shop .cm-shop-dl.cm-shop-dl--inline > .cm-shop-dl-row { display: grid; gap: 2px; }

.cm-shop .cm-shop-dl.cm-shop-dl--inline dt,
.cm-shop .cm-shop-dl.cm-shop-dl--inline dd { padding: 0; border: 0; text-align: left; }

.cm-shop .cm-shop-dl.cm-shop-dl--inline dt {
	color: var(--cm26-stone);
	font-family: var(--cm26-font-display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.cm-shop .cm-shop-dl.cm-shop-dl--inline dd { color: var(--cm26-ink); font-size: 16px; font-weight: 600; }

/* Change plan. */
.cm-shop .cm-shop-switch-list { display: grid; gap: 12px; }

.cm-shop .cm-shop-switch-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	padding: 16px 18px;
	border: 1.5px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-paper);
}

.cm-shop .cm-shop-switch-item--upgrade { border-color: #e6c9c4; background: linear-gradient(90deg, var(--cm26-tint), var(--cm26-paper) 70%); }
.cm-shop .cm-shop-switch-info { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.cm-shop .cm-shop-switch-name { font-size: 16.5px; }
.cm-shop .cm-shop-switch-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--cm26-ink); font-weight: 700; }

.cm-shop .cm-shop-switch-dir {
	padding: 2px 8px;
	border-radius: var(--cm26-radius-tag);
	background: var(--cm26-sand);
	color: var(--cm26-body);
	font-family: var(--cm26-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cm-shop .cm-shop-switch-item--upgrade .cm-shop-switch-dir { background: var(--cm26-brand-ink); color: var(--cm26-on-brand); }

.cm-shop .cm-shop-feature-list { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.cm-shop .cm-shop-feature-list li { color: var(--cm26-body); font-size: 13.5px; }
.cm-shop .cm-shop-feature-list li::before { content: "\2713"; margin-right: 6px; color: var(--cm26-brand-ink); font-weight: 700; }

/* Billing history table. */
.cm-shop .cm-shop-table-wrap { overflow-x: auto; }

.cm-shop table.cm-shop-table th,
.cm-shop table.cm-shop-table td {
	padding: 12px 14px 12px 0;
	border-bottom: 1px solid var(--cm26-line);
	font-size: 15px;
	text-align: left;
	vertical-align: top;
}

.cm-shop table.cm-shop-table thead th {
	color: var(--cm26-stone);
	font-family: var(--cm26-font-display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.cm-shop table.cm-shop-table tbody tr:last-child td,
.cm-shop table.cm-shop-table tbody tr:last-child th { border-bottom: 0; }
.cm-shop .cm-shop-table-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }

@media (max-width: 639.98px) {
	.cm-shop table.cm-shop-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--cm26-line); }
	.cm-shop table.cm-shop-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
	.cm-shop table.cm-shop-table td::before { content: attr(data-title); color: var(--cm26-stone); font-weight: 600; text-align: left; }
}

/* Dashboard. */
.cm-shop .cm-shop-dash { display: grid; gap: 28px; }
.cm-shop .cm-shop-dash-hello { color: var(--cm26-body); font-size: 16px; max-width: 64ch; }
.cm-shop .cm-shop-dash-subs { display: grid; gap: 14px; }
.cm-shop .cm-shop-dash-title { font-size: 18px; }
.cm-shop .cm-shop-dash-more { font-size: 14.5px; font-weight: 600; }

.cm-shop .cm-shop-dash-links ul { display: grid; gap: 12px; }
@media (min-width: 640px) { .cm-shop .cm-shop-dash-links ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cm-shop .cm-shop-dash-links a.cm-shop-dash-link {
	display: grid;
	gap: 4px;
	height: 100%;
	padding: 18px;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	color: inherit;
	text-decoration: none;
	transition: border-color .2s var(--cm26-ease);
}

.cm-shop .cm-shop-dash-links a.cm-shop-dash-link:hover { border-color: #cdbfb3; }
.cm-shop .cm-shop-dash-link-title { color: var(--cm26-ink); font-family: var(--cm26-font-display); font-size: 15.5px; font-weight: 700; }
.cm-shop .cm-shop-dash-links a.cm-shop-dash-link:hover .cm-shop-dash-link-title { color: var(--cm26-brand-ink); }
.cm-shop .cm-shop-dash-link-text { color: var(--cm26-body); font-size: 14px; line-height: 1.5; }

.cm-shop .cm-shop-empty-title { font-size: 20px; }

/* Account forms (edit account / addresses). */
.cm-shop .woocommerce-EditAccountForm,
.cm-shop .woocommerce-address-fields { display: grid; gap: 16px; max-width: 720px; }

.cm-shop .woocommerce-EditAccountForm fieldset {
	display: grid;
	gap: 16px;
	margin: 8px 0 0;
	padding: 20px;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
}

.cm-shop .woocommerce-EditAccountForm fieldset legend { padding: 0 6px; }
.cm-shop .woocommerce-EditAccountForm .form-row-first,
.cm-shop .woocommerce-EditAccountForm .form-row-last { grid-column: auto; }
.cm-shop .woocommerce-EditAccountForm .clear { display: none; }

.cm-shop .woocommerce-Addresses { display: grid; gap: 20px; }
@media (min-width: 720px) { .cm-shop .woocommerce-Addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cm-shop .woocommerce-Address { padding: 20px; border: 1px solid var(--cm26-line); border-radius: var(--cm26-radius-card); background: var(--cm26-card); }
.cm-shop .woocommerce-Address-title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cm-shop .woocommerce-Address address { font-style: normal; line-height: 1.6; }

/* Saved payment methods table. */
.cm-shop .woocommerce-MyAccount-paymentMethods { border: 1px solid var(--cm26-line); border-radius: var(--cm26-radius-card); border-collapse: separate; overflow: hidden; background: var(--cm26-card); }
.cm-shop .woocommerce-MyAccount-paymentMethods th,
.cm-shop .woocommerce-MyAccount-paymentMethods td { padding: 12px 16px; border-bottom: 1px solid var(--cm26-line); font-size: 15px; }
.cm-shop .woocommerce-MyAccount-paymentMethods .button { min-height: 36px; padding: 0 12px; font-size: 13.5px; }

/* Pagination for orders. */
.cm-shop .woocommerce-pagination { display: flex; gap: 10px; }

/* ===========================================================================
   DIALOGS (<dialog class="cm-shop-dialog">, driven by cm-shop.js)
   =========================================================================== */

.cm-shop-dialog {
	width: min(480px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	color: var(--cm26-ink);
	box-shadow: var(--cm26-shadow-float);
	overflow: auto;
}

.cm-shop-dialog::backdrop { background: rgba(38, 36, 35, .48); backdrop-filter: blur(2px); }

.cm-shop-dialog[open] { animation: cm-shop-dialog-in .22s var(--cm26-ease) both; }

@keyframes cm-shop-dialog-in {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.cm-shop-dialog-inner { display: grid; gap: 12px; padding: clamp(22px, 4vw, 30px); }

.cm-shop-dialog .cm-shop-dialog-title {
	margin: 0;
	padding: 0;
	font-family: var(--cm26-font-display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.018em;
	color: var(--cm26-ink);
	text-transform: none;
}

.cm-shop-dialog .cm-shop-dialog-body { margin: 0; color: var(--cm26-body); font-size: 15.5px; line-height: 1.6; }
.cm-shop-dialog .cm-shop-dialog-body p { margin: 0 0 10px; }

.cm-shop-dialog .cm-shop-dialog-actions {
	display: flex;
	flex-wrap: wrap-reverse;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 12px;
}

.cm-shop-dialog.is-danger .cm-shop-dialog-confirm { background: var(--cm26-error); border-color: var(--cm26-error); color: #fff; } /* 7.4:1 */
.cm-shop-dialog.is-danger .cm-shop-dialog-confirm:hover { background: #861b14; border-color: #861b14; color: #fff; }
.cm-shop-dialog.is-danger .cm-shop-dialog-confirm::after { content: none; }

@media (max-width: 479.98px) {
	.cm-shop-dialog .cm-shop-dialog-actions > * { flex: 1 1 100%; }
}

/* ===========================================================================
   PLANS SECTION (software single, #pricing)
   Speaks the software page's language: --sw-* tones, square-ish corners,
   the 3px top rule from .cm-sw-plan.
   =========================================================================== */

.cm-shop-plans .cm-shop-plans-head {
	display: grid;
	gap: 12px 48px;
	align-items: end;
	margin-bottom: clamp(28px, 4vw, 44px);
}

@media (min-width: 900px) {
	.cm-shop-plans .cm-shop-plans-head { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
}

.cm-sw .cm-shop-plans .cm-sw-h2--sm { margin-bottom: 0; }

.cm-shop-plans .cm-shop-plans-lede {
	color: var(--sw-muted, var(--cm26-body));
	font-size: 15.5px;
	line-height: 1.65;
}

.cm-shop-plans .cm-shop-plan-grid {
	display: grid;
	gap: 20px;
	align-items: stretch;
}

@media (min-width: 720px) {
	.cm-shop-plans .cm-shop-plan-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
	.cm-shop-plans .cm-shop-plan-grid[data-count="3"],
	.cm-shop-plans .cm-shop-plan-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
	.cm-shop-plans .cm-shop-plan-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cm-shop-plans .cm-shop-plan-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cm-shop-plans .cm-shop-plan-grid[data-count="1"] { max-width: 480px; }

.cm-shop-plans .cm-shop-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 30px clamp(22px, 2.4vw, 30px) 26px;
	border: 1px solid var(--sw-rule, var(--cm26-line));
	border-top: 3px solid var(--sw-rule, var(--cm26-line));
	background: #fffdfb;
	transition: box-shadow .3s var(--cm26-ease), transform .3s var(--cm26-ease);
}

.cm-shop-plans .cm-shop-plan:hover { box-shadow: 0 24px 40px -34px rgba(38, 36, 35, .5); }

.cm-shop-plans .cm-shop-plan.is-featured {
	border-top-color: var(--sw-brick, var(--cm26-brand-ink));
	background: linear-gradient(180deg, var(--sw-plate-2, var(--cm26-tint)) 0, #fffdfb 180px);
	box-shadow: 0 28px 48px -32px rgba(38, 36, 35, .55);
}

@media (min-width: 1080px) {
	.cm-shop-plans .cm-shop-plan.is-featured { transform: translateY(-10px); }
}

.cm-shop-plans .cm-shop-plan-ribbon {
	position: absolute;
	top: -3px;
	right: 22px;
	padding: 7px 12px 6px;
	background: var(--sw-brick, var(--cm26-brand-ink));
	color: #fff;
	font-family: var(--cm26-font-display);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1;
	text-transform: uppercase;
}

.cm-shop-plans .cm-shop-plan-head { display: grid; align-content: start; gap: 6px; min-height: 64px; }

.cm-shop-plans .cm-shop-plan-name {
	font-size: clamp(19px, 1.5vw, 22px);
	letter-spacing: -.018em;
	color: var(--sw-ink, var(--cm26-ink));
}

.cm-shop-plans .cm-shop-plan-tagline {
	color: var(--sw-muted, var(--cm26-body));
	font-size: 14px;
	line-height: 1.5;
}

/* The numeral. */
.cm-shop-plans .cm-shop-price {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin: 18px 0 22px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--sw-rule, var(--cm26-line));
	color: var(--sw-ink, var(--cm26-ink));
}

.cm-shop-plans .cm-shop-price-fig {
	display: inline-flex;
	align-items: flex-start;
	font-family: var(--cm26-font-display);
	font-weight: 800;
	font-variant-numeric: tabular-nums lining-nums;
	line-height: .86;
	letter-spacing: -.045em;
}

.cm-shop-plans .cm-shop-price-num { font-size: clamp(54px, 5.4vw, 72px); }

.cm-shop-plans .cm-shop-price-cur,
.cm-shop-plans .cm-shop-price-dec {
	margin-top: .12em;
	font-size: clamp(22px, 2vw, 28px);
	letter-spacing: -.02em;
}

.cm-shop-plans .cm-shop-price-cur { margin-right: 3px; color: var(--sw-tone, var(--cm26-brand-ink)); }

.cm-shop-plans .cm-shop-price-per {
	margin-bottom: 4px;
	color: var(--sw-muted, var(--cm26-stone));
	font-size: 14px;
	font-weight: 500;
}

.cm-shop-plans .cm-shop-plan-features {
	display: grid;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.cm-shop-plans .cm-shop-plan-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--sw-ink, var(--cm26-ink));
	font-size: 14.5px;
	line-height: 1.5;
}

.cm-shop-plans .cm-shop-tick {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	padding: 3px;
	border-radius: 999px;
	background: var(--sw-plate, var(--cm26-tint));
	color: var(--sw-tone-strong, var(--cm26-brand-ink));
	stroke-width: 3;
}

.cm-shop-plans .cm-shop-plan-form {
	display: grid;
	gap: 14px;
	margin-top: auto;
}

/* Training add-on. */
.cm-shop-plans .cm-shop-addon {
	position: relative;
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	grid-template-areas:
		"box name"
		"box about"
		"box price";
	gap: 2px 12px;
	padding: 14px 14px 14px 12px;
	border: 1.5px dashed var(--sw-edge, var(--cm26-input-border));
	border-radius: var(--cm26-radius-sm);
	background: transparent;
	cursor: pointer;
	transition: border-color .18s var(--cm26-ease), background-color .18s var(--cm26-ease);
}

.cm-shop-plans .cm-shop-addon:hover { border-color: var(--sw-tone, var(--cm26-input-hover)); }

.cm-shop-plans .cm-shop-addon:has(input:checked) {
	border-style: solid;
	border-color: var(--sw-brick, var(--cm26-brand-ink));
	background: var(--cm26-tint);
}

.cm-shop-plans .cm-shop-addon-input {
	position: absolute;
	width: 22px;
	height: 22px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.cm-shop-plans .cm-shop-addon-box {
	grid-area: box;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 1.5px solid var(--cm26-input-border);
	border-radius: 6px;
	background: var(--cm26-card);
	color: transparent;
	transition: background-color .15s var(--cm26-ease), border-color .15s var(--cm26-ease), color .15s var(--cm26-ease);
}

.cm-shop-plans .cm-shop-addon-box svg { stroke-width: 3; }

.cm-shop-plans .cm-shop-addon-input:checked + .cm-shop-addon-box {
	border-color: var(--sw-brick, var(--cm26-brand-ink));
	background: var(--sw-brick, var(--cm26-brand-ink));
	color: #fff;
}

.cm-shop-plans .cm-shop-addon-input:focus-visible + .cm-shop-addon-box {
	outline: 3px solid var(--cm26-brand-ink);
	outline-offset: 2px;
}

.cm-shop-plans .cm-shop-addon-text { display: contents; }

.cm-shop-plans .cm-shop-addon-name {
	grid-area: name;
	color: var(--sw-ink, var(--cm26-ink));
	font-family: var(--cm26-font-display);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
}

.cm-shop-plans .cm-shop-addon-about {
	grid-area: about;
	color: var(--sw-muted, var(--cm26-body));
	font-size: 13px;
	line-height: 1.5;
}

.cm-shop-plans .cm-shop-addon-price {
	grid-area: price;
	margin-top: 4px;
	color: var(--sw-tone-strong, var(--cm26-brand-ink));
	font-family: var(--cm26-font-display);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cm-shop-plans .cm-shop-addon-more { margin-top: -6px; font-size: 13px; }

.cm-shop-plans .cm-shop-addon-more summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	color: var(--sw-tone-strong, var(--cm26-brand-ink));
	font-family: var(--cm26-font-display);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.cm-shop-plans .cm-shop-addon-more summary::-webkit-details-marker { display: none; }

.cm-shop-plans .cm-shop-addon-more summary::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid;
	border-bottom: 1.5px solid;
	transform: translateY(-2px) rotate(45deg);
}

.cm-shop-plans .cm-shop-addon-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }

.cm-shop-plans .cm-shop-addon-more ul { display: grid; gap: 6px; margin: 4px 0 0; padding: 0 0 0 2px; list-style: none; }

.cm-shop-plans .cm-shop-addon-more li {
	position: relative;
	padding-left: 16px;
	color: var(--sw-muted, var(--cm26-body));
	line-height: 1.5;
}

.cm-shop-plans .cm-shop-addon-more li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .62em;
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: var(--sw-coral, var(--cm26-brand));
}

/* Subscribe button: label left, what is due today right. */
.cm-sw .cm-shop-plans .cm-shop-plan-cta {
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	padding: 0 20px;
	cursor: pointer;
}

.cm-shop-plans .cm-shop-plan-cta-label { font-weight: 700; }

.cm-shop-plans .cm-shop-plan-cta-today {
	white-space: nowrap;
	font-size: 13.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	opacity: .88;
	transition: opacity .2s var(--cm26-ease);
}

.cm-shop-plans .cm-shop-plan-cta-today.is-changed { animation: cm-shop-tick .35s var(--cm26-ease); }

@keyframes cm-shop-tick {
	0%   { opacity: 0; transform: translateY(4px); }
	100% { opacity: .88; transform: none; }
}

.cm-shop-plans .cm-shop-plans-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin-top: clamp(24px, 3.4vw, 36px);
	padding-top: 22px;
	border-top: 1px solid var(--sw-rule, var(--cm26-line));
}

.cm-shop-plans .cm-shop-assure {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 0;
	padding: 0;
	border: 0;
}

.cm-shop-plans .cm-shop-assure li { color: var(--sw-ink, var(--cm26-ink)); font-size: 14px; font-weight: 500; }

.cm-shop-plans .cm-shop-plans-note {
	flex: 1 0 100%;
	margin: 0;
	color: var(--sw-ink, var(--cm26-ink));
	font-size: 15px;
	font-weight: 600;
}

.cm-shop-plans .cm-shop-plans-demo { color: var(--sw-muted, var(--cm26-body)); font-size: 14.5px; }
.cm-shop-plans .cm-shop-linkbtn { color: var(--sw-brick, var(--cm26-brand-ink)); }

/* "Optional" chip on the training add-on. */
.cm-shop-plans .cm-shop-addon-opt {
	display: inline-block;
	margin-left: 6px;
	padding: 3px 7px 2px;
	border: 1px solid var(--sw-edge, var(--cm26-line));
	border-radius: 999px;
	background: var(--cm26-card);
	color: var(--sw-muted, var(--cm26-body));
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
	vertical-align: 2px;
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Single plan: one wide offer in two panels. Left sells (name, numeral,
   terms, optional training, Subscribe); right proves (everything included).
   Stacks under 900px with the sell panel first.
   ------------------------------------------------------------------------ */

.cm-shop-plans .cm-shop-offer {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid var(--sw-rule, var(--cm26-line));
	border-top: 3px solid var(--sw-brick, var(--cm26-brand-ink));
	background: #fffdfb;
	box-shadow: 0 28px 48px -36px rgba(38, 36, 35, .55);
}

@media (min-width: 900px) {
	.cm-shop-plans .cm-shop-offer { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.cm-shop-plans .cm-shop-offer-main {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	padding: clamp(26px, 3.4vw, 44px) clamp(20px, 3.2vw, 44px);
}

.cm-shop-plans .cm-shop-offer .cm-shop-plan-head { min-height: 0; }

.cm-shop-plans .cm-shop-offer .cm-shop-plan-name { font-size: clamp(22px, 2vw, 28px); }

.cm-shop-plans .cm-shop-offer .cm-shop-plan-tagline { font-size: 15px; max-width: 34ch; }

.cm-shop-plans .cm-shop-offer .cm-shop-price {
	margin: 22px 0 8px;
	padding-bottom: 0;
	border-bottom: 0;
}

.cm-shop-plans .cm-shop-offer .cm-shop-price-num { font-size: clamp(64px, 7vw, 92px); }

.cm-shop-plans .cm-shop-offer .cm-shop-price-per { margin-bottom: 8px; font-size: 16px; }

.cm-shop-plans .cm-shop-offer-terms {
	margin: 0 0 24px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--sw-rule, var(--cm26-line));
	color: var(--sw-muted, var(--cm26-body));
	font-size: 14.5px;
	font-weight: 500;
}

.cm-shop-plans .cm-shop-offer .cm-shop-plan-form { margin-top: 0; }

.cm-shop-plans .cm-shop-offer-demo {
	margin-top: 16px;
	color: var(--sw-muted, var(--cm26-body));
	font-size: 14.5px;
	text-align: center;
}

.cm-shop-plans .cm-shop-offer-side {
	display: flex;
	flex-direction: column;
	gap: 26px;
	min-width: 0;
	padding: clamp(26px, 3.4vw, 44px) clamp(20px, 3.2vw, 44px);
	border-top: 1px solid var(--sw-rule, var(--cm26-line));
	background: var(--sw-plate-2, var(--cm26-tint));
}

/* Side by side the sell panel is the taller one: centre the proof panel
   in it so the spare height splits above and below instead of pooling. */
@media (min-width: 900px) {
	.cm-shop-plans .cm-shop-offer-side { justify-content: center; border-top: 0; border-left: 1px solid var(--sw-rule, var(--cm26-line)); }
}

.cm-shop-plans .cm-shop-offer-side-title {
	color: var(--sw-tone-strong, var(--cm26-brand-ink));
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.cm-shop-plans .cm-shop-offer-side-title + .cm-shop-offer-features { margin-top: -10px; }

.cm-shop-plans .cm-shop-offer-features {
	gap: 14px 28px;
	margin: 0;
}

@media (min-width: 640px) {
	.cm-shop-plans .cm-shop-offer-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) and (max-width: 1079.98px) {
	.cm-shop-plans .cm-shop-offer-features { grid-template-columns: minmax(0, 1fr); }
}

.cm-shop-plans .cm-shop-offer-features li { font-size: 15px; }

.cm-shop-plans .cm-shop-offer-features .cm-shop-tick { background: var(--cm26-card); }

.cm-shop-plans .cm-shop-offer-side .cm-shop-assure {
	gap: 8px 22px;
	margin-top: 4px;
	padding-top: 20px;
	border-top: 1px solid var(--sw-edge, var(--cm26-line));
}

.cm-shop-plans .cm-shop-offer-side .cm-shop-assure li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }

/* Already subscribed: a quiet status line in place of Subscribe (the banner
   above carries the one link to the account). */
.cm-shop-plans .cm-shop-offer .cm-shop-offer-held {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--sw-ink, var(--cm26-ink));
	font-size: 15px;
	font-weight: 600;
}

.cm-shop-plans .cm-shop-offer .cm-shop-offer-held svg { flex: 0 0 auto; color: var(--sw-tone, var(--cm26-brand-ink)); }

/* Hero price line on a software single with plans on sale. */
.cm-sw .cm-sw-hero-price {
	margin: 18px 0 0;
	color: var(--sw-muted, var(--cm26-body));
	font-size: 15px;
	line-height: 1.55;
}

.cm-sw .cm-sw-hero-price strong {
	color: var(--sw-ink, var(--cm26-ink));
	font-family: var(--cm26-font-display);
	font-size: 17px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.cm-sw .cm-sw-hero-price a {
	color: var(--sw-brick, var(--cm26-brand-ink));
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cm-sw .cm-sw-hero-price a:hover { color: var(--sw-brick-hover, var(--cm26-brand-hover)); text-decoration-thickness: 2px; }

.cm-sw .cm-sw-hero-price a:focus-visible { outline: 3px solid var(--cm26-brand-ink); outline-offset: 3px; }

/* ===========================================================================
   FOCUS + MOTION
   =========================================================================== */

.cm-shop :focus-visible,
.cm-shop-plans :focus-visible,
.cm-shop-dialog :focus-visible {
	outline: 3px solid var(--cm26-brand-ink);
	outline-offset: 3px;
}

.cm-shop input:focus-visible,
.cm-shop select:focus-visible,
.cm-shop textarea:focus-visible { outline: none; }

@media (forced-colors: active) {
	.cm-shop input:focus,
	.cm-shop select:focus,
	.cm-shop textarea:focus { outline: 2px solid Highlight; outline-offset: 1px; }
	.cm-shop .cm-shop-totals tr.order-total::before,
	.cm-shop .cm-shop-totals tr.cm-shop-recurring-row::before { forced-color-adjust: none; background: CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
	.cm-shop .cm-shop-confirm-badge,
	.cm-shop .cm-shop-confirm-badge::after,
	.cm-shop-plans .cm-shop-plan-cta-today.is-changed,
	.cm-shop-dialog[open] { animation: none; }

	.cm-shop .cm-shop-confirm-badge::after { opacity: 0; }

	.cm-shop-plans .cm-shop-plan,
	.cm-shop-plans .cm-shop-offer,
	.cm-shop-plans .cm-shop-addon,
	.cm-shop-plans .cm-shop-addon-box,
	.cm-shop a.cm-shop-sub-card,
	.cm-shop .button,
	.cm-shop #payment ul.payment_methods li.wc_payment_method,
	.cm-shop .cm-shop-coupon summary::after { transition: none; }

	.cm-shop-plans .cm-shop-plan.is-featured,
	.cm-shop a.cm-shop-sub-card:hover { transform: none; }
}

/* ===========================================================================
   RECOVERY + DISCLOSURE (fix stage)
   =========================================================================== */

/* Auto-renewal terms directly above "Start subscription". */
.cm-shop #payment .cm-shop-renewal-terms {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius);
	background: var(--cm26-sand);
	color: var(--cm26-prose);
	font-size: 14px;
	line-height: 1.55;
}
.cm-shop #payment .cm-shop-renewal-terms strong { font-weight: 700; }

/* Notices + "already subscribed" on the software page's #pricing section. */
.cm-shop-plans .cm-shop-plans-status { display: grid; gap: 12px; margin: 0 0 24px; }
.cm-shop-plans .cm-shop-plans-status .woocommerce-notices-wrapper > :last-child,
.cm-shop-plans .cm-shop-plans-status .woocommerce-error,
.cm-shop-plans .cm-shop-plans-status .woocommerce-info,
.cm-shop-plans .cm-shop-plans-status .woocommerce-message { margin-bottom: 0; }
.cm-shop .cm-shop-plans-held { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cm-shop .cm-shop-plans-held p { margin: 0; }
.cm-shop .cm-shop-alert--ok { border-left-color: var(--cm26-brand-ink); }

/* Alerts that carry a second line (contact details). */
.cm-shop .cm-shop-alert p { margin: 0; }
.cm-shop .cm-shop-alert p + p { margin-top: 6px; }
.cm-shop .cm-shop-alert a:not(.cm-btn) { color: inherit; font-weight: 600; text-decoration: underline; }

/* Thank-you: the step that needs the customer. */
.cm-shop .cm-shop-next-list > li.cm-shop-next-item--warn h3 { color: #8a5a12; }

/* ===========================================================================
   MY ACCOUNT — management layer (3.7.x)
   Signature carried over from checkout: the billing rail. On every plan card
   and the subscription overview a short rail runs from the last charge (filled
   dot) to the next one (hollow dot), filled up to today; an ending plan ends
   in a square, an overdue one turns red. The subscription page repeats it as a
   vertical billing timeline with a "Today" marker between past and future.
   =========================================================================== */

/* Section heads: title left, "All …" link right. */
.cm-shop .cm-shop-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.cm-shop .cm-shop-section-link { font-size: 14.5px; font-weight: 600; }
.cm-shop .cm-shop-dash-title { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -.018em; }
.cm-shop .cm-shop-count {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--cm26-sand);
	color: var(--cm26-body);
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.cm-shop .cm-shop-muted { color: var(--cm26-stone); }
.cm-shop .cm-shop-dash-hello { font-size: 15px; }
.cm-shop .cm-shop-dash-hello strong { color: var(--cm26-ink); font-weight: 600; }

/* --- Badges (what an order paid for; test mode; default card) ---------- */
.cm-shop .cm-shop-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.cm-shop-badge {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border: 1px solid var(--cm26-btn2-border);
	border-radius: var(--cm26-radius-tag);
	background: var(--cm26-card);
	color: var(--cm26-body);
	font-family: var(--cm26-font-display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1;
	white-space: nowrap;
}
.cm-shop-badge--first    { border-color: var(--cm26-ink); color: var(--cm26-ink); }
.cm-shop-badge--renewal  { border-color: #9fb3a5; background: #f1f6f2; color: #2b6239; }
.cm-shop-badge--change   { border-color: #e6c9c4; background: var(--cm26-tint); color: var(--cm26-brand-ink); }
.cm-shop-badge--training { border-color: #c8bfdc; background: #f5f2fb; color: #4f3f86; }
.cm-shop-badge--test,
.cm-shop-badge--default  { border-color: var(--cm26-line); background: var(--cm26-sand); color: var(--cm26-stone); }

/* --- Plan cards (dashboard + subscriptions list) ------------------------ */
.cm-shop .cm-shop-sub-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) {
	.cm-shop .cm-shop-sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-shop .cm-shop-sub-grid > li:only-child { grid-column: 1 / -1; }
}

.cm-shop .cm-shop-sub-card { padding: clamp(18px, 2.4vw, 24px); }
.cm-shop .cm-shop-sub-card > .cm-shop-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.cm-shop .cm-shop-sub-card > .cm-shop-card > .cm-shop-card-facts { margin-top: auto; }
.cm-shop .cm-shop-sub-card > .cm-shop-card > .cm-shop-card-cta { margin-top: 4px; }
.cm-shop .cm-shop-sub-card.is-past { box-shadow: none; background: transparent; }
.cm-shop .cm-shop-sub-card.is-past .cm-shop-card-price { color: var(--cm26-stone); }

.cm-shop .cm-shop-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cm-shop .cm-shop-card-title { font-size: 18px; letter-spacing: -.018em; }
.cm-shop .cm-shop-card-title a { color: inherit; text-decoration: none; }
.cm-shop .cm-shop-card-title a:hover { color: var(--cm26-brand-ink); text-decoration: underline; text-decoration-thickness: 2px; }

.cm-shop .cm-shop-card-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.cm-shop .cm-shop-card-price .cm-shop-per { font-family: var(--cm26-font-body); letter-spacing: 0; }
.cm-shop .cm-shop-card-price .cm-shop-badge { align-self: center; }
.cm-shop .cm-shop-card-summary { color: var(--cm26-body); font-size: 14.5px; line-height: 1.5; }

.cm-shop .cm-shop-card-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; padding-top: 12px; border-top: 1px solid var(--cm26-line); }
.cm-shop .cm-shop-card-facts > div { display: grid; gap: 2px; }
.cm-shop .cm-shop-card-facts dt,
.cm-shop .cm-shop-facts dt {
	color: var(--cm26-stone);
	font-family: var(--cm26-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.cm-shop .cm-shop-card-facts dd,
.cm-shop .cm-shop-facts dd { margin: 0; color: var(--cm26-ink); font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-shop .cm-shop-card-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Card brand word-mark (aria-hidden; the sr-only label carries the meaning). */
.cm-shop-brand {
	display: inline-flex;
	align-items: center;
	height: 20px;
	margin-right: 6px;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--cm26-ink);
	color: #fff;
	font-family: var(--cm26-font-display);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: 1px;
}
.cm-shop-brand--visa       { background: #1a1f71; }
.cm-shop-brand--mastercard { background: #2b2b2b; }
.cm-shop-brand--amex       { background: #1f5f8b; }
.cm-shop-brand--discover   { background: #8a4b08; }

/* --- The rail ----------------------------------------------------------- */
.cm-shop .cm-shop-rail { display: grid; gap: 7px; --cm-shop-rail-ink: var(--cm26-brand-ink); }
.cm-shop .cm-shop-rail--ending { --cm-shop-rail-ink: var(--cm26-stone); }
.cm-shop .cm-shop-rail--bad    { --cm-shop-rail-ink: var(--cm26-error); }

.cm-shop .cm-shop-rail-track {
	position: relative;
	height: 4px;
	margin: 6px 6px 0;
	border-radius: 999px;
	background: repeating-linear-gradient(90deg, var(--cm26-btn2-border) 0 4px, transparent 4px 8px);
	opacity: 1;
}
.cm-shop .cm-shop-rail-track::before,
.cm-shop .cm-shop-rail-track::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	transform: translate(-50%, -50%);
}
.cm-shop .cm-shop-rail-track::before { left: 0; background: var(--cm-shop-rail-ink); }
.cm-shop .cm-shop-rail-track::after { left: 100%; border: 2px solid var(--cm-shop-rail-ink); background: var(--cm26-card); }
.cm-shop .cm-shop-rail--ending .cm-shop-rail-track::after { border-radius: 2px; background: var(--cm26-stone); }

.cm-shop .cm-shop-rail-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--cm-shop-rail, 0%);
	border-radius: inherit;
	background: var(--cm-shop-rail-ink);
	transform-origin: left center;
	animation: cm-shop-rail-grow .9s var(--cm26-ease) .1s both;
}
.cm-shop .cm-shop-rail-now {
	position: absolute;
	top: 50%;
	left: var(--cm-shop-rail, 0%);
	width: 3px;
	height: 14px;
	border-radius: 2px;
	background: var(--cm-shop-rail-ink);
	box-shadow: 0 0 0 3px var(--cm26-card);
	transform: translate(-50%, -50%);
	animation: cm-shop-rail-fade .4s ease .7s both;
}
@keyframes cm-shop-rail-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes cm-shop-rail-fade { from { opacity: 0; } to { opacity: 1; } }

.cm-shop .cm-shop-rail-ends {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--cm26-stone);
	font-size: 12.5px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.cm-shop .cm-shop-rail-left { color: var(--cm26-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
	.cm-shop .cm-shop-rail-fill,
	.cm-shop .cm-shop-rail-now { animation: none; }
}

/* --- Dashboard: attention strip, payments, shortcuts -------------------- */
.cm-shop .cm-shop-attn { display: grid; gap: 10px; }
.cm-shop .cm-shop-attn-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.cm-shop .cm-shop-attn-item p { flex: 1 1 320px; color: var(--cm26-prose); }
.cm-shop .cm-shop-attn-item strong { color: var(--cm26-ink); }
.cm-shop .cm-shop-alert--bad.cm-shop-attn-item p { color: var(--cm26-error); }
.cm-shop .cm-shop-alert--bad.cm-shop-attn-item strong { color: inherit; }

.cm-shop .cm-shop-dash-orders,
.cm-shop .cm-shop-subs-group { display: grid; gap: 14px; }
.cm-shop .cm-shop-subs { gap: 32px; }

.cm-shop .cm-shop-paylist { display: grid; border: 1px solid var(--cm26-line); border-radius: var(--cm26-radius-card); background: var(--cm26-card); overflow: hidden; }
.cm-shop .cm-shop-paylist > li + li { border-top: 1px solid var(--cm26-line); }
.cm-shop a.cm-shop-payrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 120px 96px 88px;
	align-items: center;
	gap: 8px 18px;
	padding: 14px 18px;
	color: inherit;
	text-decoration: none;
	transition: background-color .15s var(--cm26-ease);
}
.cm-shop a.cm-shop-payrow:hover { background: var(--cm26-paper); }
.cm-shop a.cm-shop-payrow:hover .cm-shop-payrow-title { color: var(--cm26-brand-ink); text-decoration: underline; }
.cm-shop .cm-shop-payrow-main { display: grid; gap: 2px; min-width: 0; }
.cm-shop .cm-shop-payrow-title { overflow: hidden; color: var(--cm26-ink); font-family: var(--cm26-font-display); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cm-shop .cm-shop-payrow-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--cm26-stone); font-size: 13px; }
.cm-shop .cm-shop-payrow-badges { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cm-shop .cm-shop-payrow-total { color: var(--cm26-ink); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.cm-shop .cm-shop-payrow .cm-shop-pill { justify-self: end; }

@media (max-width: 639.98px) {
	.cm-shop a.cm-shop-payrow { grid-template-columns: minmax(0, 1fr) auto; }
	.cm-shop .cm-shop-payrow-badges { grid-column: 1; grid-row: 2; }
	.cm-shop .cm-shop-payrow-total { grid-column: 2; grid-row: 1; }
	.cm-shop .cm-shop-payrow .cm-shop-pill { grid-column: 2; grid-row: 2; }
}

.cm-shop .cm-shop-dash-links a.cm-shop-dash-link { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-content: start; }
.cm-shop .cm-shop-dash-link-icon {
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: var(--cm26-radius);
	background: var(--cm26-tint);
	color: var(--cm26-brand-ink);
}
.cm-shop .cm-shop-dash-link-text { overflow-wrap: anywhere; }

/* Empty states with a mark. */
.cm-shop .cm-shop-empty--hero { max-width: none; margin-inline: 0; background: linear-gradient(180deg, var(--cm26-tint), var(--cm26-card) 70%); }
.cm-shop .cm-shop-empty--hero p { max-width: 52ch; color: var(--cm26-body); }
.cm-shop .cm-shop-empty-mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--cm26-card); color: var(--cm26-brand-ink); box-shadow: var(--cm26-shadow-card); }
.cm-shop .cm-shop-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* --- Subscription page -------------------------------------------------- */
.cm-shop .cm-shop-overview { display: grid; gap: 16px; }
.cm-shop .cm-shop-overview-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.cm-shop .cm-shop-overview-id { display: grid; gap: 8px; }
.cm-shop .cm-shop-overview-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cm-shop .cm-shop-overview-price {
	color: var(--cm26-ink);
	font-family: var(--cm26-font-display);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.cm-shop .cm-shop-overview-price .cm-shop-per { font-family: var(--cm26-font-body); font-size: 14px; letter-spacing: 0; }
.cm-shop .cm-shop-overview-summary { color: var(--cm26-prose); font-size: 16px; }

.cm-shop .cm-shop-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 0; padding-top: 16px; border-top: 1px solid var(--cm26-line); }
.cm-shop .cm-shop-facts > div { display: grid; gap: 3px; min-width: 0; }
.cm-shop .cm-shop-facts dd { font-size: 15px; overflow-wrap: anywhere; }

/* Status banner. */
.cm-shop .cm-shop-banner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid #efdcb8;
	border-radius: var(--cm26-radius-card);
	background: #fdf7ec;
	color: var(--cm26-prose);
}
.cm-shop .cm-shop-banner--bad   { border-color: #e7c3bf; background: #fdf3f2; }
.cm-shop .cm-shop-banner--muted { border-color: var(--cm26-line); background: var(--cm26-sand); }
.cm-shop .cm-shop-banner-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: #f6e3bf; color: #7a4c06; }
.cm-shop .cm-shop-banner--bad .cm-shop-banner-icon { background: #f7d6d2; color: var(--cm26-error); }
.cm-shop .cm-shop-banner--muted .cm-shop-banner-icon { background: var(--cm26-card); color: var(--cm26-stone); }
.cm-shop .cm-shop-banner-body { display: grid; gap: 8px; justify-items: start; }
.cm-shop .cm-shop-banner-title { font-size: 17px; }
.cm-shop .cm-shop-banner--bad .cm-shop-banner-title { color: var(--cm26-error); }
.cm-shop .cm-shop-banner-body > p { max-width: 70ch; font-size: 15px; line-height: 1.55; }
.cm-shop .cm-shop-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.cm-shop .cm-shop-banner-actions:empty { display: none; }
.cm-shop .cm-shop-inline-form { display: contents; margin: 0; }

@media (max-width: 559.98px) {
	.cm-shop .cm-shop-banner { grid-template-columns: minmax(0, 1fr); }
	.cm-shop .cm-shop-banner-actions { display: grid; width: 100%; }
	.cm-shop .cm-shop-banner-actions .cm-btn { width: 100%; }
}

/* Manage. */
.cm-shop .cm-shop-manage-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .cm-shop .cm-shop-manage-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.cm-shop .cm-shop-manage-item { display: grid; align-content: start; justify-items: start; gap: 10px; padding: 18px; border: 1px solid var(--cm26-line); border-radius: var(--cm26-radius); background: var(--cm26-paper); }
.cm-shop .cm-shop-manage-title { font-size: 15.5px; }
.cm-shop .cm-shop-manage-text { color: var(--cm26-body); font-size: 14.5px; line-height: 1.5; }
.cm-shop .cm-shop-cardline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--cm26-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cm-shop .cm-shop-cardline .cm-shop-brand { margin-right: 0; }
.cm-shop .cm-shop-cardline-exp { color: var(--cm26-stone); font-size: 13.5px; font-weight: 500; }

/* Change plan: side-by-side comparison. */
.cm-shop .cm-shop-compare { display: grid; gap: 14px; }
@media (min-width: 760px) { .cm-shop .cm-shop-compare { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.cm-shop .cm-shop-compare-item {
	display: grid;
	grid-template-rows: auto auto auto auto 1fr auto auto;
	align-content: start;
	gap: 6px;
	padding: 18px;
	border: 1.5px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
}
.cm-shop .cm-shop-compare-item.is-current { border-style: dashed; border-color: var(--cm26-btn2-border); background: var(--cm26-paper); grid-template-rows: auto auto auto 1fr; }
.cm-shop .cm-shop-compare-item--upgrade { border-color: #e6c9c4; background: linear-gradient(180deg, var(--cm26-tint), var(--cm26-card) 120px); }
.cm-shop .cm-shop-compare-flag { color: var(--cm26-stone); font-family: var(--cm26-font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cm-shop .cm-shop-compare-item--upgrade .cm-shop-compare-flag { color: var(--cm26-brand-ink); }
.cm-shop .cm-shop-compare-name { font-size: 16.5px; }
.cm-shop .cm-shop-compare-price { color: var(--cm26-ink); font-family: var(--cm26-font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cm-shop .cm-shop-compare-price .cm-shop-per { font-family: var(--cm26-font-body); letter-spacing: 0; }
.cm-shop .cm-shop-compare-delta { color: var(--cm26-body); font-size: 13.5px; font-weight: 600; }
.cm-shop .cm-shop-compare-sub { margin-top: 6px; color: var(--cm26-ink); font-size: 13px; font-weight: 700; }
.cm-shop .cm-shop-feature-list.cm-shop-feature-list--stack { display: grid; align-content: start; gap: 4px; margin: 2px 0 0; }
.cm-shop .cm-shop-feature-list--stack li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px; line-height: 1.45; }
.cm-shop .cm-shop-feature-list--stack li::before { margin: 0; }
.cm-shop .cm-shop-feature-list--lose li::before { content: "\2212"; color: var(--cm26-stone); }
.cm-shop .cm-shop-compare-money { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--cm26-line); color: var(--cm26-body); font-size: 13.5px; line-height: 1.5; }
.cm-shop .cm-shop-compare-form { margin-top: 6px; justify-items: stretch; }
.cm-shop .cm-shop-compare-form .cm-btn { width: 100%; white-space: normal; text-align: center; }

/* Training add-on. */
.cm-shop .cm-shop-training-up { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; background: linear-gradient(120deg, #f5f2fb, var(--cm26-card) 55%); }
.cm-shop .cm-shop-training-up-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cm26-card); color: #4f3f86; box-shadow: var(--cm26-shadow-card); }
.cm-shop .cm-shop-training-up .cm-shop-panel-title { margin-bottom: 10px; }
.cm-shop .cm-shop-training-up .cm-shop-panel-lede { margin: 0 0 14px; }
@media (max-width: 559.98px) { .cm-shop .cm-shop-training-up { grid-template-columns: minmax(0, 1fr); } }

/* Billing timeline (vertical rail). */
.cm-shop .cm-shop-tl { position: relative; display: grid; gap: 0; margin: 0; padding: 0 0 0 26px; list-style: none; }
.cm-shop .cm-shop-tl::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 6px; width: 2px; background: var(--cm26-brand-ink); border-radius: 2px; }
.cm-shop .cm-shop-tl-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--cm26-line);
}
.cm-shop .cm-shop-tl-item:last-child { border-bottom: 0; }
.cm-shop .cm-shop-tl-dot { position: absolute; top: 15px; left: -26px; width: 14px; height: 14px; border-radius: 999px; background: var(--cm26-brand-ink); box-shadow: 0 0 0 3px var(--cm26-card); }
.cm-shop .cm-shop-tl-item.is-future .cm-shop-tl-dot { border: 2px solid var(--cm26-brand-ink); background: var(--cm26-card); }
.cm-shop .cm-shop-tl-item--ends .cm-shop-tl-dot,
.cm-shop .cm-shop-tl-item--end .cm-shop-tl-dot { border-radius: 3px; background: var(--cm26-stone); border-color: var(--cm26-stone); }
.cm-shop .cm-shop-tl-item--change .cm-shop-tl-dot { background: var(--cm26-card); border: 4px solid var(--cm26-brand-ink); }
.cm-shop .cm-shop-tl-label { color: var(--cm26-ink); font-family: var(--cm26-font-display); font-size: 15px; font-weight: 700; }
.cm-shop .cm-shop-tl-date { grid-column: 1; color: var(--cm26-stone); font-size: 13.5px; }
.cm-shop .cm-shop-tl-amount { grid-column: 2; grid-row: 1; color: var(--cm26-ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cm-shop .cm-shop-tl-link { grid-column: 2; grid-row: 2; justify-self: end; font-size: 13.5px; }
/* The future part of the rail is dashed. */
.cm-shop .cm-shop-tl-today { position: relative; z-index: 1; padding: 8px 0; }
.cm-shop .cm-shop-tl-today::after { content: ""; position: absolute; top: 50%; left: -20px; right: 0; border-top: 1px dashed var(--cm26-btn2-border); z-index: -1; }
.cm-shop .cm-shop-tl-today span {
	margin-left: -26px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--cm26-ink);
	color: var(--cm26-paper);
	font-family: var(--cm26-font-display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.cm-shop .cm-shop-tl-today ~ .cm-shop-tl-item::before { content: ""; position: absolute; top: 0; bottom: 0; left: -20px; width: 2px; background: var(--cm26-card) repeating-linear-gradient(180deg, var(--cm26-brand-ink) 0 4px, var(--cm26-card) 4px 8px); }

/* Receipts table additions. */
.cm-shop table.cm-shop-table .cm-shop-num { text-align: right; font-variant-numeric: tabular-nums; }
.cm-shop table.cm-shop-table td,
.cm-shop table.cm-shop-table th { vertical-align: middle; }

/* --- Orders list -------------------------------------------------------- */
.cm-shop table.cm-shop-orders td,
.cm-shop table.cm-shop-orders th { vertical-align: middle; }
.cm-shop table.cm-shop-orders tbody tr { transition: background-color .15s var(--cm26-ease); }
.cm-shop table.cm-shop-orders tbody tr:hover { background: var(--cm26-paper); }
.cm-shop table.cm-shop-orders tbody tr:last-child > * { border-bottom: 0; }
.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-order-number { display: table-cell; }
.cm-shop .cm-shop-orders-num { font-family: var(--cm26-font-display); font-weight: 700; }
.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-order-date { white-space: nowrap; }
.cm-shop .cm-shop-orders-items { display: block; max-width: 28ch; margin-top: 2px; color: var(--cm26-body); font-size: 13.5px; font-weight: 400; line-height: 1.4; }
.cm-shop .cm-shop-orders-sub { display: block; margin-top: 6px; font-size: 13.5px; }
.cm-shop .cm-shop-orders-total { display: block; color: var(--cm26-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cm-shop .cm-shop-orders-count { color: var(--cm26-stone); font-size: 13px; }
.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-order-actions { text-align: right; }

@media (max-width: 719.98px) {
	.cm-shop table.cm-shop-orders,
	.cm-shop table.cm-shop-orders tbody { display: block; border: 0; background: transparent; overflow: visible; }
	.cm-shop table.cm-shop-orders thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cm-shop table.cm-shop-orders tbody { display: grid; gap: 12px; }
	.cm-shop table.cm-shop-orders tbody tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 12px;
		padding: 16px;
		border: 1px solid var(--cm26-line);
		border-radius: var(--cm26-radius-card);
		background: var(--cm26-card);
		box-shadow: var(--cm26-shadow-card);
	}
	.cm-shop table.cm-shop-orders tbody tr > * { display: block; padding: 0; border: 0; text-align: left; }
	.cm-shop table.cm-shop-orders td::before { content: none; }
	.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-order-number { grid-column: 1; grid-row: 1; }
	.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-order-total { grid-column: 2; grid-row: 1; text-align: right; }
	.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-order-date { grid-column: 1; color: var(--cm26-stone); font-size: 13.5px; }
	.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-order-status { grid-column: 2; grid-row: 2; justify-self: end; }
	.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-cm-for { grid-column: 1 / -1; }
	.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-order-actions { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--cm26-line); }
	.cm-shop table.cm-shop-orders .woocommerce-orders-table__cell-order-actions .button { width: 100%; }
	.cm-shop .cm-shop-orders-items { max-width: none; }
}

/* --- View order (receipt) ----------------------------------------------- */
.cm-shop .cm-shop-receipt { display: grid; gap: 16px; }
.cm-shop .cm-shop-receipt-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; }
.cm-shop .cm-shop-receipt-eyebrow { color: var(--cm26-brand-ink); font-family: var(--cm26-font-display); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cm-shop .cm-shop-receipt-title { margin: 4px 0 10px; font-size: 22px; letter-spacing: -.02em; }
.cm-shop .cm-shop-receipt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cm-shop .cm-shop-receipt-total { display: grid; justify-items: end; gap: 2px; text-align: right; }
.cm-shop .cm-shop-receipt-total-label { color: var(--cm26-stone); font-family: var(--cm26-font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cm-shop .cm-shop-receipt-total-amount { color: var(--cm26-ink); font-family: var(--cm26-font-display); font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cm-shop .cm-shop-receipt-date { color: var(--cm26-stone); font-size: 13.5px; }
.cm-shop .cm-shop-receipt-status { padding-top: 14px; border-top: 1px dashed var(--cm26-btn2-border); color: var(--cm26-body); font-size: 14.5px; }
.cm-shop .cm-shop-receipt-status mark { background: none; color: var(--cm26-ink); font-weight: 600; }
.cm-shop .cm-shop-receipt-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cm-shop a.cm-shop-receipt-sub {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius);
	background: var(--cm26-paper);
	color: inherit;
	text-decoration: none;
	transition: border-color .15s var(--cm26-ease);
}
.cm-shop a.cm-shop-receipt-sub:hover { border-color: var(--cm26-btn2-border); }
.cm-shop a.cm-shop-receipt-sub:hover .cm-shop-receipt-sub-name { color: var(--cm26-brand-ink); text-decoration: underline; }
.cm-shop .cm-shop-receipt-sub-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--cm26-tint); color: var(--cm26-brand-ink); }
.cm-shop .cm-shop-receipt-sub > span:nth-child(2) { display: grid; }
.cm-shop .cm-shop-receipt-sub-label { color: var(--cm26-stone); font-size: 12px; }
.cm-shop .cm-shop-receipt-sub-name { color: var(--cm26-ink); font-family: var(--cm26-font-display); font-size: 14.5px; font-weight: 700; }
@media (max-width: 559.98px) {
	.cm-shop .cm-shop-receipt-total { justify-items: start; text-align: left; }
	.cm-shop a.cm-shop-receipt-sub { width: 100%; }
	.cm-shop .cm-shop-receipt-links .cm-btn { width: 100%; }
}

/* Order details table + billing address under the receipt. */
.cm-shop .woocommerce-MyAccount-content .woocommerce-order-details,
.cm-shop .woocommerce-MyAccount-content .woocommerce-customer-details {
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	box-shadow: var(--cm26-shadow-card);
}
.cm-shop .woocommerce-MyAccount-content table.shop_table.order_details { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.cm-shop .woocommerce-MyAccount-content table.shop_table.order_details th,
.cm-shop .woocommerce-MyAccount-content table.shop_table.order_details td { padding-inline: 0; }
.cm-shop .woocommerce-MyAccount-content table.shop_table.order_details thead th { background: transparent; color: var(--cm26-stone); font-size: 11.5px; }
.cm-shop .woocommerce-MyAccount-content table.shop_table.order_details tfoot tr:first-child > * { border-top: 1px solid var(--cm26-btn2-border); }
.cm-shop .woocommerce-MyAccount-content .woocommerce-customer-details address { padding: 0; border: 0; background: transparent; }
.cm-shop .woocommerce-MyAccount-content .wc-item-meta { margin: 4px 0 0; color: var(--cm26-stone); font-size: 13.5px; }
.cm-shop .woocommerce-MyAccount-content .wc-item-meta li { display: flex; flex-wrap: wrap; gap: 4px; }
.cm-shop .woocommerce-MyAccount-content .wc-item-meta p { margin: 0; }
.cm-shop .woocommerce-MyAccount-content .wc-item-meta strong { font-weight: 600; }
.cm-shop .cm-shop-notes .commentlist { display: grid; gap: 10px; }
.cm-shop .cm-shop-notes .meta { color: var(--cm26-stone); font-size: 13px; }

/* --- Payment methods ---------------------------------------------------- */
.cm-shop .cm-shop-pm-lede { margin: 0; }
.cm-shop .cm-shop-pm-list { display: grid; gap: 14px; border: 0; background: transparent; }
.cm-shop .cm-shop-pm > article {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 20px;
	padding: 18px;
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	box-shadow: var(--cm26-shadow-card);
}
.cm-shop .cm-shop-pm.is-default > article { border-color: var(--cm26-btn2-border); }
.cm-shop .cm-shop-pm-card {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	align-self: start;
	aspect-ratio: 1.586;
	padding: 12px 14px;
	border-radius: 10px;
	background: linear-gradient(135deg, #3c3c3c, #1d1b1a);
	color: #fff;
	font-family: var(--cm26-font-display);
	box-shadow: 0 10px 20px -12px #262423a6;
	overflow: hidden;
}
.cm-shop .cm-shop-pm-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.cm-shop .cm-shop-pm-card--visa       { background: linear-gradient(135deg, #2a3190, #141850); }
.cm-shop .cm-shop-pm-card--mastercard { background: linear-gradient(135deg, #3a3330, #151312); }
.cm-shop .cm-shop-pm-card--amex       { background: linear-gradient(135deg, #2577ad, #154a6e); }
.cm-shop .cm-shop-pm-chip { width: 26px; height: 19px; border-radius: 4px; background: linear-gradient(135deg, #e9d8a6, #b99a52); }
.cm-shop .cm-shop-pm-brand { position: absolute; top: 12px; right: 14px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cm-shop .cm-shop-pm-num { align-self: end; font-size: 15px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.cm-shop .cm-shop-pm-exp { font-size: 11px; opacity: .85; }
.cm-shop .cm-shop-pm-body { display: grid; align-content: start; gap: 12px; min-width: 0; }
.cm-shop .cm-shop-pm-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
.cm-shop .cm-shop-pm-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; }
.cm-shop .cm-shop-pm-meta > div { display: grid; gap: 2px; }
.cm-shop .cm-shop-pm-meta dt { color: var(--cm26-stone); font-family: var(--cm26-font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cm-shop .cm-shop-pm-meta dd { margin: 0; color: var(--cm26-ink); font-size: 14.5px; font-weight: 600; }
.cm-shop .cm-shop-pm-subs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cm-shop .cm-shop-pm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-shop .cm-shop-pm-actions:empty { display: none; }
.cm-shop .cm-shop-pm-lock { display: flex; align-items: flex-start; gap: 8px; color: var(--cm26-body); font-size: 13.5px; line-height: 1.5; }
.cm-shop .cm-shop-pm-lock svg { flex: 0 0 auto; margin-top: 2px; color: var(--cm26-stone); }
.cm-shop .cm-shop-pm-add { margin: 0; }
@media (max-width: 559.98px) {
	.cm-shop .cm-shop-pm > article { grid-template-columns: minmax(0, 1fr); }
	.cm-shop .cm-shop-pm-card { max-width: 220px; }
}

/* --- Addresses + account forms ------------------------------------------ */
.cm-shop .woocommerce-MyAccount-content > p:first-child { max-width: 64ch; }
.cm-shop .woocommerce-Address { display: grid; align-content: start; gap: 10px; box-shadow: var(--cm26-shadow-card); }
.cm-shop .woocommerce-Address-title { align-items: center; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--cm26-line); }
.cm-shop .woocommerce-Address-title h2 { font-size: 17px; }
.cm-shop .woocommerce-Address-title a.edit { font-size: 14px; font-weight: 600; }
.cm-shop .woocommerce-Address address { color: var(--cm26-prose); font-size: 15px; }

.cm-shop .woocommerce-MyAccount-content form.edit-account,
.cm-shop .woocommerce-MyAccount-content .woocommerce-address-fields,
.cm-shop .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--cm26-line);
	border-radius: var(--cm26-radius-card);
	background: var(--cm26-card);
	box-shadow: var(--cm26-shadow-card);
}
.cm-shop .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper { display: grid; gap: 16px; }
@media (min-width: 640px) {
	.cm-shop .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper,
	.cm-shop .woocommerce-MyAccount-content form.woocommerce-EditAccountForm { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
	.cm-shop .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row-wide,
	.cm-shop .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > :not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
}
.cm-shop .woocommerce-MyAccount-content .woocommerce-address-fields .form-row,
.cm-shop .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .form-row { width: auto; margin: 0; float: none; }
.cm-shop .woocommerce-MyAccount-content form.woocommerce-EditAccountForm fieldset legend { font-family: var(--cm26-font-display); font-weight: 700; color: var(--cm26-ink); }
.cm-shop .woocommerce-MyAccount-content form.woocommerce-EditAccountForm em { color: var(--cm26-stone); font-size: 13px; font-style: normal; }
.cm-shop .woocommerce-MyAccount-content .woocommerce-address-fields > p:last-child,
.cm-shop .woocommerce-MyAccount-content form.woocommerce-EditAccountForm > p:last-of-type { margin: 6px 0 0; }

/* Lost-password confirmation. */
.cm-shop .woocommerce-message + p,
.cm-shop .woocommerce-MyAccount-content .lost_reset_password ~ p { max-width: 60ch; color: var(--cm26-body); }

/* Focus ring for the account's custom links and rows (WCAG 2.4.7). */
.cm-shop a.cm-shop-payrow:focus-visible,
.cm-shop a.cm-shop-receipt-sub:focus-visible,
.cm-shop a.cm-shop-dash-link:focus-visible,
.cm-shop .cm-shop-card-title a:focus-visible,
.cm-shop .cm-shop-section-link:focus-visible,
.cm-shop .cm-shop-tl-link:focus-visible,
.cm-shop .cm-shop-nav a:focus-visible {
	outline: 2px solid var(--cm26-brand-ink);
	outline-offset: 2px;
	border-radius: var(--cm26-radius-sm);
}

/* Dialog extras: detail list + summary. */
.cm-shop-dialog .cm-shop-dialog-list { display: grid; gap: 6px; margin: 4px 0 10px; padding: 0; list-style: none; }
.cm-shop-dialog .cm-shop-dialog-list li { position: relative; padding-left: 22px; color: var(--cm26-prose); font-size: 15px; }
.cm-shop-dialog .cm-shop-dialog-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--cm26-brand-ink); font-weight: 700; }
.cm-shop-dialog .cm-shop-dialog-sum { display: grid; gap: 0; margin: 6px 0 12px; border: 1px solid var(--cm26-line); border-radius: var(--cm26-radius); overflow: hidden; }
.cm-shop-dialog .cm-shop-dialog-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; }
.cm-shop-dialog .cm-shop-dialog-sum > div + div { border-top: 1px solid var(--cm26-line); }
.cm-shop-dialog .cm-shop-dialog-sum > div:last-child { background: var(--cm26-sand); font-weight: 700; }
.cm-shop-dialog .cm-shop-dialog-sum dt { color: var(--cm26-stone); font-size: 14px; }
.cm-shop-dialog .cm-shop-dialog-sum dd { margin: 0; color: var(--cm26-ink); font-size: 14px; font-weight: 600; text-align: right; }
.cm-shop-dialog .cm-shop-dialog-note { color: var(--cm26-stone); font-size: 13px; }

/* Account form submits are the primary action on their page. */
.cm-shop .woocommerce-MyAccount-content button.button[name="save_account_details"],
.cm-shop .woocommerce-MyAccount-content button.button[name="save_address"],
.cm-shop form.lost_reset_password button.button[type="submit"] {
	border-color: var(--cm26-brand-ink);
	background: var(--cm26-brand-ink);
	color: var(--cm26-on-brand);
}
.cm-shop .woocommerce-MyAccount-content button.button[name="save_account_details"]:hover:not(:disabled),
.cm-shop .woocommerce-MyAccount-content button.button[name="save_address"]:hover:not(:disabled),
.cm-shop form.lost_reset_password button.button[type="submit"]:hover:not(:disabled) {
	border-color: var(--cm26-brand-hover);
	background: var(--cm26-brand-hover);
	color: var(--cm26-on-brand);
}
.cm-shop .cm-shop-attn-item a.cm-btn { text-decoration: none; }
