/*
 * My account area (/my-account/ and its child pages). Loaded on that page only.
 * Built on wms-cart.css (colour variables --c-*, buttons, alerts), which loads first.
 * Sections: frame and menu, headline figures, cards, list rows, charts, boxes, phones.
 */

/* ---------- Frame ---------- */
html .wms-acct { display: grid; gap: 32px; padding-bottom: 24px; }
html .wms-acct *, html .wms-acct *::before, html .wms-acct *::after { box-sizing: border-box; }
html .wms-acct h4 { margin: 0; font: 700 16px/1.3 var(--c-display); color: var(--c-black); overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }

html .wms-acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
html .wms-acct-head h1 { margin: 0 0 8px; font: 800 clamp(32px, 4vw, 48px)/1.1 var(--c-display); letter-spacing: -.01em; color: var(--c-black); }
html .wms-acct-head p { max-width: 720px; font-size: 18px; color: var(--c-text); }
html .wms-acct-head__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Account menu: a row of pills; the current page is black. Scrolls sideways on phones. */
html .wms-acct-nav { margin: 0 -4px; overflow-x: auto; scrollbar-width: none; }
html .wms-acct-nav::-webkit-scrollbar { display: none; }
html .wms-acct-nav ul { display: flex; gap: 8px; margin: 0; padding: 4px; list-style: none; min-width: max-content; }
html .wms-acct-nav li { margin: 0; }
html .wms-acct-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--c-section-line); background: var(--c-white); font: 600 15px/1 var(--c-display); color: var(--c-charcoal); text-decoration: none; white-space: nowrap; transition: border-color .15s, background-color .15s; }
html .wms-acct-nav a:hover { border-color: var(--c-black); color: var(--c-black); }
html .wms-acct-nav a:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }
html .wms-acct-nav a[aria-current="page"] { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); }
html .wms-acct-nav .wms-acct-nav__out { margin-left: auto; padding-left: 16px; }
html .wms-acct-nav .wms-acct-nav__out a { border-color: transparent; background: none; color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }

/* Small uppercase labels */
html .wms-acct .wms-acct-label { margin: 0; font: 700 13px/1.3 var(--c-display); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
html .wms-acct .wms-acct-label span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--c-smoke); border: 1px solid var(--c-divider); letter-spacing: 0; color: var(--c-charcoal); }
html .wms-acct .wms-acct-sub { margin: 24px 0 12px; }

/* ---------- Headline figures ---------- */
html .wms-acct-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
html .wms-acct .wms-acct-kpi { position: relative; display: grid; gap: 6px; padding: 24px; background: var(--c-white); border: 1px solid var(--c-section-line); border-radius: var(--c-card-radius); color: var(--c-black); text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: border-color .15s, box-shadow .15s, transform .15s; overflow: hidden; }
html .wms-acct .wms-acct-kpi:hover, html .wms-acct .wms-acct-kpi:focus-visible { border-color: var(--c-black); box-shadow: var(--c-shadow); transform: translateY(-2px); color: var(--c-black); }
html .wms-acct-kpi__label { font: 700 13px/1.3 var(--c-display); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
html .wms-acct-kpi__value { font: 800 clamp(32px, 3.2vw, 44px)/1.05 var(--c-display); letter-spacing: -.02em; color: var(--c-black); font-variant-numeric: tabular-nums; }
html .wms-acct-kpi__note { font-size: 15px; color: var(--c-text); }
html .wms-acct .wms-acct-kpi.is-alert { background: var(--c-tint); border-color: var(--c-orange); }

/* ---------- Cards ---------- */
html .wms-acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
html .wms-acct-grid--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
html .wms-acct-card { padding: 28px; background: var(--c-white); border: 1px solid var(--c-section-line); border-radius: var(--c-card-radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); min-width: 0; }
html .wms-acct-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
html .wms-acct-card--list { background: var(--c-smoke); }
html .wms-acct-card--list .wms-acct-row:last-child { margin-bottom: 0; }
html .wms-acct-figure { margin: 0 0 16px !important; font-size: 15px; color: var(--c-text); }
html .wms-acct-figure b { margin-right: 6px; font: 800 28px/1 var(--c-display); color: var(--c-black); font-variant-numeric: tabular-nums; }
html .wms-acct-foot { margin-top: 16px !important; font-size: 14px; color: var(--c-muted); }

/* Usage: ring + figures, then a list of sites */
html .wms-acct-usage-sum { display: flex; align-items: center; gap: 28px; padding: 20px; background: var(--c-smoke); border: 1px solid var(--c-divider); border-radius: var(--c-radius); }
html .wms-acct-usage-sum dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; flex: 1; margin: 0; }
html .wms-acct-usage-sum dt { font: 700 12px/1.3 var(--c-display); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
html .wms-acct-usage-sum dd { margin: 4px 0 0; font: 800 22px/1.2 var(--c-display); color: var(--c-black); font-variant-numeric: tabular-nums; }
html .wms-acct-usage-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
html .wms-acct-usage-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 20px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--c-divider); }
html .wms-acct-usage-list li:last-child { padding-bottom: 0; border-bottom: 0; }
html .wms-acct-usage__name p { font-size: 14px; color: var(--c-muted); }

/* Coming up: a vertical timeline */
html .wms-acct-timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
html .wms-acct-timeline li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; margin: 0; padding: 0 0 20px 24px; }
html .wms-acct-timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: -8px; width: 2px; background: var(--c-divider); }
html .wms-acct-timeline li:last-child::before { display: none; }
html .wms-acct-timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-white); box-shadow: inset 0 0 0 2px var(--c-section-line); }
html .wms-acct-timeline li.is-soon::after { background: var(--c-orange); box-shadow: 0 0 0 4px var(--c-tint); }
html .wms-acct-when { display: grid; font-size: 14px; color: var(--c-muted); }
html .wms-acct-when b { font: 700 15px var(--c-display); color: var(--c-black); }
html .wms-acct-timeline p { font-size: 14px; color: var(--c-text); }

/* ---------- List rows: name on top (h3), what it is underneath (p) ---------- */
html .wms-acct-group { display: grid; gap: 12px; }
html .wms-acct-group .wms-acct-label { margin-bottom: 4px; }
html .wms-acct-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 116px auto;
	align-items: center;
	gap: 24px;
	margin: 0 0 12px;
	padding: 20px 24px;
	background: var(--c-white);
	border: 1px solid var(--c-section-line);
	border-radius: var(--c-radius);
	transition: border-color .15s, box-shadow .15s;
}
html .wms-acct-group .wms-acct-row { margin: 0; }
html .wms-acct-row:hover { border-color: var(--c-charcoal); box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
html .wms-acct .wms-acct-row h3 { margin: 0; font: 700 19px/1.3 var(--c-display); color: var(--c-black); overflow-wrap: anywhere; }
html .wms-acct-row__main > p { margin-top: 2px; font-size: 15px; color: var(--c-text); }
html .wms-acct-row__meta { display: flex; gap: 28px; margin: 0; }
html .wms-acct-row__meta dt, html .wms-acct-strip dt { font: 700 12px/1.3 var(--c-display); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
html .wms-acct-row__meta dd { margin: 2px 0 0; font-size: 15px; color: var(--c-black); white-space: nowrap; font-variant-numeric: tabular-nums; }
html .wms-acct-row__meta dd small { font-size: 13px; color: var(--c-muted); }
html .wms-acct-row__meta b { font: 800 16px var(--c-display); }
html .wms-acct-row__actions { display: flex; justify-content: flex-end; gap: 8px; }
html .wms-acct-soon { display: block; font: 700 13px var(--c-display) !important; color: var(--c-link); }
html .wms-acct-usage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 640px; margin-top: 14px; }
html .wms-acct-card--compact .wms-acct-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 20px; }
html .wms-acct-card--compact .wms-acct-row__meta { grid-column: 1; grid-row: 2; gap: 20px; }
html .wms-acct-card--compact .wms-acct-pill { grid-column: 2; grid-row: 1; justify-self: end; }
html .wms-acct-card--compact .wms-acct-row__actions { grid-column: 2; grid-row: 2; }
html .wms-acct-card--compact .wms-acct-row > span:empty { display: none; }
html .wms-acct .wms-acct-card--compact .wms-acct-row h3 { font-size: 17px; }

/* Status pills: green only for good news */
html .wms-acct-pill { justify-self: center; padding: 5px 12px; border-radius: 999px; background: var(--c-smoke); border: 1px solid var(--c-divider); font: 700 12px/1.2 var(--c-display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--c-charcoal); }
html .wms-acct-pill.is-ok { background: var(--c-ok-tint); border-color: transparent; color: var(--c-ok); }
html .wms-acct-pill.is-wait { background: var(--c-tint); border-color: transparent; color: var(--c-link); }
html .wms-acct-pill.is-bad { background: #FFF5F5; border-color: transparent; color: var(--c-error); }
html .wms-acct-pill.is-off { color: var(--c-muted); }

/* Summary strip at the top of child pages */
html .wms-acct-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: var(--c-smoke); border: 1px solid var(--c-section-line); border-radius: var(--c-card-radius); }
html .wms-acct-strip > div { padding: 20px 28px; border-left: 1px solid var(--c-section-line); }
html .wms-acct-strip > div:first-child { border-left: 0; }
html .wms-acct-strip dd { margin: 6px 0 0; font: 800 28px/1.15 var(--c-display); color: var(--c-black); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
html .wms-acct-strip dd small { display: block; margin-top: 2px; font: 400 15px var(--c-body); color: var(--c-text); }
html .wms-acct-allclear { padding: 14px 20px; border-radius: var(--c-radius); background: var(--c-ok-tint); color: var(--c-ok); font-weight: 600; }
html .wms-acct-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--c-text); }

/* Empty and unavailable states */
html .wms-acct-empty { padding: 32px 24px; text-align: center; background: var(--c-smoke); border: 1px dashed var(--c-section-line); border-radius: var(--c-radius); }
html .wms-acct .wms-acct-empty h3 { margin-bottom: 6px; font: 700 18px/1.3 var(--c-display); }
html .wms-acct-empty p { color: var(--c-text); }
html .wms-acct-empty p + p { margin-top: 16px; }
html .wms-acct-card--list .wms-acct-empty { background: var(--c-white); }

/* ---------- Charts ---------- */
html .wms-chart { margin: 0; }
html .wms-chart__plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; height: 220px; }
html .wms-chart__y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 26px; font: 400 12px/1 var(--c-body); color: var(--c-muted); text-align: right; font-variant-numeric: tabular-nums; }
html .wms-chart__y i { font-style: normal; transform: translateY(-50%); }
html .wms-chart__y i:last-child { transform: translateY(50%); }
html .wms-chart__cols {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 0 0 26px;
	list-style: none;
	/* Three recessive gridlines: top, middle, baseline. */
	background:
		linear-gradient(var(--c-divider), var(--c-divider)) 0 0 / 100% 1px no-repeat,
		linear-gradient(var(--c-divider), var(--c-divider)) 0 calc(50% - 13px) / 100% 1px no-repeat,
		linear-gradient(var(--c-charcoal), var(--c-charcoal)) 0 calc(100% - 26px) / 100% 1px no-repeat;
}
html .wms-chart__cols li { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; margin: 0; cursor: default; outline: none; }
html .wms-chart__bar { display: block; width: min(100%, 28px); height: var(--h); min-height: 0; background: var(--c-orange); border-radius: 4px 4px 0 0; transition: filter .15s; }
html .wms-chart__x { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font: 400 12px/1 var(--c-body); color: var(--c-muted); }
html .wms-chart__cols li::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	z-index: 3;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--c-black);
	color: var(--c-white);
	font: 600 13px/1.2 var(--c-body);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity .12s, transform .12s;
}
html .wms-chart__cols li:first-child::after, html .wms-chart__cols li:nth-child(2)::after { left: 0; transform: translate(0, 4px); }
html .wms-chart__cols li:nth-last-child(-n+2)::after { left: auto; right: 0; transform: translate(0, 4px); }
html .wms-chart__cols li:hover::after, html .wms-chart__cols li:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
html .wms-chart__cols li:first-child:hover::after, html .wms-chart__cols li:nth-child(2):hover::after, html .wms-chart__cols li:nth-last-child(-n+2):hover::after,
html .wms-chart__cols li:first-child:focus-visible::after, html .wms-chart__cols li:nth-child(2):focus-visible::after, html .wms-chart__cols li:nth-last-child(-n+2):focus-visible::after { transform: none; }
html .wms-chart__cols li:hover .wms-chart__bar, html .wms-chart__cols li:focus-visible .wms-chart__bar { filter: brightness(.88); }
html .wms-chart__cols li:focus-visible .wms-chart__bar { outline: 2px solid var(--c-black); outline-offset: 2px; }

/* Usage meter */
html .wms-meter { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 12px; }
html .wms-meter__label { font: 700 12px/1.3 var(--c-display); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
html .wms-meter__value { justify-self: end; font-size: 14px; color: var(--c-charcoal); font-variant-numeric: tabular-nums; }
html .wms-meter__value b { color: var(--c-link); }
html .wms-meter__track { grid-column: 1 / -1; display: block; height: 8px; border-radius: 999px; background: var(--c-divider); overflow: hidden; }
html .wms-meter__track span { display: block; width: var(--w); height: 100%; border-radius: 999px; background: var(--c-orange); }
html .wms-meter.is-high .wms-meter__track span { background: var(--c-link); }

/* Ring gauge */
html .wms-ring { position: relative; flex: 0 0 132px; width: 132px; height: 132px; }
html .wms-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
html .wms-ring circle { fill: none; stroke-width: 12; }
html .wms-ring__track { stroke: var(--c-divider); }
html .wms-ring__fill { stroke: var(--c-orange); stroke-linecap: round; }
html .wms-ring__text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
html .wms-ring__text b { font: 800 30px/1 var(--c-display); color: var(--c-black); }
html .wms-ring__text small { max-width: 84px; margin-top: 4px; font-size: 12px; line-height: 1.2; color: var(--c-muted); }

/* ---------- The four boxes ---------- */
html .wms-acct-tiles { display: grid; gap: 12px; margin-top: 8px; }
html .wms-acct-tiles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html .wms-acct .wms-acct-tile { display: grid; gap: 4px; padding: 24px; background: var(--c-smoke); border: 1px solid var(--c-section-line); border-radius: var(--c-radius); color: var(--c-black); text-decoration: none; transition: border-color .15s, background-color .15s; }
html .wms-acct .wms-acct-tile:hover, html .wms-acct .wms-acct-tile:focus-visible, html .wms-acct .wms-acct-tile[aria-current="page"] { background: var(--c-white); border-color: var(--c-charcoal); color: var(--c-black); }
html .wms-acct-tile b { font: 700 18px/1.3 var(--c-display); }
html .wms-acct-tile small { font-size: 15px; color: var(--c-text); }

/* Sign-in page: hide the old short services view while the page reloads into the account. */
html [data-wms-account].is-reloading .wms-a, html [data-wms-account] .wms-a { visibility: hidden; }

/* ---------- Tablets ---------- */
@media (max-width: 1100px) {
	html .wms-acct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html .wms-acct-grid, html .wms-acct-grid--wide { grid-template-columns: 1fr; }
	html .wms-acct-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html .wms-acct-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; }
	html .wms-acct-row__meta { grid-column: 1; grid-row: 2; }
	html .wms-acct-row > .wms-acct-pill, html .wms-acct-row > span:empty { grid-column: 2; grid-row: 1; justify-self: end; }
	html .wms-acct-row__actions { grid-column: 2; grid-row: 2; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	html .wms-acct { gap: 24px; }
	html .wms-acct-head { align-items: flex-start; }
	html .wms-acct-head p { font-size: 16px; }
	html .wms-acct-head__actions { width: 100%; }
	html .wms-acct-head__actions .wms-c-btn { flex: 1 1 auto; }
	html .wms-acct-nav { margin: 0; padding: 0; }
	html .wms-acct-nav .wms-acct-nav__out { margin-left: 0; padding-left: 0; }
	html .wms-acct-kpis { gap: 12px; }
	html .wms-acct .wms-acct-kpi { padding: 18px 16px 18px 20px; border-radius: 20px; }
	html .wms-acct-kpi__value { font-size: 30px; }
	html .wms-acct-kpi__note { font-size: 14px; }
	html .wms-acct-card { padding: 20px 16px; border-radius: 20px; }
	html .wms-acct-usage-sum { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
	html .wms-acct-usage-sum .wms-ring { align-self: center; }
	html .wms-acct-usage-sum dl { gap: 8px; }
	html .wms-acct-usage-sum dd { font-size: 17px; }
	html .wms-acct-usage-list li { grid-template-columns: 1fr; gap: 8px; }
	html .wms-acct-timeline li { grid-template-columns: 1fr; gap: 2px; }
	html .wms-chart__plot { height: 180px; }
	html .wms-chart__cols { gap: 3px; }
	html .wms-chart__x { font-size: 10px; }
	html .wms-acct-row { padding: 16px; gap: 12px; }
	html .wms-acct .wms-acct-row h3 { font-size: 17px; }
	html .wms-acct-row__meta { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px 24px; }
	html .wms-acct-row__actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; flex-wrap: wrap; }
	html .wms-acct-usage { grid-template-columns: 1fr; }
	html .wms-acct-card--compact .wms-acct-row__meta { grid-column: 1 / -1; }
	html .wms-acct-card--compact .wms-acct-row__actions { grid-column: 1 / -1; grid-row: 3; }
	html .wms-acct-strip { grid-template-columns: 1fr; }
	html .wms-acct-strip > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 20px; border-left: 0; border-top: 1px solid var(--c-section-line); }
	html .wms-acct-strip dd { margin: 0; text-align: right; }
	html .wms-acct-strip > div:first-child { border-top: 0; }
	html .wms-acct-strip dd { font-size: 20px; }
	html .wms-acct-row > .wms-acct-pill { align-self: start; }
	html .wms-acct-tiles__grid { grid-template-columns: 1fr; }
	html .wms-acct .wms-acct-tile { padding: 20px; }
}

/* ---------- Forms on account pages (tickets, domains, details, services, reset) ---------- */
html .wms-acct-form { display: grid; gap: 16px; margin: 0; }
html .wms-acct-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html .wms-acct-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
html .wms-acct-inline { display: inline-flex; margin: 0; }
html .wms-acct-card > h3, html .wms-acct-form > h3 { margin: 0 0 12px; font: 700 20px/1.3 var(--c-display); color: var(--c-black); }
html .wms-acct-card > p { margin: 0 0 16px; color: var(--c-text); }
html .wms-acct-card > p:last-child { margin-bottom: 0; }
html .wms-acct .wms-c-field input[type="file"] { padding: 12px 16px; border: 1.5px dashed var(--c-field-line); border-radius: var(--c-radius); background: var(--c-smoke); font-size: 15px; }
html .wms-acct-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--c-charcoal); cursor: pointer; }
html .wms-acct-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--c-black); flex: 0 0 auto; }
html .wms-acct-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 0; border: 0; }
html .wms-acct-checks legend { width: 100%; margin: 0 0 8px; padding: 0; font: 700 14px/1.3 var(--c-display); color: var(--c-black); }
html .wms-acct-card--danger { border-color: var(--c-section-line); background: var(--c-smoke); }
html .wms-acct--narrow { max-width: 560px; margin: 0 auto; }
html .wms-c-alert.is-ok { border-color: transparent; background: var(--c-ok-tint); color: var(--c-ok); }
html .wms-acct .wms-c-btn--dark { background: var(--c-black); color: var(--c-white); }
html .wms-acct .wms-c-btn--dark:hover { background: var(--c-orange); color: var(--c-white); }
html .wms-acct-plain { margin: 0; padding: 0 0 0 18px; color: var(--c-text); }
html .wms-acct-head__actions form { margin: 0; }

/* Collapsible rows (contacts) and the "Add a contact" panel */
html .wms-acct-row--details { display: block; }
html .wms-acct-row--details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
html .wms-acct-row--details > summary::-webkit-details-marker, html .wms-acct-add > summary::-webkit-details-marker { display: none; }
html .wms-acct-row--details[open] > summary { margin-bottom: 20px; }
html .wms-acct-row--details .wms-acct-inline { margin-top: 12px; }
html .wms-acct-add > summary { list-style: none; cursor: pointer; width: max-content; }
html .wms-acct-add[open] > summary { margin-bottom: 20px; }
html .wms-acct-add { background: var(--c-white); }

/* Ticket conversation */
html .wms-acct-thread { display: grid; gap: 16px; }
html .wms-acct-msg { padding: 20px 24px; background: var(--c-white); border: 1px solid var(--c-section-line); border-radius: var(--c-card-radius); }
html .wms-acct-msg.is-staff { background: var(--c-smoke); border-left: 4px solid var(--c-orange); }
html .wms-acct-msg > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
html .wms-acct-msg > header b { font: 700 16px var(--c-display); color: var(--c-black); }
html .wms-acct-msg > header time { font-size: 14px; color: var(--c-muted); }
html .wms-acct-msg__body { color: var(--c-charcoal); overflow-wrap: anywhere; }
html .wms-acct-msg__body p { margin: 0 0 12px; }
html .wms-acct-msg__body p:last-child { margin-bottom: 0; }
html .wms-acct-msg__files { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
html .wms-acct-msg__files a { display: inline-block; padding: 6px 14px; border: 1px solid var(--c-section-line); border-radius: 999px; font-size: 14px; color: var(--c-link); }

/* Invoice table */
html .wms-acct-table { width: 100%; border-collapse: collapse; font-size: 16px; }
html .wms-acct-table th, html .wms-acct-table td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--c-divider); background: none; text-align: left; vertical-align: top; color: var(--c-charcoal); }
html .wms-acct-table thead th { font: 700 12px/1.3 var(--c-display); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
html .wms-acct-table .num { text-align: right; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }
html .wms-acct-table tfoot th { font-weight: 600; text-align: right; }
html .wms-acct-table tfoot tr.is-total th, html .wms-acct-table tfoot tr.is-total td { font: 800 18px var(--c-display); color: var(--c-black); border-bottom: 0; }

/* Pager */
html .wms-acct-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 8px; color: var(--c-text); }
html .wms-acct-pager > :last-child { justify-self: end; }

@media (max-width: 767px) {
	html .wms-acct-form__grid { grid-template-columns: 1fr; }
	html .wms-acct-msg { padding: 16px; border-radius: 20px; }
	html .wms-acct-row--details > summary { align-items: flex-start; }
}
/* The theme stripes table rows; invoice tables don't. */
html .wms-acct .wms-acct-table tbody > tr:nth-child(odd) > td, html .wms-acct .wms-acct-table tbody > tr:nth-child(odd) > th, html .wms-acct .wms-acct-table tbody tr:hover > td { background: transparent; }
/* Long domain names as page headings wrap instead of widening the page on phones. */
html .wms-acct-head h1 { overflow-wrap: anywhere; }
html .wms-acct-head > div { min-width: 0; }
