/**
 * Checkout (board SevaCheckout): the journey and heading, the three steps (an open step is a card; a
 * finished one folds to its summary with Edit; a later one is its title), the form fields, the schedule
 * cards with their date choice and time slot chips, the optional details as disclosure rows, the payment
 * methods, the terms and the pay button; "Your booking" beside from 1024px, a folding bar over the page
 * below. Mobile first; tokens only. Markup: woocommerce/checkout/*.php; behaviour: assets/js/checkout.js.
 * The booking summary rows and the soft "pay" box are cart.css's (.ms-summary__*).
 */

/* ---------- Page and layout ---------- */
.ms-copage {
	padding-block: var(--space-16) var(--section-y);
}

/* Below 1024px "Your booking" is a bar over the page, then the head and the steps (board 15, ledger 5b). */
.ms-co {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"aside"
		"head"
		"main";
	gap: var(--space-16);
	align-items: start;
}

/* Head: the title, and the top rail beside it from 768px. */
.ms-co-head {
	grid-area: head;
	display: flex;
	flex-direction: column;
	gap: var(--space-12) var(--space-24);
	min-width: 0;
}

.ms-co__journey {
	min-width: 0;
}

.ms-co__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--type-h1-compact-size);
	font-weight: 400;
	line-height: var(--type-h1-compact-lh);
	letter-spacing: var(--type-h1-compact-tracking);
	color: var(--text-primary);
}

/* The top rail shows a tick for Cart and plain dots after it: numbers live on the step cards only. Order
   received ticks all three (board 15). */
.ms-co-head .ms-journey__step .ms-journey__num,
.ms-rc__journey .ms-journey__step .ms-journey__num {
	position: relative;
	color: transparent;
}

.ms-co-head .ms-journey__step.is-current .ms-journey__num::after {
	content: "";
	position: absolute;
	inset: 0;
	width: var(--space-8);
	height: var(--space-8);
	margin: auto;
	border-radius: var(--radius-pill);
	background-color: var(--action-primary);
}

.ms-co-head .ms-journey__step.is-done .ms-journey__num::after,
.ms-rc__journey .ms-journey__step.is-done .ms-journey__num::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--text-on-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5L10 16.5L18 8'/%3E%3C/svg%3E") center / 60% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5L10 16.5L18 8'/%3E%3C/svg%3E") center / 60% no-repeat;
}

.ms-co__main {
	grid-area: main;
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	min-width: 0;
}

.ms-co__aside {
	grid-area: aside;
	min-width: 0;
}

@media (min-width: 768px) {
	.ms-co-head {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
	}
}

/* From 1024px: 1fr | 400px with a 48px gap; the card sticks only when the screen is 900px tall or more. */
@media (min-width: 1024px) {
	.ms-copage {
		padding-top: var(--space-24);
	}

	.ms-co {
		grid-template-columns: minmax(0, 1fr) 400px;
		grid-template-areas:
			"head head"
			"main aside";
		column-gap: var(--space-48);
		row-gap: var(--space-24);
	}
}

@media (min-width: 1024px) and (min-height: 900px) {
	.ms-co__aside {
		position: sticky;
		top: calc(var(--header-desktop, 72px) + var(--space-24));
	}
}

/* The offline note sits over the steps, quiet (D-127(10)). */
.ms-co-offline:not([hidden]) {
	display: flex;
	align-items: flex-start;
	gap: var(--space-8);
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
}

.ms-co__notices:empty {
	display: none;
}

.ms-co__notices,
.ms-co .woocommerce-NoticeGroup {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.ms-co__notices .ms-notice,
.ms-co .woocommerce-NoticeGroup .ms-notice {
	margin: 0;
}

/* The engine's notices inside WooCommerce's notice markup ("Payment interrupted"). */
.ms-co .ppb-notice-title {
	display: block;
	font-weight: 700;
	color: var(--text-primary);
}

.ms-co .ppb-notice-copy {
	display: block;
}

.ms-co .ppb-notice-help {
	display: inline-flex;
	margin-top: var(--space-4);
	font-weight: 600;
	color: var(--text-link);
}

/* ---------- Steps ----------
 * Separate cards 12px apart, numbered by a counter. The open step is the one raised white panel (D-112);
 * finished and later steps sit on the soft band. The disc: a maroon ring when open, a quiet outline when
 * later; a finished step shows the maroon tick instead. Tiro h3 open, h4 closed. */
.ms-co__steps {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	counter-reset: ms-step;
}

.ms-costep {
	counter-increment: ms-step;
	padding: 0 var(--space-16);
	border-radius: var(--radius-xl);
	background-color: var(--surface-soft);
}

.ms-costep__head {
	display: flex;
	align-items: center;
	gap: var(--space-16);
	min-height: 72px;
	padding: var(--space-16) 0;
}

.ms-costep__head::before {
	content: counter(ms-step);
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--border-control);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	color: var(--text-secondary);
	font-size: var(--type-label-size);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: var(--type-numeric);
}

.ms-costep__mark {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-pill);
	background-color: var(--action-primary);
	color: var(--text-on-primary);
}

.ms-costep__heading {
	flex: 1;
	min-width: 0;
}

.ms-costep__count {
	margin: 0 0 var(--space-2);
	font-size: var(--type-eyebrow-size);
	font-weight: 600;
	line-height: var(--type-meta-lh);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
	color: var(--text-secondary);
}

.ms-costep__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--type-h4-size);
	font-weight: 400;
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-costep__title:focus:not(:focus-visible) {
	outline: none;
}

.ms-costep__title:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-costep__later {
	display: none;
	margin: var(--space-2) 0 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	color: var(--text-secondary);
}

.ms-costep__summary {
	margin: var(--space-4) 0 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	color: var(--text-primary);
	overflow-wrap: anywhere;
}

.ms-costep__edit {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	min-width: var(--control-sm);
	min-height: var(--target-min);
	margin-block: calc(var(--space-12) * -1);
	padding: 0 var(--space-4);
	border: 0;
	background: transparent;
	color: var(--action-primary);
	font-family: var(--font-ui);
	font-size: var(--type-body-sm-size);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: text-decoration-color var(--duration-sm) var(--easing-standard), color var(--duration-sm) var(--easing-standard);
}

.ms-costep__edit:hover {
	text-decoration-color: currentColor;
}

.ms-costep__edit:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
	border-radius: var(--radius-xs);
}

.ms-costep__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	padding-bottom: var(--space-24);
}

/* The engine's review state holds hidden inputs only: no empty gap in the step. */
.ms-costep__body > #ppx-review-state {
	display: contents;
}

.ms-costep__lead {
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
	color: var(--text-body);
}

.ms-costep__next {
	margin-top: var(--space-4);
}

@media (min-width: 768px) {
	.ms-costep {
		padding: 0 var(--space-24);
	}
}

.ms-costep.is-open {
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-costep.is-open .ms-costep__head {
	padding-top: var(--space-24);
}

.ms-costep.is-open .ms-costep__head::before {
	border: 2px solid var(--action-primary);
	color: var(--action-primary);
}

.ms-costep.is-open .ms-costep__title {
	font-size: var(--type-h3-size);
	line-height: var(--type-h3-lh);
}

.ms-costep.is-done .ms-costep__head::before {
	display: none;
}

.ms-costep.is-done .ms-costep__mark {
	display: inline-flex;
}

.ms-costep.is-later .ms-costep__later {
	display: block;
}

/* With checkout.js, a folded step hides its body. */
.ms-co.is-enhanced .ms-costep:not(.is-open) .ms-costep__body {
	display: none;
}

/* Below 1024px the open step's button is pinned to the bottom of the screen (safe-area padding), and a
   focused field never sits under it. */
@media (max-width: 1023.98px) {
	.ms-co.is-enhanced .ms-costep.is-open .ms-costep__next {
		position: sticky;
		bottom: 0;
		z-index: 2;
		margin: 0;
		padding: var(--space-12) 0 calc(var(--space-12) + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--border-subtle);
		background-color: var(--surface-raised);
	}

	.ms-co.is-enhanced :is(input, select, textarea, .ms-errsum) {
		scroll-margin-bottom: 112px;
	}

	/* Nothing scrolled to sits under the "Your booking" bar at the top. */
	.ms-co.is-enhanced :is(.ms-costep, input, select, textarea, .ms-errsum, .woocommerce-NoticeGroup) {
		scroll-margin-top: 96px;
	}
}

/* ---------- Fields (WooCommerce's .form-row markup and the theme's own) ----------
   The one field family (components.css "Fields", v2 board 15 [1]-[4], ledger 5a): label 14/20/600 above,
   48px box, 16px words, 3:1 edge, maroon edge + ring on focus, hints 14/20, no stars (hidden in
   components.css; optional fields say "(optional)"). The error lines' type and icon
   are the shared ones. */
.ms-co-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-16);
}

@media (min-width: 640px) {
	.ms-co-fields--contact,
	.ms-co-fields--address,
	.ms-co-more__body.ms-co-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Contact: First | Last name, then WhatsApp number | Email (the last name is required, 7 Nov 2026).
	   Address (board 15): Country | State, City | PIN, then the two street lines full width. */
	.ms-co-fields--address #billing_address_1_field,
	.ms-co-fields--address #billing_address_2_field,
	.ms-co-field--wide {
		grid-column: 1 / -1;
	}

	.ms-co-more__body.ms-co-fields > .ms-co-field:nth-child(2) {
		grid-column: 1 / -1;
	}
}

.ms-co wc-order-attribution-inputs {
	display: none;
}

form.ms-co.checkout .form-row,
.ms-co-field {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	min-width: 0;
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
}

form.ms-co.checkout .form-row::before,
form.ms-co.checkout .form-row::after {
	content: none;
}

form.ms-co.checkout .form-row label,
.ms-co-label {
	margin: 0;
	font-size: var(--type-label-size);
	font-weight: 600;
	line-height: var(--type-label-lh);
	color: var(--text-primary);
}

.ms-co .form-row label .optional,
.ms-co-label__note {
	font-weight: 400;
	color: var(--text-secondary);
}

.ms-co-label--group {
	margin-bottom: 0;
}

.ms-co .woocommerce-input-wrapper {
	display: block;
	position: relative;
}

form.ms-co.checkout .form-row .input-text,
form.ms-co.checkout .form-row select,
form.ms-co.checkout .form-row textarea,
.ms-co-select {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: var(--control-md);
	padding: 0 var(--space-16);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-md);
	background-color: var(--surface-raised);
	color: var(--text-primary);
	font-family: var(--font-ui);
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-lh);
	box-shadow: none;
	transition: border-color var(--duration-xs) var(--easing-standard), background-color var(--duration-xs) var(--easing-standard);
}

@media (hover: hover) {
	form.ms-co.checkout .form-row .input-text:hover:not(:focus),
	form.ms-co.checkout .form-row select:hover:not(:focus),
	form.ms-co.checkout .form-row textarea:hover:not(:focus) {
		border-color: var(--text-secondary);
	}
}

.ms-co .form-row select,
.ms-co-select {
	appearance: none;
	padding-right: var(--space-40);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.75' 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 var(--space-16) center;
}

/* WooCommerce's address selects (country, state) keep the arrow board 15 draws: a 16px black chevron,
   8px from the edge. It came from woocommerce.css, which no longer loads (D-159). */
.ms-co .form-row select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-position: right var(--space-8) center;
	background-size: var(--icon-xs);
	cursor: pointer;
}

.ms-co .form-row textarea,
.ms-co-textarea {
	min-height: calc(var(--control-md) * 2.5);
	padding-block: var(--space-12);
	resize: vertical;
}

.ms-co .form-row .input-text:focus,
.ms-co .form-row select:focus,
.ms-co .form-row textarea:focus,
.ms-co .ms-input:focus {
	border-color: var(--action-primary);
}

.ms-co .form-row .input-text:focus-visible,
.ms-co .form-row select:focus-visible,
.ms-co .form-row textarea:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-co .input-text::placeholder,
.ms-co textarea::placeholder {
	color: var(--text-secondary);
	opacity: 1;
}

.ms-co .form-row .description,
.ms-co-help,
.ms-co-subnote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	color: var(--text-secondary);
}

/* WooCommerce draws a field's description as a blue tooltip shown on focus; the board shows it always,
   as a quiet line under the field. */
form.ms-co.checkout .form-row .woocommerce-input-wrapper .description,
form.ms-co.checkout .form-row .description {
	display: block !important;
	position: static;
	margin: var(--space-8) 0 0;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--text-secondary);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
}

form.ms-co.checkout .form-row .woocommerce-input-wrapper .description::before,
form.ms-co.checkout .form-row .description::before {
	content: none;
	display: none;
}

.ms-co-help--split {
	display: flex;
	justify-content: space-between;
	gap: var(--space-12);
}

.ms-co-count {
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}

/* Valid: WooCommerce's green border is not the board's; a filled field stays neutral. */
form.ms-co.checkout .form-row.woocommerce-validated .input-text,
form.ms-co.checkout .form-row.woocommerce-validated select {
	border-color: var(--border-control);
}

/* Invalid: WooCommerce's classes on the row; its inline message and the theme's own. */
form.ms-co.checkout .form-row.woocommerce-invalid .input-text,
form.ms-co.checkout .form-row.woocommerce-invalid select,
.ms-co .ms-input[aria-invalid="true"],
.ms-co .input-text[aria-invalid="true"] {
	border-color: var(--error-border);
	background-color: var(--error-fill);
}

.ms-co .form-row.woocommerce-invalid label {
	color: var(--text-primary);
}

/* Errors 8px under their field, inside WooCommerce's input wrapper (type, icon and motion: components.css). */
form.ms-co.checkout .form-row .checkout-inline-error-message {
	margin-top: var(--space-8);
}

/* Phone: the calling code before the number, read as one box (the code a quiet segment, board 15 [2]);
   the note and an error wrap under both. */
.ms-co-phone {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
}

.ms-co-phone > .input-text {
	flex: 1 1 0;
	width: auto;
}

.ms-co-phone > .description,
.ms-co-phone > .checkout-inline-error-message {
	flex: 0 0 100%;
	margin-top: var(--space-8);
}

.ms-co-dial {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	min-height: var(--control-md);
	padding: 0 var(--space-12) 0 var(--space-16);
	border: 1px solid var(--border-control);
	border-right: 0;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
	background-color: var(--surface-soft);
	color: var(--text-secondary);
	font-size: var(--type-body-lg-size);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

form.ms-co.checkout .ms-co-phone > .ms-co-dial:not(:empty):not([hidden]) + .input-text {
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.ms-co-dial:empty,
.ms-co-dial[hidden] {
	display: none;
}

.ms-co-address {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding-top: var(--space-24);
	border-top: 1px solid var(--border-subtle);
}

/* "Billing address" and "For your tax invoice" on one line. */
.ms-co-subrow {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-4) var(--space-12);
}

.ms-co-subhead {
	margin: 0;
	font-family: var(--font-ui);
	font-size: var(--type-body-sm-size);
	font-weight: 700;
	color: var(--text-primary);
}

.ms-co-details {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

/* Board 15 spacing above the first field and below the last: it came from woocommerce.css's
   clearfix boxes inside this flex column, which no longer load (P0-1). */
.woocommerce-billing-fields.ms-co-details {
	padding-block: var(--space-16);
}

/* A checkbox with its label (create an account, the terms). */
.ms-co-check {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	gap: var(--space-8) !important;
}

form.ms-co.checkout .ms-co-check input[type="checkbox"],
.ms-co-check input[type="checkbox"] {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin: 0;
	accent-color: var(--action-primary);
}

.ms-co-check label {
	font-size: var(--type-body-sm-size) !important;
	font-weight: 400 !important;
	line-height: var(--type-body-sm-lh);
	color: var(--text-body) !important;
	cursor: pointer;
}

.ms-co-required {
	font-weight: 600;
	color: var(--error-text);
}

.ms-co-account {
	padding-top: var(--space-4);
}

/* ---------- Schedule cards ----------
 * The pooja's own card inside the open step: the page band, its name (Tiro h4) inside its padding. */
.ms-co-svc {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	min-width: 0;
	margin: 0;
	padding: var(--space-16);
	border: 0;
	border-radius: var(--radius-md);
	background-color: var(--surface-page);
}

@media (min-width: 768px) {
	.ms-co-svc {
		padding: var(--space-20) var(--space-24);
	}
}

.ms-co-svc__name {
	float: left;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--font-display);
	font-size: var(--type-h4-size);
	font-weight: 400;
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-co-svc__name + * {
	clear: both;
}

.ms-co-svc__qty {
	font-family: var(--font-ui);
	font-size: var(--type-body-sm-size);
	color: var(--text-secondary);
}

.ms-co-svc__hint {
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	color: var(--text-body);
}

.ms-co-svc__hint[hidden],
.ms-co-field[hidden] {
	display: none;
}

/* "Choose a date" | "Coordinate with me" (stays and journeys), and the date chooser's radios without
   JavaScript: option cards with a radio dot. */
.ms-co-choice {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-8);
}

.ms-co-choice__opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--control-lg, 52px);
	padding: var(--space-8) var(--space-12);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-md);
	background-color: var(--surface-raised);
	font-size: var(--type-label-size);
	font-weight: 600;
	line-height: var(--type-label-lh);
	color: var(--text-primary);
	cursor: pointer;
	transition: border-color var(--duration-sm) var(--easing-standard), background-color var(--duration-sm) var(--easing-standard), box-shadow var(--duration-sm) var(--easing-standard);
}

.ms-co-choice__opt:hover {
	border-color: var(--action-primary);
}

.ms-co-choice__opt input,
.ms-co-slot input,
.ms-copay__method > input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.ms-co-choice__dot,
.ms-copay__dot {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--border-control);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	transition: border-color var(--duration-sm) var(--easing-standard);
}

.ms-co-choice__dot::after,
.ms-copay__dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: var(--radius-pill);
	background-color: var(--action-primary);
	transform: scale(0);
	transition: transform var(--duration-sm) var(--easing-out);
}

.ms-co-choice__opt:has(input:checked) {
	border-color: var(--action-primary);
	background-color: var(--surface-soft);
	box-shadow: inset 0 0 0 1px var(--action-primary);
}

.ms-co-choice__opt:has(input:checked) .ms-co-choice__dot,
.ms-copay__method > input:checked + .ms-copay__card .ms-copay__dot {
	border-color: var(--action-primary);
}

.ms-co-choice__opt:has(input:checked) .ms-co-choice__dot::after,
.ms-copay__method > input:checked + .ms-copay__card .ms-copay__dot::after {
	transform: scale(1);
}

.ms-co-choice__opt:has(input:focus-visible),
.ms-co-slot:has(input:focus-visible) span,
.ms-copay__method > input:focus-visible + .ms-copay__card {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-co-date {
	font-variant-numeric: tabular-nums;
}

/* ---------- Date chooser (board 15 ms-datepick; D-116(2), D-118 B, D-119(4)) ----------
 * "Preferred date · Optional" with "Help me choose" at the right edge, the hint, the Any date | Pick a
 * day chips, then the meaningful days as two-line tiles (name 14/20/600 over the date 12/18, a 3:1 edge;
 * the chosen day takes the soft band, a maroon edge and a tick) and "Another date". The engine's radios
 * stay in the form behind the chips (display: none still posts them). */
.ms-datepick {
	display: grid;
	gap: var(--space-12);
	min-width: 0;
}

.ms-datepick__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-4) var(--space-16);
}

.ms-datepick__label {
	display: inline-flex;
	align-items: baseline;
	gap: var(--space-8);
	margin: 0;
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
	color: var(--text-primary);
}

.ms-datepick__opt {
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-meta-lh);
	color: var(--text-secondary);
}

.ms-datepick__help {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--target-min);
	font-size: var(--type-label-size);
	font-weight: 600;
	line-height: var(--type-label-lh);
}

.ms-datepick__help > svg {
	flex-shrink: 0;
	width: var(--icon-xs);
	height: var(--icon-xs);
}

.ms-datepick__hint {
	margin: calc(var(--space-8) * -1) 0 0;
	font-size: var(--type-label-size);
	line-height: var(--type-label-lh);
	color: var(--text-secondary);
}

.ms-datepick__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
}

.ms-datepick__chips[hidden],
.ms-datepick__days[hidden],
.ms-co.is-enhanced .ms-datepick__modes {
	display: none;
}

.ms-datepick__days {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
	gap: var(--space-8);
}

.ms-datepick__day {
	position: relative;
	display: grid;
	gap: var(--space-2);
	min-height: var(--target-min);
	padding: var(--space-8) var(--space-40) var(--space-8) var(--space-12);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-sm);
	background-color: var(--surface-raised);
	color: var(--text-primary);
	font: inherit;
	text-align: start;
	cursor: pointer;
	transition: border-color var(--duration-sm) var(--easing-standard), background-color var(--duration-sm) var(--easing-standard);
}

.ms-datepick__day-name {
	font-size: var(--type-label-size);
	font-weight: 600;
	line-height: var(--type-label-lh);
}

.ms-datepick__day-when {
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-meta-lh);
	color: var(--text-secondary);
	font-variant-numeric: var(--type-numeric);
}

.ms-datepick__day > svg {
	position: absolute;
	top: 50%;
	right: var(--space-12);
	width: var(--icon-sm);
	height: var(--icon-sm);
	margin-top: calc(var(--icon-sm) / -2);
	color: var(--action-primary);
	opacity: 0;
	transition: opacity var(--duration-sm) var(--easing-standard);
}

.ms-datepick__day[aria-pressed="true"] {
	border-color: var(--action-primary);
	background-color: var(--surface-soft);
}

.ms-datepick__day[aria-pressed="true"] > svg {
	opacity: 1;
}

@media (hover: hover) {
	.ms-datepick__day:hover {
		border-color: var(--action-primary);
	}
}

.ms-datepick__day:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-datepick__other {
	grid-column: 1 / -1;
	max-width: 280px;
}

.ms-datepick__chosen:not([hidden]) {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	margin: 0;
	font-size: var(--type-label-size);
	line-height: var(--type-label-lh);
	color: var(--text-body);
}

.ms-datepick__chosen > svg {
	flex-shrink: 0;
	width: var(--icon-xs);
	height: var(--icon-xs);
	color: var(--status-success-mark);
}

@media (forced-colors: active) {
	.ms-datepick__day[aria-pressed="true"] {
		border-color: Highlight;
		outline: 2px solid Highlight;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-datepick__day,
	.ms-datepick__day > svg {
		transition: none;
	}
}

/* Time slot chips (IST, 2 hours). */
.ms-co-slots {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ms-co-slots > legend {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: var(--space-8);
}

.ms-co-slots > legend + * {
	clear: both;
}

.ms-co-slots__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
}

.ms-co-slot {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

/* Time slots: the 44px filter chip (board 15 [3]). */
.ms-co-slot span {
	display: inline-flex;
	align-items: center;
	min-height: var(--target-min);
	padding: 0 var(--space-16);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	font-size: var(--type-label-size);
	font-weight: 600;
	line-height: var(--type-label-lh);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--text-primary);
	transition: background-color var(--duration-sm) var(--easing-standard), border-color var(--duration-sm) var(--easing-standard), color var(--duration-sm) var(--easing-standard);
}

.ms-co-slot:hover span {
	border-color: var(--action-primary);
}

.ms-co-slot input:checked + span {
	border-color: var(--action-primary);
	background-color: var(--action-primary);
	color: var(--text-on-primary);
	font-weight: 600;
}

.ms-co-local {
	margin: 0;
	font-size: var(--type-caption-size);
	color: var(--text-body);
}

.ms-co-local[hidden] {
	display: none;
}

.ms-co-local strong {
	font-weight: 600;
	color: var(--text-primary);
}

.ms-co-saved {
	margin: 0;
	padding: var(--space-8) var(--space-12);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
	font-size: var(--type-caption-size);
	color: var(--text-body);
}

/* A date with its own rate (board 06). */
.ms-co-rate {
	display: flex;
	align-items: flex-start;
	gap: var(--space-8);
	margin: 0;
	padding: var(--space-8) var(--space-12);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	color: var(--text-body);
}

.ms-co-rate .ms-icon {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--icon-ritual);
}

.ms-co-rate.is-on {
	background-color: var(--status-attention-bg);
	color: var(--text-primary);
}

.ms-co-travel {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.ms-co-travel__counts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-12);
}

/* ---------- Optional details: disclosure rows with the diya ---------- */
.ms-co-more {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--border-subtle);
}

.ms-co-more__item {
	border-bottom: 1px solid var(--border-subtle);
}

.ms-co-more__summary {
	display: flex;
	align-items: flex-start;
	gap: var(--space-12);
	min-height: 56px;
	padding: var(--space-16) 0;
	list-style: none;
	cursor: pointer;
}

.ms-co-more__summary::-webkit-details-marker {
	display: none;
}

.ms-co-more__summary:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
	border-radius: var(--radius-xs);
}

.ms-co-more__mark {
	flex-shrink: 0;
	color: var(--icon-ritual);
}

.ms-co-more__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ms-co-more__title {
	font-size: var(--type-body-sm-size);
	font-weight: 600;
	color: var(--text-primary);
}

.ms-co-more__note {
	font-weight: 600;
}

.ms-co-more__line {
	font-size: var(--type-caption-size);
	color: var(--text-secondary);
	overflow-wrap: anywhere;
}

.ms-co-more__chev {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--text-secondary);
	transition: transform var(--duration-sm) var(--easing-standard);
}

.ms-co-more__item[open] > .ms-co-more__summary .ms-co-more__chev {
	transform: rotate(180deg);
}

.ms-co-more__body {
	padding: 0 0 var(--space-16);
}

.ms-co-zone-suggest {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8);
	margin-bottom: var(--space-12);
	font-size: var(--type-caption-size);
	color: var(--text-body);
}

.ms-co-zone-suggest[hidden] {
	display: none;
}

/* Ancestors. */
.ms-co-anc-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.ms-co-anc {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	padding: var(--space-16);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
}

.ms-co-anc .ms-co-fields {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
	.ms-co-anc .ms-co-fields {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ms-co-anc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-12);
}

/* An h3, so Inter card-title, never Tiro under 18px or bold (D-017, D-111). */
.ms-co-anc__title {
	margin: 0;
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	line-height: var(--type-card-title-lh);
	font-weight: var(--type-card-title-weight);
	color: var(--text-primary);
}

.ms-co-anc__remove {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-block: -12px;
	padding: 0 var(--space-4);
	border: 0;
	background: transparent;
	color: var(--text-secondary);
	font-family: var(--font-ui);
	font-size: var(--type-caption-size);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color var(--duration-sm) var(--easing-standard), text-decoration-color var(--duration-sm) var(--easing-standard);
}

.ms-co-anc__remove:hover {
	color: var(--action-primary);
	text-decoration-color: currentColor;
}

.ms-co-anc__remove[hidden] {
	display: none;
}

.ms-co-anc-add {
	margin-top: var(--space-12);
}

.ms-co-anc-add[hidden] {
	display: none;
}

/* ---------- Payment ---------- */
.ms-co-note {
	margin: 0;
}

.ms-copay {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	background: none;
	border-radius: 0;
}

/* Card title in Inter: Tiro has an 18px floor (D-017, D-111). Also the h2 in form-pay.php. */
.ms-copay__label {
	margin: 0;
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	line-height: var(--type-card-title-lh);
	font-weight: var(--type-card-title-weight);
	color: var(--text-primary);
}

.ms-copay__methods {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.ms-copay__method {
	position: relative;
	margin: 0;
	padding: 0;
	line-height: 2; /* ppn-allow: D-159 board 15 parity (woocommerce.css's line height 2: 30px lines, 24px caption) */
	list-style: none;
}

.ms-copay__card {
	display: flex !important;
	align-items: flex-start;
	gap: var(--space-12);
	padding: var(--space-16) var(--space-16);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	cursor: pointer;
	transition: border-color var(--duration-sm) var(--easing-standard), background-color var(--duration-sm) var(--easing-standard), box-shadow var(--duration-sm) var(--easing-standard);
}

.ms-copay__card:hover {
	border-color: var(--action-primary);
}

.ms-copay__method > input:checked + .ms-copay__card {
	border-color: var(--action-primary);
	background-color: var(--surface-soft);
	box-shadow: inset 0 0 0 1px var(--action-primary);
}

.ms-copay__card .ms-copay__dot {
	margin-top: 2px;
}

.ms-copay__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ms-copay__name {
	font-size: var(--type-body-size);
	font-weight: 700;
	color: var(--text-primary);
}

.ms-copay__line {
	font-size: var(--type-caption-size);
	color: var(--text-body);
}

.ms-copay__box {
	margin: var(--space-8) 0 0;
	padding: var(--space-12) var(--space-16);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
	color: var(--text-body);
	font-size: var(--type-body-sm-size);
}

/* Sentences never at 12px (D-111): the secure line, the privacy text and the terms link are 14/20. */
.ms-copay__secure {
	display: flex;
	align-items: flex-start;
	gap: var(--space-8);
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	font-weight: 600;
	color: var(--text-body);
}

.ms-copay__secure[hidden] {
	display: none;
}

.ms-copay__secure .ms-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--status-success-text);
}

.ms-copay__place {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	margin: 0;
	padding: 0;
}

/* The totals as a plain row under the method (board 15), each amount kept with its words. */
.ms-copay__amounts {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-4) var(--space-16);
	margin: 0;
	padding: var(--space-12) 0 0;
	border-top: 1px solid var(--border-subtle);
	font-size: var(--type-body-sm-size);
	font-weight: 600;
	color: var(--text-primary);
}

.ms-copay__amounts strong {
	margin-left: var(--space-4);
	font-weight: 700;
	color: var(--text-price);
	white-space: nowrap;
}

.ms-copay__amounts > span {
	white-space: nowrap;
}

.ms-copay__amounts > .ms-copay__dot {
	display: none;
}

/* Reassurance above Pay: the policy line and the date request (board 15). */
.ms-co-assure {
	display: grid;
	gap: var(--space-12);
	padding: var(--space-16);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
}

.ms-copay__place #place_order {
	width: 100%;
	margin: 0 0 var(--space-16); /* Board 15's 16px under Pay (woocommerce.css gave it, D-159). */
	float: none;
}

.ms-co-terms {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.ms-co-terms .woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	color: var(--text-secondary);
}

.ms-co-terms__link {
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	font-weight: 600;
}

.ms-co-help {
	text-align: left;
}

/* No online method for the billing country (board 07). */
.ms-copay__none {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-16);
	border: 1px solid var(--status-attention-mark);
	border-radius: var(--radius-xl);
	background-color: var(--status-attention-bg);
}

.ms-copay__none > * {
	margin: 0;
}

/* Card title in Inter, like .ms-copay__label: Tiro has an 18px floor (D-017, D-111). */
.ms-copay__none-title {
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	line-height: var(--type-card-title-lh);
	font-weight: var(--type-card-title-weight);
	color: var(--text-primary);
}

.ms-copay__none p {
	font-size: var(--type-body-sm-size);
	color: var(--text-body);
}

.ms-copay__none-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-8);
}

/* WooCommerce's processing overlay over the summary and payment while totals update. */
.ms-co .blockUI.blockOverlay {
	border-radius: var(--radius-xl);
	background-color: var(--surface-page) !important;
}

/* ---------- Your booking ----------
 * The card beside the form from 1024px (board 15 ms-bk): the head with Edit booking, one booking card per
 * pooja (88px photo, mode and city, Tiro name, icon rows), the totals, the policy line and Need help. No
 * inner scroll. Below 1024px a bar over the page (48px photo, "Your booking", the name, the total) that
 * opens to the card. */
.ms-cosum {
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-cosum__toggle {
	display: flex;
	align-items: center;
	gap: var(--space-12);
	width: 100%;
	min-height: 64px;
	padding: var(--space-8) var(--space-16) var(--space-8) var(--space-8);
	border: 0;
	border-radius: var(--radius-xl);
	background: transparent;
	color: var(--text-primary);
	font-family: var(--font-ui);
	font-size: var(--type-body-sm-size);
	text-align: left;
	cursor: pointer;
}

.ms-cosum__toggle[hidden] {
	display: none;
}

.ms-cosum__toggle:focus-visible {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: calc(var(--focus-offset) * -1);
}

.ms-cosum__thumb {
	flex: none;
	overflow: hidden;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-sm);
}

.ms-cosum__thumb > img,
.ms-bk__media > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ms-cosum__toggle-label {
	display: grid;
	flex: 1;
	min-width: 0;
	line-height: var(--type-label-lh);
}

.ms-cosum__toggle-label > span {
	overflow: hidden;
	color: var(--text-secondary);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ms-cosum__toggle-total {
	font-size: var(--type-price-sm-size);
	font-weight: 700;
	font-variant-numeric: var(--type-numeric);
	color: var(--text-price);
	white-space: nowrap;
}

.ms-cosum__chev {
	flex-shrink: 0;
	transition: transform var(--duration-sm) var(--easing-standard);
}

.ms-cosum__toggle[aria-expanded="true"] .ms-cosum__chev {
	transform: rotate(180deg);
}

.ms-cosum__panel {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: var(--space-20) var(--space-24);
}

.ms-cosum__toggle:not([hidden]) + .ms-cosum__panel {
	padding: 0 var(--space-16) var(--space-16);
}

.ms-cosum__panel[hidden] {
	display: none;
}

.ms-cosum__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-12);
}

.ms-cosum__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--type-h4-size);
	font-weight: 400;
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-cosum__edit {
	display: inline-flex;
	align-items: center;
	min-height: var(--target-min);
	font-size: var(--type-body-sm-size);
	font-weight: 600;
	line-height: var(--type-label-lh);
}

/* Phone and tablet: the bar sticks over the page; the open step's button is pinned at the bottom. */
@media (max-width: 1023.98px) {
	.ms-co__aside {
		position: sticky;
		top: 0;
		z-index: 3;
		padding-block: var(--space-8);
	}

	/* The open card never runs past the screen while the bar is stuck (several poojas): it scrolls inside. */
	.ms-cosum__toggle:not([hidden]) + .ms-cosum__panel {
		max-height: calc(100dvh - 96px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.ms-co.is-enhanced .ms-cosum__head .ms-cosum__title {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

@media (min-width: 1024px) {
	.ms-cosum__toggle {
		display: none !important;
	}

	.ms-cosum__panel[hidden] {
		display: flex;
	}
}

/* The booking card. */
.ms-bk {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: var(--space-16);
	align-items: center;
}

.ms-bk:not(:has(.ms-bk__media)) {
	grid-template-columns: minmax(0, 1fr);
}

.ms-bk__media {
	overflow: hidden;
	aspect-ratio: var(--ratio-square);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
}

.ms-bk__intro {
	display: grid;
	gap: var(--space-4);
	min-width: 0;
}

.ms-bk__kind {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin: 0;
	font-size: var(--type-meta-size);
	font-weight: var(--type-meta-weight);
	line-height: var(--type-meta-lh);
	color: var(--text-secondary);
}

.ms-bk__name {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--type-h4-size);
	font-weight: 400;
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-bk__qty {
	font-family: var(--font-ui);
	font-size: var(--type-body-sm-size);
	color: var(--text-secondary);
}

.ms-bk__facts {
	grid-column: 1 / -1;
	display: grid;
	gap: var(--space-4);
	margin: 0;
	padding: var(--space-16) 0 0;
	border-top: 1px solid var(--border-subtle);
	list-style: none;
}

.ms-bk__fact {
	display: grid;
	grid-template-columns: 16px 88px minmax(0, 1fr);
	align-items: start;
	gap: var(--space-8);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
}

.ms-bk__fact > svg,
.ms-bk__policy > svg {
	margin-top: var(--space-2);
	color: var(--text-secondary);
}

.ms-bk__fact-label {
	color: var(--text-secondary);
}

.ms-bk__fact-value {
	font-weight: 500;
	color: var(--text-primary);
	overflow-wrap: anywhere;
}

/* The policy line (Site setting) under the totals, and in the reassurance above Pay. */
.ms-bk__policy {
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr);
	gap: var(--space-8);
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	color: var(--text-primary);
}

.ms-cosum__panel > .ms-bk__policy {
	padding-top: var(--space-16);
	border-top: 1px solid var(--border-subtle);
}

.ms-cosum__panel > .ms-needhelp {
	justify-content: flex-start;
	margin-top: calc(var(--space-8) * -1);
}

.ms-cosum__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.ms-cosum__lines {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-cosum__lines[hidden] {
	display: none;
}

.ms-cosum__line {
	padding: var(--space-8) 0;
	border-bottom: 1px solid var(--border-subtle);
}

.ms-cosum__line:first-child {
	padding-top: var(--space-4);
}

.ms-cosum__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-4) var(--space-16);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-label-lh);
	color: var(--text-body);
}

.ms-cosum__row--main {
	font-weight: 600;
	color: var(--text-primary);
}

.ms-cosum__name {
	min-width: 0;
}

.ms-cosum__qty {
	font-weight: 400;
	color: var(--text-secondary);
	white-space: nowrap;
}

.ms-cosum__amt {
	flex-shrink: 0;
	text-align: right;
	white-space: nowrap;
}

.ms-cosum__amt small {
	font-size: var(--type-body-sm-size);
	color: var(--text-secondary);
}

.ms-cosum__adds {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	margin: var(--space-8) 0 0;
	padding: 0 0 0 var(--space-8);
	list-style: none;
}

.ms-cosum__totals .ms-summary__row--discount dd {
	color: var(--status-success-text);
}

@media (prefers-reduced-motion: reduce) {
	.ms-co-choice__opt,
	.ms-co-choice__dot::after,
	.ms-copay__dot::after,
	.ms-co-slot span,
	.ms-copay__card,
	.ms-co-more__chev,
	.ms-cosum__chev,
	.ms-costep__edit,
	.ms-co-anc__remove {
		transition: none;
	}
}

/* A checkbox's label is its target: at least 44px tall. Board 15 sets each one (create an account, the
   terms) as a quiet row on the soft band. */
form.ms-co.checkout .ms-co-check {
	align-items: center;
	padding: var(--space-12) var(--space-16);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
}

/* A block label, not flex: in flex the words and "(required)" become separate items and lose their
   space. align-content centres the line in the 44px target. */
form.ms-co.checkout .ms-co-check label {
	display: block;
	align-content: center;
	min-height: 44px;
}

/* Room for the shared Show button (components.css) at the end of a password field. */
form.ms-co.checkout .form-row .password-input .input-text {
	padding-inline-end: calc(var(--control-sm) + var(--space-24));
}
