/**
 * My account (boards SevaAccount, SevaBookings, SevaBookingDetail, SevaRequestChange, SevaPayments,
 * SevaDocuments, SevaFamily, SevaProfile, SevaLogin, SevaResetPassword): the tabs, the page head, the
 * account home (ledger 5d-1), the booking cards with their filter, the status line, the profile rows, the sign-in
 * and password forms. Mobile first; tokens only. Cards, rows and the summary are receipt.css's,
 * checkout.css's and cart.css's.
 */

.ms-acpage {
	display: flex;
	flex-direction: column;
	gap: var(--space-20);
	padding-block: var(--space-16) var(--section-y);
}

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

.ms-ac__content > .ms-notice,
.ms-ac__content > .woocommerce-notices-wrapper:empty {
	margin: 0;
}

/* WooCommerce's stylesheet floats the navigation left of the content; the board stacks them. */
.ms-acpage > .woocommerce {
	display: flex;
	flex-direction: column;
	gap: var(--space-20);
}

.ms-acpage .woocommerce-MyAccount-navigation,
.ms-acpage .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.ms-acpage > .woocommerce::before,
.ms-acpage > .woocommerce::after {
	content: none;
}

/* ---------- Tabs (ledger 5d-1): one quiet row, icon + words, the current tab in ink, underlined ---------- */
.ms-actabs {
	margin-inline: calc(var(--gutter-mobile) * -1);
	padding: 0 var(--gutter-mobile);
	border-bottom: 1px solid var(--border-subtle);
	overflow-x: auto;
	scrollbar-width: none;
}

.ms-actabs::-webkit-scrollbar {
	display: none;
}

@media (min-width: 768px) {
	.ms-actabs {
		margin-inline: 0;
		padding: 0;
	}
}

.ms-actabs__list {
	display: flex;
	gap: var(--space-4);
	margin: 0;
	/* Room for the 2px focus ring at its 3px offset inside the scrolling row. */
	padding: var(--space-8);
	list-style: none;
	white-space: nowrap;
}

.ms-actabs__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--target-min);
	padding: 0 var(--space-12);
	color: var(--text-secondary);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
	text-decoration: none;
	transition: color var(--duration-sm) var(--easing-standard);
}

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

/* The underline sits on the row's bottom edge (the list's 8px padding + the 1px border). */
.ms-actabs__link::after {
	content: "";
	position: absolute;
	inset: auto var(--space-12) calc(var(--space-8) * -1 - 1px);
	height: 2px;
	background-color: var(--action-primary);
	transform: scaleX(0);
	transition: transform var(--duration-sm) var(--easing-out);
}

.ms-actabs__link:hover,
.ms-actabs__link[aria-current="page"] {
	color: var(--text-primary);
}

.ms-actabs__link[aria-current="page"]::after {
	transform: scaleX(1);
}

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

/* ---------- Page head ---------- */
.ms-ac-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.ms-ac-head > * {
	margin: 0;
}

.ms-ac-head__back {
	align-self: flex-start;
	font-size: var(--type-body-sm-size);
	font-weight: 600;
}

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

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

.ms-ac-note {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-6) var(--space-12);
	align-items: center;
}

.ms-ac-muted {
	color: var(--text-secondary) !important;
}

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

.ms-ac-sec__more {
	margin: var(--space-10) 0 0;
	font-size: var(--type-body-sm-size);
	font-weight: 600;
}

/* ---------- Tiles ---------- */
.ms-ac-tiles {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-10);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.ms-ac-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ms-ac-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: 920px;
	}
}

.ms-ac-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding: var(--space-14) var(--space-16);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	background-color: var(--surface-raised);
	transition: border-color var(--duration-sm) var(--easing-standard), box-shadow var(--duration-sm) var(--easing-standard);
}

.ms-ac-tile:hover {
	border-color: var(--action-primary);
	box-shadow: var(--shadow-card);
}

.ms-ac-tile__icon {
	color: var(--icon-ritual);
}

.ms-ac-tile__link {
	font-size: var(--type-body-sm-size);
	font-weight: 700;
	color: var(--text-primary);
	text-decoration: none;
}

.ms-ac-tile__link span[aria-hidden="true"] {
	color: var(--action-primary);
}

/* The whole tile is the link. */
.ms-ac-tile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ms-ac-tile__link:focus-visible {
	outline: none;
}

.ms-ac-tile:has(.ms-ac-tile__link:focus-visible) {
	outline: var(--focus-width) solid var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.ms-ac-tile__desc {
	font-size: var(--type-caption-size);
	color: var(--text-secondary);
}

/* ---------- Account home (ledger 5d-1): greeting, next ceremony, destinations, quiet row ---------- */
.ms-hello {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

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

.ms-hello__title {
	color: var(--text-primary);
	font-family: var(--type-h1-compact-family);
	font-size: var(--type-h1-compact-size);
	font-weight: var(--type-h1-compact-weight);
	line-height: var(--type-h1-compact-lh);
	text-wrap: balance;
}

.ms-hello__sub {
	max-width: 60ch;
	color: var(--text-secondary);
	font-size: var(--type-body-size);
	line-height: var(--type-body-lh);
}

.ms-ac__content:has(.ms-next),
.ms-ac__content:has(.ms-dest) {
	gap: var(--space-32);
}

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

/* Facts in a wrapping row (the shared .ms-facts list is a column). */
.ms-facts--row {
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--space-8) var(--space-20);
}

.ms-facts--row li {
	display: block;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-facts--row li > .ms-icon {
	margin-right: var(--space-8);
	margin-bottom: calc(var(--space-2) * -1.5);
	color: var(--icon-ritual);
}

.ms-facts__req {
	margin-left: var(--space-8);
	padding: 0 var(--space-8);
	border-radius: var(--radius-chip);
	background-color: var(--status-attention-bg);
	color: var(--status-attention-text);
	font-size: var(--type-meta-size);
	font-weight: 600;
	line-height: var(--type-meta-lh);
	white-space: nowrap;
}

/* A text link that moves on (View booking): 44px tall, the arrow after the words. */
.ms-link--move {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--target-min);
	font-weight: 600;
}

.ms-link--move > .ms-icon {
	flex-shrink: 0;
}

/* A WhatsApp action as a quiet glyph link (the family share). */
.ms-walink {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	min-height: var(--target-min);
	font-weight: 600;
}

.ms-walink > .ms-icon {
	flex-shrink: 0;
}

/* Status line: dots on a thread; done = maroon tick, now = maroon ring, later = quiet. Down on phones,
   across from 768px. */
.ms-track {
	display: flex;
	flex-direction: column;
	max-width: 720px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-track__step {
	position: relative;
	display: flex;
	gap: var(--space-12);
	padding-bottom: var(--space-16);
}

.ms-track__step:last-child {
	padding-bottom: 0;
}

.ms-track__step::before {
	content: "";
	position: absolute;
	top: var(--space-24);
	bottom: 0;
	left: 11px;
	width: 2px;
	background-color: var(--border-subtle);
}

.ms-track__step:last-child::before {
	content: none;
}

.ms-track__step.is-done::before {
	background-color: var(--action-primary);
}

.ms-track__dot {
	display: grid;
	flex: none;
	place-items: center;
	width: var(--space-24);
	height: var(--space-24);
	border: 2px solid var(--border-control);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	color: var(--text-on-primary);
}

.is-done > .ms-track__dot {
	border-color: var(--action-primary);
	background-color: var(--action-primary);
}

.is-now > .ms-track__dot {
	border-color: var(--action-primary);
}

.is-now > .ms-track__dot::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: var(--radius-pill);
	background-color: var(--action-primary);
}

.ms-track__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding-top: var(--space-2);
}

.ms-track__title {
	color: var(--text-primary);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
}

.is-later .ms-track__title {
	color: var(--text-secondary);
	font-weight: 500;
}

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

@media (min-width: 768px) {
	.ms-track {
		flex-direction: row;
	}

	.ms-track__step {
		flex: 1 1 0;
		flex-direction: column;
		gap: var(--space-8);
		padding-right: var(--space-8);
		padding-bottom: 0;
	}

	.ms-track__step::before {
		top: 11px;
		right: 0;
		bottom: auto;
		left: var(--space-24);
		width: auto;
		height: 2px;
	}
}

/* "Your next ceremony": one raised card; 5/7 photo and body from 768px, a 72px thumbnail beside the
   title below it. */
.ms-next {
	display: grid;
	overflow: hidden;
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-next__media {
	position: relative;
	display: none;
	overflow: hidden;
	background-color: var(--surface-sunken);
}

.ms-next__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ms-next__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	min-width: 0;
	padding: var(--space-20) var(--box-pad) var(--space-24);
}

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

/* Phones: the status line follows the need and the button, so the button stays on the first screen. */
.ms-next__body > .ms-track {
	order: 10;
}

.ms-next__label {
	color: var(--text-accent);
	font-size: var(--type-eyebrow-size);
	font-weight: var(--type-eyebrow-weight);
	line-height: var(--type-eyebrow-lh);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
}

.ms-next__titlerow {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: var(--space-16);
}

.ms-next__titlerow--plain {
	display: block;
}

.ms-next__titletext {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	min-width: 0;
}

.ms-next__thumb {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: var(--radius-md);
	object-fit: cover;
}

.ms-next__name {
	margin: 0;
	color: var(--text-primary);
	font-family: var(--type-h2-family);
	font-size: var(--type-h2-size);
	font-weight: var(--type-h2-weight);
	line-height: var(--type-h2-lh);
}

.ms-next__need {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding: var(--space-16);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
}

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

.ms-next__need-title {
	color: var(--text-primary);
	font-size: var(--type-label-size);
	font-weight: var(--type-label-weight);
	line-height: var(--type-label-lh);
}

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

.ms-next__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-12) var(--space-24);
}

/* The primary takes the full width on small phones. */
@media (max-width: 419px) {
	.ms-next__actions > .ms-btn {
		width: 100%;
	}
}

@media (min-width: 768px) {
	.ms-next:has(.ms-next__media) {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.ms-next__media {
		display: block;
		min-height: 100%;
	}

	.ms-next__img {
		position: absolute;
		inset: 0;
	}

	.ms-next__titlerow {
		display: block;
	}

	.ms-next__thumb {
		display: none;
	}

	.ms-next__body > .ms-track {
		order: 0;
	}

	.ms-next__body {
		padding: var(--space-24);
	}
}

@media (min-width: 1024px) {
	.ms-next__body {
		padding: var(--space-32) var(--space-40);
	}
}

/* Destinations: five raised cards in a row from 1180px (3 + 2 from 768px), a list on phones. */
.ms-dest {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

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

.ms-dest__list {
	display: grid;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-dest__link {
	display: flex;
	align-items: center;
	gap: var(--space-16);
	height: 100%;
	min-height: 72px;
	padding: var(--space-16);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
	color: var(--text-primary);
	text-decoration: none;
	transition: box-shadow var(--duration-xs) var(--easing-out), transform var(--duration-xs) var(--easing-out);
}

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

@media (hover: hover) {
	.ms-dest__link:hover {
		box-shadow: var(--shadow-raised);
		transform: translateY(-2px);
	}
}

.ms-dest__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: var(--target-min);
	height: var(--target-min);
	border-radius: var(--radius-pill);
	background-color: var(--surface-soft);
	color: var(--icon-ritual);
}

.ms-dest__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
}

.ms-dest__title {
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
}

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

.ms-dest__chev {
	flex: none;
	color: var(--text-secondary);
}

@media (min-width: 768px) {
	.ms-dest__list {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.ms-dest__item {
		grid-column: span 2;
	}

	.ms-dest__item:nth-child(n + 4) {
		grid-column: span 3;
	}
}

@media (min-width: 1180px) {
	.ms-dest__list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.ms-dest__item,
	.ms-dest__item:nth-child(n + 4) {
		grid-column: auto;
	}

	.ms-dest__link {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-12);
		padding: var(--space-20);
	}

	.ms-dest__chev {
		display: none;
	}
}

/* Quiet row: Save the dates and the family share, one soft band in two parts. */
.ms-quiet {
	display: grid;
	overflow: hidden;
	border-radius: var(--radius-xl);
	background-color: var(--surface-soft);
}

.ms-quiet__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: var(--space-12) var(--space-16);
	padding: var(--space-20) var(--box-pad);
}

.ms-quiet__item + .ms-quiet__item {
	border-top: 1px solid var(--border-subtle);
}

.ms-quiet__icon {
	margin-top: var(--space-2);
	color: var(--icon-ritual);
}

.ms-quiet__text {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
}

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

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

.ms-quiet__title {
	margin: 0;
	color: var(--text-primary);
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: var(--type-card-title-weight);
	line-height: var(--type-card-title-lh);
}

.ms-quiet__item > .ms-btn,
.ms-quiet__item > .ms-link {
	grid-column: 2;
	justify-self: start;
}

@media (min-width: 1024px) {
	.ms-quiet {
		grid-template-columns: 1fr 1fr;
	}

	.ms-quiet__item {
		padding: var(--space-24);
	}

	.ms-quiet__item + .ms-quiet__item {
		border-top: 0;
		border-left: 1px solid var(--border-subtle);
	}
}

/* Need help closes the account home on the left edge (the component's own small-phone wrap stays). */
.ms-ac__content > .ms-needhelp {
	justify-content: flex-start;
	margin: 0;
	text-align: left;
}

.ms-ac__content > .ms-needhelp .ms-needhelp__q {
	text-align: left;
}

/* The booking page's status line card. */
.ms-ac-track .ms-track {
	max-width: none;
}

@media (prefers-reduced-motion: reduce) {
	.ms-actabs__link::after,
	.ms-dest__link {
		transition: opacity var(--duration-xs) linear;
	}

	.ms-dest__link:hover {
		transform: none;
	}
}

/* ---------- Booking cards and their filter ---------- */
.ms-ac-filter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-6);
}

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

.ms-ac-filter__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-6);
	min-height: 44px;
	padding: 0 var(--space-14);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-pill);
	background-color: var(--surface-raised);
	font-family: var(--font-ui);
	font-size: var(--type-body-sm-size);
	font-weight: 600;
	color: var(--text-primary);
	cursor: pointer;
	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-ac-filter__btn:hover {
	border-color: var(--action-primary);
}

.ms-ac-filter__btn[aria-pressed="true"] {
	border-color: var(--action-primary);
	background-color: var(--action-primary);
	color: var(--text-on-primary);
}

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

.ms-ac-filter__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--radius-pill);
	background-color: var(--status-danger-bg);
	font-size: var(--type-meta-size);
	color: var(--status-danger-text);
}

.ms-ac-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
}

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

.ms-ac-group__title {
	margin: 0;
	font-size: var(--type-body-sm-size);
	font-weight: 700;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ms-ac.is-filtered .ms-ac-group__title,
.ms-ac__content.is-filtered .ms-ac-group__title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ms-ac-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 760px;
}

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

.ms-ac-card > * {
	margin: 0;
}

.ms-ac-card__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-6) var(--space-10);
}

.ms-ac-card__num {
	font-size: var(--type-caption-size);
	font-weight: 600;
	color: var(--text-secondary);
	font-variant-numeric: tabular-nums;
}

.ms-ac-card__title {
	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-ac-card__title a {
	color: inherit;
	text-decoration: none;
}

.ms-ac-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

.ms-ac-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8) var(--space-16);
	margin-top: var(--space-6) !important;
}

.ms-ac-card__view {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: var(--type-body-sm-size);
	font-weight: 600;
}

.ms-ac-pay .ms-summary__row:first-child {
	padding-top: var(--space-6);
}

.ms-ac-doc {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-12);
}

.ms-ac-doc__ready {
	font-weight: 600;
	color: var(--status-success-text);
}

.ms-ac-foot {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-10);
}

.ms-ac-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-12);
	max-width: 640px;
}

.ms-ac-empty > * {
	margin: 0;
}

.ms-ac-empty__title {
	font-family: var(--font-display);
	font-size: var(--type-h3-size);
	font-weight: 400;
	color: var(--text-primary);
}

.ms-ac-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-10);
}

/* ---------- Booking page: updates ---------- */
.ms-ac-updates__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-10);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-ac-updates__list li {
	padding-top: var(--space-10);
	border-top: 1px solid var(--border-subtle);
}

.ms-ac-updates__list li:first-child {
	padding-top: 0;
	border-top: 0;
}

.ms-ac-updates__text,
.ms-ac-updates__text p {
	margin: 0;
	font-size: var(--type-body-sm-size);
	color: var(--text-primary);
}

.ms-ac-updates__date {
	margin: var(--space-4) 0 0;
	font-size: var(--type-caption-size);
	color: var(--text-secondary);
}

.ms-ac-anc {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--type-body-sm-size);
	color: var(--text-primary);
}

/* ---------- Request a change ---------- */
.ms-ac-change__form,
.ms-ac-change__sent {
	display: flex;
	flex-direction: column;
	gap: var(--space-14);
}

.ms-ac-change__form[hidden],
.ms-ac-change__sent[hidden] {
	display: none;
}

.ms-ac-change__what {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	margin: 0;
	padding: 0;
	border: 0;
}

.ms-ac-change__what > legend {
	margin-bottom: var(--space-8);
	padding: 0;
}

.ms-ac-change__sent p {
	margin: 0;
	font-size: var(--type-body-sm-size);
	color: var(--text-body);
}

/* ---------- Profile ---------- */
.ms-ac-profile {
	display: flex;
	flex-direction: column;
	max-width: 760px;
}

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

.ms-ac-row__summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"label edit"
		"value edit";
	align-items: center;
	gap: 2px var(--space-12);
	padding: var(--space-12) 0;
	list-style: none;
	cursor: pointer;
}

div.ms-ac-row__summary {
	cursor: auto;
}

.ms-ac-row__summary::-webkit-details-marker {
	display: none;
}

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

.ms-ac-row__label {
	grid-area: label;
	font-size: var(--type-caption-size);
	color: var(--text-secondary);
}

.ms-ac-row__value {
	grid-area: value;
	min-width: 0;
	font-size: var(--type-body-sm-size);
	color: var(--text-primary);
	overflow-wrap: anywhere;
}

.ms-ac-row__edit {
	grid-area: edit;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: var(--type-body-sm-size);
	font-weight: 600;
	color: var(--action-primary);
	text-decoration: none;
}

details[open] > .ms-ac-row__summary .ms-ac-row__edit {
	visibility: hidden;
}

.ms-ac-row__body {
	padding: 0 0 var(--space-14);
}

.ms-ac-profile__save {
	padding-top: var(--space-14);
}

.ms-ac-profile__foot {
	display: flex;
	gap: var(--space-20);
	margin: 0;
	font-size: var(--type-body-sm-size);
	font-weight: 600;
}

/* WooCommerce's billing address form (edit-address). */
.ms-ac__content .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-14);
	max-width: 760px;
}

.ms-ac__content .woocommerce-address-fields .form-row {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}

.ms-ac__content .woocommerce-address-fields .form-row label {
	font-size: var(--type-label-size);
	font-weight: 600;
	color: var(--text-primary);
}

.ms-ac__content .woocommerce-address-fields .input-text,
.ms-ac__content .woocommerce-address-fields select {
	width: 100%;
	min-height: var(--control-md);
	padding: 0 var(--space-14);
	border: 1px solid var(--border-control);
	border-radius: var(--radius-md);
	background-color: var(--surface-raised);
	font-family: var(--font-ui);
	font-size: var(--type-body-size);
	color: var(--text-primary);
}

.ms-ac__content .woocommerce-address-fields button[type="submit"] {
	margin-top: var(--space-16);
}

/* ---------- Sign in, create account, passwords ---------- */
.ms-ac-auth {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	width: 100%;
	max-width: 440px;
	margin: var(--space-16) auto var(--space-24);
}

.ms-ac-auth__panel {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	padding: var(--space-20);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

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

.ms-ac-auth__panel > * {
	margin: 0;
}

.ms-ac-auth__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-14);
}

.ms-ac-auth__links {
	display: flex;
	justify-content: space-between;
	gap: var(--space-12);
	margin: 0;
	font-size: var(--type-body-sm-size);
	font-weight: 600;
}

.ms-ac-auth__help {
	margin: 0;
	text-align: center;
}

.ms-ac-pw {
	position: relative;
	display: block;
}

.ms-ac-pw .ms-input {
	padding-right: 72px;
}


@media (prefers-reduced-motion: reduce) {
	.ms-actabs__link,
	.ms-ac-tile,
	.ms-ac-filter__btn {
		transition: none;
	}
}

/* WooCommerce's own login and register form frame, and its eye button next to password fields: the
   panel is the frame here, and "Show" is the theme's. */
.ms-acpage form.ms-ac-auth__form.login,
.ms-acpage form.ms-ac-auth__form.register,
.ms-acpage form.ms-ac-auth__form.lost_reset_password {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: left;
}

.ms-acpage .show-password-input {
	display: none !important;
}

.ms-acpage .password-input {
	display: block;
	position: static;
}

/* Targets of at least 44px: the back link, text links under sections, the profile's Edit links and foot,
   the dashboard's links, WooCommerce's notice button. */
.ms-ac-head__back,
.ms-ac-sec__more a,
.ms-ac-profile__foot a,
.ms-ac-note .ms-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.ms-ac-row__edit {
	justify-content: flex-end;
	min-width: 44px;
}

/* WooCommerce's own notice buttons (e.g. "Browse products"), printed into the notices wrapper. */
.ms-ac__content > .woocommerce-notices-wrapper a.button,
.ms-ac__content .woocommerce-info a.button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-left: var(--space-8);
	padding: 0 var(--space-14);
	border-radius: var(--radius-md);
	background-color: var(--surface-raised);
	border: 1px solid var(--border-control);
	color: var(--text-primary);
	font-weight: 600;
}

.ms-ac-auth__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Billing address (form-edit-address.php). */
.ms-ac-address {
	max-width: 760px;
}

.ms-ac-address .woocommerce-address-fields .form-row .description {
	margin: var(--space-4) 0 0;
	padding: 0;
	background: none;
	color: var(--text-secondary);
	font-size: var(--type-caption-size);
}

.ms-ac-address .woocommerce-address-fields .form-row .description::before {
	content: none;
}

.ms-ac-address__save {
	margin: var(--space-16) 0 0;
}

/* ---------- The review ask on a performed booking (board SevaReviewAsk 01–03) ---------- */
.ms-ask__state {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-12);
	min-width: 0;
}

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

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

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

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

/* ---------- Travel help on a booking: the pickup request (board SevaStay 07–11) ---------- */
.ms-travel__line {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-16);
	border-radius: var(--radius-lg);
	background-color: var(--surface-soft);
}

.ms-travel__line + .ms-travel__line {
	margin-top: var(--space-12);
}

.ms-travel__for,
.ms-travel__title {
	margin: 0;
}

.ms-travel__for {
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	color: var(--text-secondary);
}

.ms-travel__title {
	font-family: var(--font-display);
	font-size: var(--type-h4-size);
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

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

.ms-travel__requests {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	margin: var(--space-16) 0 0;
	padding: 0;
	list-style: none;
}

.ms-travel__request {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-4);
	padding-top: var(--space-12);
	border-top: 1px solid var(--border-subtle);
}

.ms-travel__request > p {
	margin: 0;
}

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

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

/* The sheet's form. */
.ms-travel__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

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

.ms-travel__count {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	min-width: 0;
	max-width: 12rem;
}

.ms-travel__count .ms-rf__label {
	margin: 0;
}

.ms-travel-sheet .ms-input[aria-invalid="true"] {
	border-color: var(--status-danger-border);
	box-shadow: 0 0 0 1px var(--status-danger-border);
}

.ms-travel__retry {
	margin-bottom: var(--space-16);
}

.ms-travel-sheet .ms-rf__errors {
	margin: 0 0 var(--space-16);
}

/* Request received: the pending card, then what was asked. */
.ms-travel__sent {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

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

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

.ms-travel__sent-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-8);
	padding: var(--space-16);
	border: 1px solid var(--status-attention-mark);
	border-radius: var(--radius-lg);
	background-color: var(--surface-soft);
}

.ms-travel__sent-card > p {
	margin: 0;
}

.ms-travel__sent-title {
	font-family: var(--font-display);
	font-size: var(--type-h4-size);
	line-height: var(--type-h4-lh);
	color: var(--text-primary);
}

.ms-travel__sent-text {
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-travel__facts {
	margin: 0;
	padding: var(--space-4) var(--space-16);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	background-color: var(--surface-raised);
}

.ms-travel__facts > div {
	display: flex;
	justify-content: space-between;
	gap: var(--space-16);
	padding: var(--space-10) 0;
	font-size: var(--type-body-sm-size);
}

.ms-travel__facts > div + div {
	border-top: 1px solid var(--border-subtle);
}

.ms-travel__facts dt {
	color: var(--text-secondary);
}

.ms-travel__facts dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
	color: var(--text-primary);
}

.ms-travel__foot > div {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	width: 100%;
}

.ms-travel__foot > div[hidden] {
	display: none;
}

.ms-travel__note {
	margin: 0;
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-lh);
	text-align: center;
	color: var(--text-secondary);
}

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

/* ---------- The Sankalp details form (a To-do row on the booking page) ---------- */
.ms-details__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

.ms-details__form .ms-input[aria-invalid="true"] {
	border-color: var(--status-danger-border);
	box-shadow: 0 0 0 1px var(--status-danger-border);
}

.ms-details__ancestors {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ms-details__ancestors > legend {
	margin-bottom: var(--space-6);
}

.ms-details__ancestor {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--space-12);
}

.ms-details__sub {
	font-size: var(--type-caption-size);
	font-weight: 400;
	color: var(--text-secondary);
}

.ms-details__ancestors [data-ppn-details-add] {
	align-self: flex-start;
}

/* ==========================================================================
   Booking page, request a change, family, sign in (ledger 5d-2, board 9b)
   ========================================================================== */

/* Section titles on the account screens: Tiro h4 for a section, Inter card title for a sub-part. */
.ms-sec2 {
	margin: 0;
	color: var(--text-primary);
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: 400;
	line-height: var(--type-h4-lh);
}

.ms-sec3 {
	margin: 0;
	color: var(--text-primary);
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: 600;
	line-height: var(--type-card-title-lh);
}

/* ---------- Booking head (ms-bkhead): photo, kind and place, the H1, chips, date, status line ---------- */
.ms-bk2 {
	display: flex;
	flex-direction: column;
	gap: var(--space-32);
}

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

.ms-bkhead__back {
	align-self: flex-start;
	font-size: var(--type-body-sm-size);
}

.ms-bkhead__card {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: var(--space-8) var(--space-16);
	padding: var(--box-pad);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-bkhead__card--plain {
	grid-template-columns: minmax(0, 1fr);
}

.ms-bkhead__img {
	display: block;
	grid-row: 1 / span 2;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--radius-md);
	object-fit: cover;
}

/* Under 480px the photo sits beside the kicker and title; chips and date take the full width. */
.ms-bkhead__body {
	display: contents;
}

.ms-bkhead__body > * {
	grid-column: 2;
	margin: 0;
}

.ms-bkhead__card--plain .ms-bkhead__body > *,
.ms-bkhead__body > .ms-chiprow,
.ms-bkhead__when {
	grid-column: 1 / -1;
}

.ms-bkhead__kicker,
.ms-bkhead__when {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-8);
}

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

.ms-bkhead__kicker > .ms-icon,
.ms-bkhead__when > .ms-icon {
	flex: none;
	color: var(--icon-ritual);
}

.ms-bkhead__title {
	color: var(--text-primary);
	font-family: var(--type-h3-family);
	font-size: var(--type-h3-size);
	font-weight: 400;
	line-height: var(--type-h3-lh);
	text-wrap: balance;
}

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

.ms-bkhead__when .ms-facts__req {
	margin-left: 0;
}

.ms-bkhead__track {
	grid-column: 1 / -1;
	padding-top: var(--space-16);
	border-top: 1px solid var(--border-subtle);
}

@media (min-width: 480px) {
	.ms-bkhead__card {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.ms-bkhead__img {
		grid-row: auto;
		align-self: start;
	}

	.ms-bkhead__body {
		display: flex;
		flex-direction: column;
		gap: var(--space-8);
		min-width: 0;
	}

	.ms-bkhead__body > *,
	.ms-bkhead__body > .ms-chiprow,
	.ms-bkhead__when {
		grid-column: auto;
	}

	.ms-bkhead__num {
		padding-left: var(--space-8);
		border-left: 1px solid var(--border-subtle);
	}
}

@media (min-width: 768px) {
	.ms-bkhead__card {
		grid-template-columns: 160px minmax(0, 1fr);
		gap: var(--space-24);
		padding: var(--space-24);
	}

	.ms-bkhead__card--plain {
		grid-template-columns: minmax(0, 1fr);
	}

	.ms-bkhead__title {
		font-family: var(--type-h1-compact-family);
		font-size: var(--type-h1-compact-size);
		line-height: var(--type-h1-compact-lh);
	}

	.ms-bkhead__track {
		padding-top: var(--space-20);
	}
}

@media (min-width: 1180px) {
	.ms-bkhead__card {
		grid-template-columns: 160px minmax(0, 1fr) minmax(0, 600px);
		align-items: center;
	}

	.ms-bkhead__card--plain {
		grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
	}

	.ms-bkhead__track {
		grid-column: auto;
		padding-top: 0;
		padding-left: var(--space-24);
		border-top: 0;
		border-left: 1px solid var(--border-subtle);
	}

	.ms-bkhead__title {
		font-family: var(--type-h2-family);
		font-size: var(--type-h2-size);
		line-height: var(--type-h2-lh);
	}
}

/* ---------- Columns: the main column | the receipt summary and help (2 | 1 from 1024px) ---------- */
.ms-bk2__grid {
	display: grid;
	gap: var(--space-32);
	align-items: start;
}

.ms-bk2__main,
.ms-bk2__aside {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	min-width: 0;
}

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

@media (min-width: 1024px) {
	.ms-bk2__grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}

	.ms-bk2__aside {
		position: sticky;
		top: var(--space-24);
	}
}

.ms-bk2__aside .ms-rc-sum__title {
	font-size: var(--type-h4-size);
	line-height: var(--type-h4-lh);
}

/* ---------- To do (ms-todo): one row per action; the current one open with its form ---------- */
.ms-todo {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
}

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

.ms-todo__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-todo__row {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: var(--space-20) var(--box-pad);
	scroll-margin-top: var(--space-24);
}

/* Focused by its #anchor from the account home; the row is not a control, so no ring on that jump. */
.ms-todo__row:focus:not(:focus-visible) {
	outline: none;
}

.ms-todo__row + .ms-todo__row {
	border-top: 1px solid var(--border-subtle);
}

.ms-todo__head {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: start;
	gap: var(--space-4) var(--space-16);
}

.ms-todo__mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-pill);
	background-color: var(--surface-soft);
	color: var(--icon-ritual);
}

.ms-todo__mark > svg {
	width: 20px;
	height: 20px;
}

.is-now > .ms-todo__head .ms-todo__mark {
	color: var(--text-primary);
	outline: 2px solid var(--text-primary);
	outline-offset: -2px;
}

.is-done > .ms-todo__head .ms-todo__mark {
	background-color: var(--status-success-bg);
	color: var(--status-success-mark);
}

.is-later > .ms-todo__head .ms-todo__mark {
	background-color: transparent;
	color: var(--text-secondary);
	outline: 1px dashed var(--border-control);
	outline-offset: -1px;
}

.ms-todo__text {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
	padding-top: var(--space-8);
}

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

.ms-todo__title {
	color: var(--text-primary);
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: 600;
	line-height: var(--type-card-title-lh);
}

.is-later > .ms-todo__head .ms-todo__title {
	color: var(--text-secondary);
}

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

.ms-todo__action {
	grid-column: 2;
}

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

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

.ms-todo__btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-12) var(--space-24);
}

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

	.ms-todo__head {
		grid-template-columns: 40px minmax(0, 1fr) auto;
	}

	.ms-todo__action {
		grid-column: 3;
		grid-row: 1;
		align-self: center;
	}

	.ms-todo__body {
		padding-left: calc(40px + var(--space-16));
	}
}

/* Small phones: the filled button and the courier's WhatsApp button take the row's width. */
@media (max-width: 419px) {
	.ms-todo__btns > .ms-btn,
	.ms-todo__btns > .ms-btn-wa,
	.ms-todo__form .ms-btn--primary,
	.ms-chg__go > .ms-btn,
	.ms-fam__empty > .ms-btn {
		width: 100%;
	}

	.ms-todo__form .ms-details__ancestor {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The courier step: who receives it, where to send it, the four steps. */
.ms-courier2 {
	display: grid;
	gap: var(--space-16);
}

.ms-courier__facts {
	display: grid;
	gap: var(--space-8);
	margin: 0;
	padding: var(--space-16);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
}

.ms-courier__facts > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-4) var(--space-16);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-courier__facts dt {
	color: var(--text-secondary);
}

.ms-courier__facts dd {
	margin: 0;
	color: var(--text-primary);
	font-weight: 600;
}

.ms-courier__steps {
	display: grid;
	gap: var(--space-8);
	margin: 0;
	padding-left: var(--space-20);
	color: var(--text-body);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

/* Travel help with several poojas: one line each in the row. */
.ms-todo__body .ms-travel__line {
	padding: var(--space-12) var(--space-16);
}

/* ---------- Booking details and updates: quiet, on the page, divided; label | value from 768 ---------- */
.ms-about {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	padding-top: var(--space-24);
	border-top: 1px solid var(--border-subtle);
}

.ms-about .ms-rc-book__rows,
.ms-about .ms-ac-updates__list,
.ms-about .ms-rc-next__list,
.ms-about .ms-ac-sec__more {
	margin: 0;
}

@media (min-width: 768px) {
	.ms-about .ms-rc-book__row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: var(--space-4) var(--space-16);
	}
}

/* ---------- Aside: View receipt, Request a change, Need help ---------- */
.ms-bkhelp {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	padding: var(--space-20);
	border-radius: var(--radius-xl);
	background-color: var(--surface-soft);
}

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

.ms-bkhelp .ms-needhelp,
.ms-chg__policy .ms-needhelp {
	justify-content: flex-start;
	margin: 0;
	text-align: left;
}

/* ---------- ppn-addons "Continue the offering" rows (D-128(3)) ---------- */
.ms-offer .ms-hello__sub {
	margin: 0;
}

.ms-offer .ppn-tile-thankyou__form {
	margin: 0;
}

.ms-offer .ms-todo__mark > svg {
	fill: none;
	stroke: currentColor;
}

.ms-offer__price {
	color: var(--text-price);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ---------- ppn-addons "Need travel help too?" (kept, D-128(2)): one quiet section, our field styles ---------- */
.ms-travel2.pty-posthelp {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	margin: 0;
	padding: var(--space-24) var(--box-pad);
	border: 0;
	border-radius: var(--radius-xl);
	background-color: var(--surface-soft);
	box-shadow: none;
}

.ms-travel2 p,
.ms-travel2 h2,
.ms-travel2 h3,
.ms-travel2 h4 {
	margin: 0;
}

.ms-travel2 .pty-posthelp__eyebrow,
.ms-travel2 .pty-posthelp__booking-kicker,
.ms-travel2 .pty-posthelp__option-eyebrow,
.ms-travel2 .pty-posthelp__option-price-label {
	color: var(--text-secondary);
	font-size: var(--type-meta-size);
	font-weight: 500;
	letter-spacing: normal;
	line-height: var(--type-meta-lh);
	text-transform: none;
}

.ms-travel2 .ms-travel2__title {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	color: var(--text-primary);
	font-family: var(--type-h4-family);
	font-size: var(--type-h4-size);
	font-weight: 400;
	line-height: var(--type-h4-lh);
}

.ms-travel2 .pty-posthelp__intro,
.ms-travel2 .pty-posthelp__booking-copy,
.ms-travel2 .pty-posthelp__option-copy,
.ms-travel2 .pty-posthelp__form-copy {
	max-width: 64ch;
	color: var(--text-body);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-travel2 .pty-posthelp__groups,
.ms-travel2 .pty-posthelp__booking,
.ms-travel2 .pty-posthelp__options,
.ms-travel2 .pty-posthelp__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
}

.ms-travel2 .pty-posthelp__booking-title,
.ms-travel2 .pty-posthelp__option-title {
	color: var(--text-primary);
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: 600;
	line-height: var(--type-card-title-lh);
}

.ms-travel2 .pty-posthelp__option {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding: var(--space-20) var(--box-pad);
	border: 0;
	border-radius: var(--radius-md);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-travel2 .pty-posthelp__option-price {
	color: var(--text-price);
	font-size: var(--type-card-title-size);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: var(--type-card-title-lh);
}

.ms-travel2 .pty-posthelp__form-grid {
	display: grid;
	gap: var(--space-16);
}

.ms-travel2 .pty-posthelp__field {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	min-width: 0;
}

.ms-travel2 .pty-posthelp__option-btn {
	align-self: flex-start;
	margin-top: var(--space-8);
}

@media (max-width: 419px) {
	.ms-travel2 .pty-posthelp__option-btn {
		width: 100%;
	}
}

@media (min-width: 768px) {
	.ms-travel2.pty-posthelp {
		padding: var(--space-24);
	}

	.ms-travel2 .pty-posthelp__option {
		padding: var(--space-24);
	}

	.ms-travel2 .pty-posthelp__form-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.ms-travel2 .pty-posthelp__field--wide {
		grid-column: 1 / -1;
	}
}

/* ---------- Request a change: the form card | the policy (7 | 5 from 1024px) ---------- */
.ms-chg__head,
.ms-chg__head > * {
	margin: 0;
}

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

.ms-chg {
	display: grid;
	gap: var(--space-24);
	align-items: start;
}

.ms-chg__card {
	display: flex;
	flex-direction: column;
	gap: var(--space-24);
	padding: var(--box-pad);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-chg__booking {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	gap: var(--space-16);
	padding-bottom: var(--space-20);
	border-bottom: 1px solid var(--border-subtle);
}

.ms-chg__booking--plain {
	grid-template-columns: minmax(0, 1fr);
}

.ms-chg__booking p {
	margin: 0;
}

.ms-chg__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--radius-md);
	object-fit: cover;
}

.ms-chg__name {
	color: var(--text-primary);
	font-size: var(--type-card-title-size);
	font-weight: 600;
	line-height: var(--type-card-title-lh);
}

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

.ms-chg__opt {
	gap: var(--space-12);
}

.ms-chg__icon {
	flex: none;
	color: var(--icon-ritual);
}

.ms-chg__go {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-12) var(--space-24);
}

.ms-chg__next {
	display: inline-flex;
	align-items: center;
	gap: var(--space-8);
	margin: 0;
	color: var(--text-secondary);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-chg__card .ms-ac-change__sent {
	padding: var(--space-20);
	border-radius: var(--radius-md);
	background-color: var(--surface-soft);
}

.ms-chg__card .ms-ac-change__sent .ms-ac-sec__title {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	margin: 0;
	font-family: var(--type-card-title-family);
	font-size: var(--type-card-title-size);
	font-weight: 600;
	line-height: var(--type-card-title-lh);
}

.ms-chg__policy {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	padding: var(--space-24);
	border-radius: var(--radius-xl);
	background-color: var(--surface-soft);
}

.ms-chg__policon {
	color: var(--icon-ritual);
}

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

.ms-chg__policy .ms-needhelp {
	padding-top: var(--space-12);
	border-top: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
	.ms-chg__card {
		padding: var(--space-32);
	}
}

@media (min-width: 1024px) {
	.ms-chg {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--space-32);
	}

	.ms-chg__policy {
		position: sticky;
		top: var(--space-24);
	}
}

/* ---------- Family & Sankalp: the details or the empty card | what pandit ji reads (7 | 5) ---------- */
.ms-fam {
	display: grid;
	gap: var(--space-24);
	align-items: start;
}

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

.ms-fam__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-12);
	padding: var(--space-40) var(--box-pad);
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
	text-align: center;
}

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

.ms-fam__empty p {
	max-width: 44ch;
	color: var(--text-body);
}

.ms-fam__empty .ms-btn {
	margin-top: var(--space-8);
}

.ms-fam__reads {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	padding: var(--space-24);
	border-radius: var(--radius-xl);
	background-color: var(--surface-soft);
}

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

.ms-fam__item {
	display: flex;
	gap: var(--space-16);
}

.ms-fam__reads .ms-dest__icon {
	background-color: var(--surface-raised);
}

@media (min-width: 1024px) {
	.ms-fam {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--space-32);
	}
}

/* ---------- Sign in: one 960px card; a quiet panel says what the account is for ---------- */
.ms-auth2 {
	display: grid;
	width: 100%;
	max-width: 440px;
	margin: var(--space-24) auto var(--space-32);
	overflow: hidden;
	border-radius: var(--radius-xl);
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-card);
}

.ms-auth2 .ms-ac-auth.ms-auth2__form {
	max-width: none;
	margin: 0;
	padding: var(--space-24) var(--box-pad);
}

.ms-auth2 .ms-ac-auth__panel {
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	box-shadow: none;
}

/* Need help on the left edge, as on checkout and the account home. The question takes its own row at every
   width, so WhatsApp and Call always share the row under it (F-41, board 15 [5]). */
.ms-auth2 .ms-ac-auth__help {
	justify-content: flex-start;
	text-align: left;
}

.ms-auth2 .ms-ac-auth__help .ms-needhelp__q {
	flex: 0 0 100%;
	text-align: left;
}

.ms-auth2__new {
	margin: 0;
	padding-top: var(--space-16);
	border-top: 1px solid var(--border-subtle);
	color: var(--text-body);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

/* 44px target from padding, so the keyboard ring hugs the words and clears "New here?" (F-10h). */
.ms-auth2__new a {
	display: inline-block;
	padding-block: var(--space-12);
}

.ms-auth2__aside {
	display: flex;
	flex-direction: column;
	background-color: var(--surface-soft);
}

/* Board 16's photo: none on phones (the form comes first), 4:3 across the panel from 768px. */
.ms-auth2__img {
	display: none;
}

.ms-auth2__perks {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	padding: var(--space-24) var(--box-pad);
}

.ms-auth2__perks ul {
	display: flex;
	flex-direction: column;
	gap: var(--space-12);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ms-auth2__perks li {
	display: flex;
	gap: var(--space-12);
	color: var(--text-body);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-lh);
}

.ms-auth2__perks .ms-icon {
	flex: none;
	color: var(--icon-ritual);
}

@media (min-width: 768px) {
	.ms-auth2 {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		max-width: 960px;
		margin-top: var(--space-40);
	}

	.ms-auth2 .ms-ac-auth.ms-auth2__form {
		padding: var(--space-40);
	}

	.ms-auth2__img {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}

	.ms-auth2__perks {
		padding: var(--space-32) var(--space-40);
	}
}

/* Small phones: "Need help?" on its own line, call and WhatsApp together under it. */
@media (max-width: 419px) {
	.ms-bkhelp .ms-needhelp,
	.ms-chg__policy .ms-needhelp {
		display: grid;
		grid-template-columns: auto auto;
		justify-content: start;
		gap: 0 var(--space-16);
	}

	.ms-bkhelp .ms-needhelp__q,
	.ms-chg__policy .ms-needhelp__q {
		grid-column: 1 / -1;
	}
}
