/**
 * Kramar Account Flow — frontend styles.
 *
 * Scoped to .kramar-account-* and .kramar-track-order classes.
 * No inline <style> tags — all styles live here.
 */

/* ── Enhanced dashboard ────────────────────────────────────────── */

.kramar-account-dashboard {
	margin-top: 24px;
}

.kramar-account-section {
	margin-bottom: 24px;
}

.kramar-account-section__title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e4e4e7;
}

/* ── Order cards ───────────────────────────────────────────────── */

.kramar-account-orders {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kramar-account-order {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #f8f9fa;
	border: 1px solid #e4e4e7;
	border-radius: 5px;
	gap: 12px;
}

.kramar-account-order__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 14px;
}

.kramar-account-order__number a {
	font-weight: 600;
	text-decoration: none;
}

.kramar-account-order__total {
	font-weight: 500;
}

.kramar-account-order__date {
	color: #787c82;
	font-size: 13px;
}

.kramar-account-order__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

/* ── Status badge ──────────────────────────────────────────────── */

.kramar-status-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
	background: #e4e4e7;
	color: #1d2327;
}

.kramar-status-badge--processing  { background: #d4edda; color: #155724; }
.kramar-status-badge--completed   { background: #cce5ff; color: #004085; }
.kramar-status-badge--on-hold     { background: #fff3cd; color: #856404; }
.kramar-status-badge--cancelled   { background: #f8d7da; color: #721c24; }
.kramar-status-badge--refunded    { background: #f8d7da; color: #721c24; }
.kramar-status-badge--pending     { background: #e2e3e5; color: #383d41; }

/* ── Buttons ───────────────────────────────────────────────────── */

.kramar-btn {
	display: inline-block;
	padding: 6px 14px;
	background: #7f54b3;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
	line-height: 1.4;
}

.kramar-btn:hover,
.kramar-btn:focus {
	background: #6a44a0;
	color: #fff;
}

.kramar-btn--sm {
	padding: 4px 10px;
	font-size: 12px;
}

.kramar-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Account meta (last active / last order) ───────────────────── */

.kramar-account-meta {
	font-size: 14px;
	color: #50575e;
}

.kramar-account-meta__item {
	margin: 0 0 6px;
	display: flex;
	gap: 8px;
}

.kramar-account-meta__label {
	font-weight: 500;
	color: #1d2327;
}

/* ── Completeness nudges ───────────────────────────────────────── */

.kramar-nudge-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kramar-nudge {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 4px;
	font-size: 13px;
	gap: 12px;
}

.kramar-nudge__link {
	white-space: nowrap;
	font-weight: 500;
	font-size: 13px;
	text-decoration: underline;
}

/* ── Guest tracking page ───────────────────────────────────────── */

.kramar-track-order h1 {
	margin-bottom: 16px;
}

.kramar-track-order table {
	font-size: 14px;
}

/* ── Account CTA (thank-you page) ─────────────────────────────── */

.kramar-account-cta {
	margin-top: 24px;
}

/* ── Email-first login ─────────────────────────────────────────── */

.kramar-email-first .form-row {
	margin-bottom: 16px;
}
