/**
 * The customer's licence screen inside My Account.
 *
 * Scoped tightly to .muh-acc-* because this renders inside whatever theme the
 * shop is wearing; nothing here may reach out and restyle the theme's account
 * page around it.
 */

.muh-acc-card,
.muh-acc-guide,
.muh-acc-empty,
.muh-acc-orderbox {
	--muh-line: #e2e8f0;
	--muh-ink: #0f172a;
	--muh-muted: #64748b;
	--muh-brand: #2563eb;

	border: 1px solid var(--muh-line);
	border-radius: 14px;
	padding: 22px;
	margin-bottom: 18px;
	background: #fff;
	color: var(--muh-ink);
	line-height: 1.7;
}

.muh-acc-card.is-stopped {
	background: #fffbfa;
	border-color: #fecaca;
}

.muh-acc-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

/* Headings carry their colour explicitly: the theme styles h2/h3/h4 globally
   and those rules are more specific than anything inherited from the card. */
.muh-acc-card__head h3,
.muh-acc-guide h3,
.muh-acc-empty h3,
.muh-acc-orderbox h2,
.muh-acc-downloads h4,
.muh-acc-sites h4 {
	color: var(--muh-ink);
}

.muh-acc-card__head h3 {
	margin: 6px 0 0;
	font-size: 20px;
}

.muh-acc-status {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}

.muh-acc-status--on {
	background: #f0fdf4;
	color: #15803d;
}

.muh-acc-status--off {
	background: #fef2f2;
	color: #b91c1c;
}

.muh-acc-expiry {
	text-align: center;
	font-size: 13px;
	color: var(--muh-muted);
}

.muh-acc-expiry strong {
	display: block;
	color: var(--muh-ink);
	font-size: 15px;
}

.muh-acc-key {
	margin-bottom: 18px;
}

.muh-acc-key label {
	display: block;
	font-size: 12px;
	color: var(--muh-muted);
	margin-bottom: 6px;
}

.muh-acc-key__row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.muh-acc-key__row input {
	flex: 1 1 260px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 16px;
	letter-spacing: 1px;
	padding: 12px 14px;
	border: 2px solid var(--muh-line);
	border-radius: 10px;
	background: #f8fafc;
	color: var(--muh-ink);
}

.muh-acc-copy,
.muh-acc-btn {
	display: inline-block;
	background: var(--muh-brand);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 12px 22px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
}

.muh-acc-copy:hover,
.muh-acc-btn:hover {
	background: #1d4ed8;
	color: #fff;
}

.muh-acc-warn {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 18px;
	font-size: 14px;
}

.muh-acc-downloads h4,
.muh-acc-sites h4 {
	font-size: 14px;
	margin: 0 0 10px;
	color: var(--muh-muted);
	font-weight: 700;
}

.muh-acc-dl {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 0;
	border-top: 1px solid var(--muh-line);
}

.muh-acc-dl small {
	display: block;
	color: var(--muh-muted);
	font-size: 12px;
}

.muh-acc-sites {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--muh-line);
}

.muh-acc-sites ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.muh-acc-sites li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--muh-line);
	font-size: 14px;
}

.muh-acc-sites li:last-child {
	border-bottom: none;
}

.muh-acc-sites small {
	color: var(--muh-muted);
	display: block;
	font-size: 12px;
}

.muh-acc-muted {
	color: var(--muh-muted);
	font-size: 13px;
}

.muh-acc-guide {
	background: #f8fafc;
}

.muh-acc-guide h3 {
	margin: 0 0 14px;
	font-size: 18px;
}

.muh-acc-guide ol {
	margin: 0 0 12px;
	padding-inline-start: 20px;
}

.muh-acc-guide li {
	margin-bottom: 12px;
}

.muh-acc-guide li p {
	margin: 4px 0 0;
	color: var(--muh-muted);
	font-size: 14px;
}

.muh-acc-empty {
	text-align: center;
}

.muh-acc-empty h3 {
	margin: 0 0 8px;
}

.muh-acc-empty p {
	color: var(--muh-muted);
	margin-bottom: 16px;
}

.muh-acc-orderbox h2 {
	margin: 0 0 6px;
	font-size: 18px;
}

.muh-acc-orderbox p {
	color: var(--muh-muted);
	margin: 0 0 14px;
}

/*
 * No prefers-color-scheme block on purpose.
 *
 * These cards live inside the shop's own account page, and that page is light
 * whatever the visitor's OS is set to. Following the OS here made the cards go
 * dark inside a light page — dark headings on a dark panel, unreadable. The
 * screen matches the theme, not the operating system.
 */
