/**
 * Store pages ([minimedia_purchase] + [minimedia_account]) — built on the
 * same .mmh design system and CSS variables as the homepage (home.css).
 * The palette is injected inline, scoped to .mmh.
 */

/* Compact, centered hero for the store pages */
.mmh-store .mmh-hero--compact { padding: 64px 0 40px; text-align: center; }
.mmh-store-hero { max-width: 720px; margin: 0 auto; }
.mmh-store-hero .mmh-hero__sub { margin-left: auto; margin-right: auto; }

/* Body sections sit close under the hero */
.mmh-store .mmh-section { padding: 8px 0 64px; }
.mmh-store-body--narrow { max-width: 480px; margin: 0 auto; }

/* Cards / panels */
.mmh-panel {
	background: #fff;
	border: 1px solid var(--mmh-line);
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 30px 60px -34px rgba(15, 23, 42, .4);
}
.mmh-panel--narrow { max-width: 440px; margin: 0 auto; }
.mmh-panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}
.mmh-panel__title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.mmh-muted { color: var(--mmh-muted); margin: 0; }
.mmh-link { color: var(--mmh-accent); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mmh-link:hover { text-decoration: underline; }
.mmh-fineprint { margin: 14px 0 0; font-size: 13px; color: var(--mmh-muted); text-align: center; }
.mmh-fineprint a { color: var(--mmh-accent); }

/* Notes */
.mmh-note { border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 0 0 16px; border: 1px solid transparent; }
.mmh-note--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.mmh-note--info { background: var(--mmh-soft); border-color: var(--mmh-line); color: var(--mmh-muted); }
.mmh-note--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Forms */
.mmh-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.mmh-price-card .mmh-form { margin-top: 22px; }
.mmh-field { display: flex; flex-direction: column; gap: 6px; }
.mmh-field > span { font-size: 13px; font-weight: 700; color: var(--mmh-ink); }
.mmh-form input[type="text"],
.mmh-form input[type="email"],
.mmh-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--mmh-line);
	border-radius: 11px;
	font-size: 15px;
	background: #fff;
	color: var(--mmh-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mmh-form input:focus {
	outline: none;
	border-color: var(--mmh-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mmh-accent) 18%, transparent);
}
.mmh-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mmh-muted); }
.mmh-pay-choice { display: flex; gap: 18px; font-size: 14px; }
.mmh-pay-choice label { display: inline-flex; align-items: center; gap: 6px; }

/* Sign in / register tabs */
.mmh-tabs { display: flex; gap: 4px; margin: 0 0 20px; border-bottom: 1px solid var(--mmh-line); }
.mmh-tab {
	flex: 1; text-align: center; text-decoration: none;
	padding: 11px 8px; font-size: 14px; font-weight: 700;
	color: var(--mmh-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.mmh-tab:hover { color: var(--mmh-ink); }
.mmh-tab.is-active { color: var(--mmh-accent); border-bottom-color: var(--mmh-accent); }

/* License keys */
.mmh-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mmh-key {
	border: 1px solid var(--mmh-line);
	border-radius: 14px;
	padding: 14px 16px;
	background: var(--mmh-soft);
}
.mmh-key.is-inactive { opacity: .6; }
.mmh-key__main { display: flex; align-items: center; gap: 10px; }
.mmh-key__code {
	flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 15px; letter-spacing: .04em; color: var(--mmh-ink);
	word-break: break-all;
}
.mmh-copy {
	border: 1px solid var(--mmh-line); background: #fff; color: var(--mmh-ink);
	border-radius: 9px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}
.mmh-copy:hover { border-color: var(--mmh-accent); color: var(--mmh-accent); }
.mmh-copy.is-copied { border-color: #10b981; color: #059669; }
.mmh-key__meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mmh-pill { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.mmh-pill--active { background: #ecfdf5; color: #059669; }
.mmh-pill--inactive,
.mmh-pill--revoked { background: #fef2f2; color: #b91c1c; }
.mmh-pill--refunded { background: #fffbeb; color: #b45309; }

/* Honeypot (also covered in frontend.css) */
.mmpa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
	.mmh-panel__head { flex-direction: column; }
}

/* Inline sign-in on the Upgrade page */
.mmh-signin { margin-top: 18px; }
