/* Patient account page. Mirrors the order wizard's visual language;
   colors come from the theme presets with the same fallbacks flow.css uses. */
.tbfs-account {
	--acct-teal: var(--wp--preset--color--teal, #84cfc9);
	--acct-teal-dark: var(--wp--preset--color--teal-dark, #3f9e97);
	--acct-teal-light: var(--wp--preset--color--teal-light, #e9f7f6);
	--acct-coral: var(--wp--preset--color--coral, #f37868);
	--acct-coral-dark: var(--wp--preset--color--coral-dark, #e0604f);
	--acct-coral-soft: var(--wp--preset--color--coral-soft, #fdeae7);
	--acct-cream: var(--wp--preset--color--cream, #fdf8f4);
	--acct-ink: var(--wp--preset--color--contrast, #3a3a3a);
	--acct-muted: var(--wp--preset--color--muted, #677075);
	color: var(--acct-ink);
	line-height: 1.55;
}

.tbfs-account__band {
	background: var(--acct-coral-soft);
	position: relative;
	overflow: hidden;
	padding: clamp(2.1rem, 4vw, 2.9rem) 0 clamp(3.4rem, 6vw, 4.2rem);
}
/* same coral-only dot cluster as the homepage, payer, and wizard heroes */
.tbfs-account__band::before {
	content: "";
	position: absolute;
	top: -30px;
	left: -30px;
	width: 170px;
	height: 170px;
	background-image: radial-gradient(rgba(243, 120, 104, 0.28) 2.5px, transparent 3px);
	background-size: 18px 18px;
	border-radius: 50%;
	pointer-events: none;
}
/* narrow screens: the cluster crowds the hero text, so drop it (matches the
   payer/flow hero rule in the theme stylesheet) */
@media (max-width: 899px) {
	.tbfs-account__band::before {
		display: none;
	}
}
.tbfs-account__band-in,
.tbfs-account__body {
	max-width: 560px;
	margin: 0 auto;
	padding: 0 16px;
	position: relative;
	z-index: 1;
}
.tbfs-account__eyebrow {
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--acct-coral-dark);
	font-weight: 700;
	margin-bottom: 6px;
}
.tbfs-account__band h1 {
	font-family: var(--wp--preset--font-family--heading, Georgia, serif);
	font-weight: 600;
	font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0;
}
.tbfs-account__band p {
	color: var(--acct-muted);
	margin: 8px 0 0;
	max-width: 46ch;
	font-size: 15.5px;
}
.tbfs-account__body { margin: -2.25rem auto 3.5rem; }
/* home starts with the teal banner, which reads better clear of the band */
.tbfs-account.view-home .tbfs-account__body { margin-top: 1.1rem; }
.tbfs-account .acct-band-out {
	position: absolute;
	top: 0.15rem;
	right: 16px;
	font-size: 14px;
	color: var(--acct-muted);
	text-decoration: underline;
	cursor: pointer;
	background: none;
	border: 0;
	font-family: inherit;
	padding: 0;
}
.tbfs-account .acct-band-back {
	display: inline-block;
	font-size: 14px;
	color: var(--acct-muted);
	text-decoration: underline;
	cursor: pointer;
	background: none;
	border: 0;
	font-family: inherit;
	padding: 0;
	margin-bottom: 0.9rem;
}

.tbfs-account .acct-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(90, 60, 50, 0.08);
	padding: 28px;
}

/* --- forms --- */
.tbfs-account label {
	display: block;
	font-weight: 700;
	font-size: 15px;
	margin: 0 0 6px;
}
.tbfs-account input[type="text"],
.tbfs-account input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid #e4d8ce;
	border-radius: 10px;
	padding: 13px 14px;
	font: inherit;
	font-size: 16px;
	background: #fff;
	color: inherit;
}
.tbfs-account input:focus {
	outline: none;
	border-color: var(--acct-teal);
}
.tbfs-account .acct-btn {
	display: inline-block;
	background: var(--acct-coral);
	color: #fff;
	border: 0;
	border-radius: 99px;
	padding: 14px 30px;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	width: 100%;
	margin-top: 18px;
	text-align: center;
	text-decoration: none;
}
.tbfs-account .acct-btn:hover { background: var(--acct-coral-dark); color: #fff; }
.tbfs-account .acct-btn[disabled] { opacity: 0.6; cursor: wait; }
.tbfs-account .acct-btn--teal {
	background: var(--acct-teal-dark);
	width: auto;
	padding: 11px 22px;
	font-size: 15px;
	margin-top: 12px;
}
.tbfs-account .acct-micro {
	font-size: 13.5px;
	color: var(--acct-muted);
	margin-top: 12px;
}
.tbfs-account .acct-micro a { color: var(--acct-coral-dark); }
.tbfs-account .acct-error {
	background: var(--acct-coral-soft);
	color: #7c3527;
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 14.5px;
	margin: 14px 0 0;
}

.tbfs-account .acct-steps {
	display: flex;
	gap: 6px;
	align-items: center;
	font-size: 13px;
	color: var(--acct-muted);
	margin-bottom: 22px;
}
.tbfs-account .acct-steps .bar { flex: 1; height: 4px; border-radius: 4px; background: #f1e7df; }
.tbfs-account .acct-steps .bar.done { background: var(--acct-teal-dark); }

.tbfs-account .acct-code {
	display: flex;
	gap: 6px;
}
.tbfs-account .acct-code input {
	flex: 1;
	min-width: 0;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	padding: 12px 0;
}

.tbfs-account .acct-trust {
	display: flex;
	gap: 12px;
	background: var(--acct-teal-light);
	border-radius: 12px;
	padding: 14px 16px;
	margin-top: 20px;
	font-size: 14px;
	color: #2d6b65;
	align-items: flex-start;
}
.tbfs-account .acct-trust svg { flex: none; margin-top: 2px; }
.tbfs-account .acct-foot {
	text-align: center;
	font-size: 14px;
	color: var(--acct-muted);
	margin-top: 22px;
}

/* --- datepicker (same interaction as the wizard's dateField) --- */
.tbfs-account .acct-datepick { position: relative; }
.tbfs-account .acct-datepick__pop {
	position: absolute;
	z-index: 40;
	top: 100%;
	left: 0;
	margin-top: 0.3rem;
	width: min(320px, 100%);
	background: #fff;
	border: 2px solid #e6ecea;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(35, 60, 57, 0.16);
	padding: 0.8rem;
	box-sizing: border-box;
}
.tbfs-account .acct-datepick__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	margin-bottom: 0.6rem;
	font-size: 15px;
}
.tbfs-account .acct-datepick__back {
	border: 0;
	background: var(--acct-teal-light);
	color: var(--acct-teal-dark);
	border-radius: 8px;
	width: 1.8rem;
	height: 1.8rem;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.tbfs-account .acct-datepick__grid { display: grid; gap: 0.3rem; }
.tbfs-account .acct-datepick__grid--years { grid-template-columns: repeat(4, 1fr); max-height: 220px; overflow-y: auto; }
.tbfs-account .acct-datepick__grid--months { grid-template-columns: repeat(3, 1fr); }
.tbfs-account .acct-datepick__grid--days { grid-template-columns: repeat(7, 1fr); }
.tbfs-account .acct-datepick__grid button {
	border: 0;
	background: transparent;
	border-radius: 8px;
	padding: 0.45rem 0.2rem;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
}
.tbfs-account .acct-datepick__grid button:hover,
.tbfs-account .acct-datepick__grid button:focus-visible {
	background: var(--acct-teal-light);
	color: var(--acct-teal-dark);
}
.tbfs-account .acct-datepick__wd {
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--acct-muted);
	padding-bottom: 0.2rem;
}

/* --- account home --- */
.tbfs-account .acct-greet { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tbfs-account .acct-greet .out {
	margin-left: auto;
	font-size: 14px;
	color: var(--acct-muted);
	text-decoration: underline;
	cursor: pointer;
	background: none;
	border: 0;
	font-family: inherit;
	padding: 0;
}
.tbfs-account .acct-sub { font-size: 14.5px; color: var(--acct-muted); margin: 4px 0 0; }

.tbfs-account .acct-banner {
	display: flex;
	gap: 14px;
	background: var(--acct-teal-light);
	border: 1px solid #cdeae7;
	border-radius: 14px;
	padding: 18px;
	margin: 22px 0 6px;
	align-items: flex-start;
}
.tbfs-account .acct-banner b { color: #2d6b65; }
.tbfs-account .acct-banner p { margin: 2px 0 0; font-size: 14.5px; color: #2d6b65; }
.tbfs-account .acct-banner svg { flex: none; margin-top: 2px; }

.tbfs-account h2.acct-sec {
	font-family: var(--wp--preset--font-family--heading, Georgia, serif);
	font-weight: 600;
	font-size: 21px;
	margin: 30px 0 12px;
}
.tbfs-account .acct-order {
	display: flex;
	gap: 14px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(90, 60, 50, 0.06);
	padding: 18px;
	margin-bottom: 12px;
	align-items: center;
	width: 100%;
	border: 0;
	font: inherit;
	text-align: left;
	color: inherit;
}
.tbfs-account button.acct-order { cursor: pointer; }
.tbfs-account .acct-order .thumb {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: var(--acct-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.tbfs-account .acct-order .meta { min-width: 0; }
.tbfs-account .acct-order .meta b { font-size: 15.5px; display: block; }
.tbfs-account .acct-order .meta span { font-size: 13.5px; color: var(--acct-muted); }
.tbfs-account .acct-pill {
	margin-left: auto;
	flex: none;
	font-size: 12.5px;
	font-weight: 700;
	border-radius: 99px;
	padding: 5px 12px;
	background: #f1ece6;
	color: var(--acct-muted);
}
.tbfs-account .acct-pill--active { background: var(--acct-teal-light); color: #2d6b65; }
.tbfs-account .acct-pill--done { background: #eef3e9; color: #4c6b31; }
.tbfs-account .acct-empty {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(90, 60, 50, 0.06);
	padding: 20px;
	font-size: 15px;
}
.tbfs-account .acct-note { font-size: 13.5px; color: var(--acct-muted); margin-top: 14px; }

/* --- order detail --- */
.tbfs-account .acct-back {
	font-size: 14px;
	color: var(--acct-muted);
	text-decoration: underline;
	cursor: pointer;
	background: none;
	border: 0;
	font-family: inherit;
	padding: 0;
}
.tbfs-account .acct-dmeta { font-size: 14px; color: var(--acct-muted); margin: 8px 0 0; }
.tbfs-account .acct-tl { list-style: none; margin: 4px 0 8px; padding: 0; }
.tbfs-account .acct-tl li { display: flex; gap: 14px; padding: 0 0 26px; position: relative; }
.tbfs-account .acct-tl li::before {
	content: '';
	position: absolute;
	left: 11px;
	top: 26px;
	bottom: 0;
	width: 2px;
	background: #eadfd5;
}
.tbfs-account .acct-tl li:last-child::before { display: none; }
.tbfs-account .acct-tl .dot {
	width: 24px;
	height: 24px;
	border-radius: 99px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1e7df;
	color: #b9a894;
	font-size: 13px;
	z-index: 1;
}
.tbfs-account .acct-tl li.done .dot { background: var(--acct-teal-dark); color: #fff; }
.tbfs-account .acct-tl li.now .dot { background: var(--acct-coral); color: #fff; }
.tbfs-account .acct-tl b { display: block; font-size: 15.5px; }
.tbfs-account .acct-tl span { font-size: 13.5px; color: var(--acct-muted); }
.tbfs-account .acct-tl .tl-sub { display: block; margin-top: 4px; font-size: 13px; }
.tbfs-account .acct-items {
	font-size: 14.5px;
	background: var(--acct-cream);
	border-radius: 12px;
	padding: 14px 18px;
}
.tbfs-account .acct-items div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.tbfs-account .acct-help { margin-top: 20px; font-size: 14.5px; color: var(--acct-muted); }
.tbfs-account .acct-help a { color: var(--acct-coral-dark); font-weight: 700; text-decoration: none; }

.tbfs-account .acct-loading {
	text-align: center;
	color: var(--acct-muted);
	padding: 40px 0;
	font-size: 15px;
}

/* --- upgrade-fee payment card (mirrors the staff caseUpgradeFee LWC) --- */
.tbfs-account .acct-pay {
	margin-top: 20px;
	padding: 18px 20px;
	border-radius: 14px;
	border: 1.5px solid #ecdfd4;
	background: var(--acct-cream);
	/* Per-state accent, overridden below; drives chip, bar, and left edge. */
	--pay-accent: var(--acct-teal-dark);
	--pay-soft: var(--acct-teal-light);
	border-left: 5px solid var(--pay-accent);
}
.tbfs-account .acct-pay.is-partial { --pay-accent: #c98a1e; --pay-soft: #fbf1dc; }
.tbfs-account .acct-pay.is-paid { --pay-accent: #3f9e97; --pay-soft: var(--acct-teal-light); }
.tbfs-account .acct-pay.is-overpaid { --pay-accent: var(--acct-coral-dark); --pay-soft: var(--acct-coral-soft); }
/* Covered: no fee. A calm reassurance strip, not the full figures card. */
.tbfs-account .acct-pay.is-covered { --pay-accent: #3f9e97; padding: 14px 18px; }
.tbfs-account .acct-pay-covered {
	display: flex; align-items: center; gap: 10px;
	margin: 0; font-size: 14px; color: var(--acct-ink);
}
.tbfs-account .acct-pay-covered-ic {
	flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--acct-teal-light); color: #2f7f78; font-size: 12px; font-weight: 700;
}
.tbfs-account .acct-pay-loading { color: var(--acct-muted); font-size: 14px; margin: 0; }
.tbfs-account .acct-pay-soft { color: var(--acct-muted); font-size: 14px; margin: 0; }

.tbfs-account .acct-pay-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tbfs-account .acct-pay-title { font-weight: 700; font-size: 15.5px; }
.tbfs-account .acct-pay-chip {
	flex: 0 0 auto;
	font-size: 12px; font-weight: 700;
	padding: 4px 11px; border-radius: 99px;
	color: var(--pay-accent); background: var(--pay-soft);
}

.tbfs-account .acct-pay-bar {
	height: 7px; border-radius: 99px;
	background: #ece0d5; margin: 14px 0 4px; overflow: hidden;
}
.tbfs-account .acct-pay-bar-fill {
	display: block; height: 100%; border-radius: 99px;
	background: var(--pay-accent); transition: width .3s ease;
}

.tbfs-account .acct-pay-figs {
	display: flex; gap: 10px; margin: 14px 0 4px;
}
.tbfs-account .acct-pay-fig {
	flex: 1 1 0; background: #fff; border-radius: 10px; padding: 10px 12px;
}
.tbfs-account .acct-pay-fig-l {
	display: block; font-size: 12px; color: var(--acct-muted); margin-bottom: 2px;
}
.tbfs-account .acct-pay-fig-v { display: block; font-weight: 700; font-size: 17px; }

.tbfs-account .acct-pay-note { font-size: 14px; color: var(--acct-muted); margin: 12px 0 0; }
.tbfs-account .acct-pay-note a { color: var(--acct-coral-dark); font-weight: 700; text-decoration: none; }
.tbfs-account .acct-pay-btn {
	display: inline-block; margin-top: 14px;
	background: var(--acct-coral); color: #fff;
	border-radius: 99px; padding: 12px 26px;
	font-weight: 700; font-size: 15px; text-decoration: none;
}
.tbfs-account .acct-pay-btn:hover { background: var(--acct-coral-dark); color: #fff; }
.tbfs-account .acct-pay-foot { font-size: 12.5px; color: var(--acct-muted); margin: 14px 0 0; }
.tbfs-account .acct-pay-refresh { color: var(--acct-coral-dark); font-weight: 700; text-decoration: none; }

@media (max-width: 520px) {
	.tbfs-account .acct-pay-figs { flex-wrap: wrap; }
	.tbfs-account .acct-pay-fig { flex-basis: calc(50% - 5px); }
	.tbfs-account__band h1 { font-size: 25px; }
	.tbfs-account .acct-card { padding: 22px 18px; }
	.tbfs-account__band-in, .tbfs-account__body { padding: 0 12px; }
	.tbfs-account .acct-order { padding: 14px; gap: 11px; }
	.tbfs-account .acct-order .thumb { width: 44px; height: 44px; }
	.tbfs-account .acct-order .meta b { font-size: 14.5px; }
	.tbfs-account .acct-pill { font-size: 11.5px; padding: 4px 10px; }
	.tbfs-account .acct-banner { padding: 15px; }
	.tbfs-account .acct-banner .acct-btn--teal { width: 100%; box-sizing: border-box; }
}
