/* UX2 P20: what an account is for, on the signed-out /my-account/. px only (html{font-size:10px});
   each text node sets its family because legacy p/li/ul rules outrank inheritance.
   Revert: delete with inc/ux2/p20-account-purpose.php. */

.sb-ux2-p20,
.sb-ux2-p20 * {
	box-sizing: border-box;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
	letter-spacing: normal;
	text-transform: none;
}

.sb-ux2-p20 code.sb-ux2-p20__code {
	display: inline-block;
	margin: 0 0 0 6px;
	padding: 1px 6px;
	border: 1px dashed #8f8fc4;
	border-radius: 4px;
	background: #fff;
	color: #000080;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
	font-size: 12px !important;
	line-height: 18px !important;
	font-weight: 700 !important;
	vertical-align: 1px;
	white-space: nowrap;
}

.sb-ux2-p20 a { color: #000080 !important; text-decoration: none !important; }
.sb-ux2-p20 a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
/* My Account's legacy `#fl-main-content form a` colours win over a class; take the links back. */
.woocommerce-account #fl-main-content .sb-ux2-p20 a.sb-ux2-p20__portal,
.woocommerce-account #fl-main-content .sb-ux2-p20 a.sb-ux2-p20__pill { color: #000080 !important; }
.sb-ux2-p20 a:focus-visible { outline: 2px solid #000080 !important; outline-offset: 2px; border-radius: 4px; }
.sb-ux2-p20 a strong { font-weight: 600 !important; }

/* ---- Option 1: benefit strip ---- */
.sb-ux2-p20--strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 20px;
	margin: 0 0 24px;
	padding: 9px 16px;
	border: 1px solid #d3dcf5;
	border-radius: 8px;
	background: #f1f5ff;
	color: #1a1a40;
}
.sb-ux2-p20--strip ul.sb-ux2-p20__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.sb-ux2-p20--strip ul.sb-ux2-p20__list li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	color: #1a1a40;
	font-size: 14px !important;
	line-height: 20px !important;
	font-weight: 500 !important;
	white-space: nowrap;
}
.sb-ux2-p20--strip ul.sb-ux2-p20__list li::before { content: none !important; display: none !important; }
.sb-ux2-p20--strip ul.sb-ux2-p20__list li svg { color: #000080; flex: none; }
.sb-ux2-p20--strip ul.sb-ux2-p20__list li.sb-ux2-p20__offer { font-weight: 600 !important; color: #a33e10; }
.sb-ux2-p20--strip ul.sb-ux2-p20__list li.sb-ux2-p20__offer code.sb-ux2-p20__code { margin-left: 0; }
.sb-ux2-p20--strip a.sb-ux2-p20__portal {
	margin-left: auto;
	font-size: 13px !important;
	line-height: 20px !important;
	font-weight: 400 !important;
	white-space: nowrap;
}

.sb-ux2-p20 .sb-ux2-p20__nowrap { white-space: nowrap; }

/* ---- Option 2: inside the cards ---- */
p.sb-ux2-p20__reglede {
	margin: 0 0 18px !important;
	padding: 0 !important;
	color: #44506a;
	font-size: 14px !important;
	line-height: 21px !important;
	font-weight: 400 !important;
}
p.sb-ux2-p20__reglede .sb-ux2-p20__nowrap { white-space: nowrap; color: #1a1a40; font-weight: 600 !important; }
p.sb-ux2-p20__loginfoot {
	margin: 18px 0 0 !important;
	padding: 12px 0 0 !important;
	border-top: 1px solid #e3e6ee;
	color: #58677e;
	font-size: 13px !important;
	line-height: 20px !important;
	font-weight: 400 !important;
}
p.sb-ux2-p20__loginfoot a.sb-ux2-p20__portal { font-size: 13px !important; }

/* ---- Option 3: page lede + portal pill ---- */
.sb-ux2-p20--lede {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 0 0 24px;
}
.sb-ux2-p20--lede p.sb-ux2-p20__lede {
	flex: 1 1 560px;
	margin: 0 !important;
	padding: 0 !important;
	color: #44506a;
	font-size: 15px !important;
	line-height: 22px !important;
	font-weight: 400 !important;
}
.sb-ux2-p20--lede a.sb-ux2-p20__pill {
	flex: none;
	padding: 5px 12px;
	border: 1px solid #9fa3d6;
	border-radius: 999px;
	font-size: 13px !important;
	line-height: 18px !important;
	font-weight: 500 !important;
	white-space: nowrap;
}
.sb-ux2-p20--lede a.sb-ux2-p20__pill:hover { background: #f1f2fb; text-decoration: none !important; }

@media (max-width: 767px) {
	.sb-ux2-p20--strip { padding: 10px 12px; margin-bottom: 16px; }
	.sb-ux2-p20--strip ul.sb-ux2-p20__list { gap: 4px 14px; }
	.sb-ux2-p20--strip ul.sb-ux2-p20__list li { font-size: 13px !important; }
	.sb-ux2-p20--strip a.sb-ux2-p20__portal { margin-left: 0; white-space: normal; }
	.sb-ux2-p20--lede { margin-bottom: 16px; }
	.sb-ux2-p20--lede p.sb-ux2-p20__lede { font-size: 14px !important; line-height: 21px !important; flex-basis: 100%; }
}
