/* Mountain Man Customer Dashboard
   Scoped to .mmm- classes so it only touches our dashboard content.
   Inherits the theme's body font; uses the MMM red (#e11b22). */

.mmm-readiness-wrap,
.mmm-training { line-height: 1.5; }

.mmm-muted { color: #8a8a8a; }

.mmm-card {
	border: 1px solid #e6e6e6;
	border-radius: 9px;
	padding: 20px 22px;
	margin: 0 0 22px;
}
.mmm-card-h {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.mmm-card-h h3 { font-size: 19px; margin: 0; }
.mmm-est-note { font-size: 11.5px; color: #9a9a9a; font-style: italic; }

/* ── Readiness banner ── */
.mmm-readiness {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border: 1px solid;
	border-radius: 8px;
	margin-bottom: 22px;
}
.mmm-r-ok   { background: #eef6ee; border-color: #cfe3cf; }
.mmm-r-warn { background: #fdf4f4; border-color: #f0d2d2; }
.mmm-r-big  { font-size: 21px; font-weight: 700; color: #222; }
.mmm-readiness span { font-size: 13px; color: #555; }

/* ── Status pills ── */
.mmm-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 9px;
	border: 1px solid;
	border-radius: 20px;
	white-space: nowrap;
}
.mmm-ok   { color: #2e7d32; border-color: #2e7d32; background: #eef6ee; }
.mmm-warn { color: #cf7a16; border-color: #cf7a16; background: #fcf3e3; }
.mmm-crit { color: #cf2030; border-color: #cf2030; background: #fdeced; }
.mmm-none { color: #8a8a8a; border-color: #cccccc; background: #f4f4f4; }

/* ── Kit rows ── */
.mmm-kit { border-top: 1px solid #eee; }
.mmm-kit:first-of-type { border-top: none; }
.mmm-kit-head { display: flex; align-items: center; }
.mmm-kit-toggle {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: none;
	padding: 13px 2px;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: #1d1d1d;
}
.mmm-kit-toggle:hover { background: #fafafa; }
.mmm-kit-name { font-weight: 600; font-size: 16px; color: #222; }
.mmm-flag { font-size: 11.5px; color: #cf7a16; font-weight: 600; }
.mmm-chev {
	width: 0; height: 0; margin-left: auto;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #bbb;
	transition: transform .15s;
}
.mmm-kit.is-open .mmm-chev { transform: rotate(180deg); }
.mmm-kit-remove {
	flex: none;
	background: none;
	border: none;
	color: #cccccc;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 18px;
	line-height: 1;
}
.mmm-kit-remove:hover { color: #e11b22; background: #fdecec; }

.mmm-kit-body { display: none; padding: 2px 2px 14px 8px; }
.mmm-kit.is-open .mmm-kit-body { display: block; }
.mmm-comp {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	border-top: 1px dashed #eee;
}
.mmm-comp-name { flex: 1; font-size: 13px; font-weight: 500; }
.mmm-comp-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Removed-kits area ── */
.mmm-removed { margin-top: 14px; border-top: 1px solid #eee; padding-top: 8px; }
.mmm-removed-head {
	background: none; border: none; color: #888;
	cursor: pointer; font: inherit; font-size: 12.5px; padding: 5px 0;
}
.mmm-removed-head:hover { color: #555; }
.mmm-removed-list { display: none; }
.mmm-removed.is-open .mmm-removed-list { display: block; }
.mmm-removed-row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 8px 0 8px 8px; font-size: 13px;
}

/* ── Buttons ── */
.mmm-btn-red {
	display: inline-flex; align-items: center; gap: 7px;
	background: #e11b22; color: #fff; border: none;
	font-weight: 600; font-size: 14px;
	padding: 10px 17px; border-radius: 5px;
	cursor: pointer; text-decoration: none;
}
.mmm-btn-red:hover { background: #c4151c; color: #fff; }
.mmm-btn-red.big { padding: 12px 20px; font-size: 15px; }
.mmm-btn-line {
	display: inline-flex; align-items: center; gap: 6px;
	background: #fff; color: #444; border: 1px solid #ccc;
	font-weight: 500; font-size: 13px;
	padding: 8px 14px; border-radius: 5px;
	cursor: pointer; text-decoration: none; white-space: nowrap;
}
.mmm-btn-line:hover { border-color: #e11b22; color: #e11b22; }
.mmm-btn-line.xs { padding: 4px 9px; font-size: 11.5px; }
.mmm-btn-text {
	display: inline-flex; align-items: center; gap: 5px;
	background: none; border: none; color: #8a8a8a;
	font: inherit; font-size: 12px; cursor: pointer;
	padding: 5px 7px; border-radius: 4px;
}
.mmm-btn-text:hover { color: #2e7d32; background: #eef6ee; }
.mmm-btn-text:disabled,
[data-action]:disabled { opacity: .5; cursor: default; }

/* ── Training ── */
.mmm-hero {
	display: flex; align-items: center; gap: 18px;
	padding: 18px; border: 1px solid #f0d2d2;
	background: linear-gradient(180deg, #fff, #fdf4f4);
	border-radius: 8px; margin-bottom: 14px;
}
.mmm-hero-badge { flex: none; }
.mmm-free-tag {
	display: inline-block; font-weight: 700; font-size: 11px;
	letter-spacing: .1em; background: #e11b22; color: #fff;
	padding: 2px 9px; border-radius: 3px;
}
.mmm-hero-body { flex: 1; }
.mmm-hero-body h4 { font-size: 17px; margin: 0 0 3px; }
.mmm-upsell {
	display: flex; align-items: center; gap: 14px;
	padding: 15px 18px; border: 1px solid #e6e6e6;
	border-radius: 8px; background: #fafafa;
}
.mmm-upsell-tag {
	font-size: 10.5px; letter-spacing: .1em; color: #a06a16;
	font-weight: 600; margin-bottom: 2px;
}
.mmm-done-tag { margin-top: 8px; font-size: 12px; color: #2e7d32; font-weight: 600; }

.mmm-prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; max-width: 380px; }
.mmm-prog-bar { flex: 1; height: 7px; border-radius: 4px; background: #efe3e3; overflow: hidden; }
.mmm-prog-bar span { display: block; height: 100%; background: #e11b22; border-radius: 4px; }
.mmm-prog-label { font-size: 11.5px; color: #777; font-weight: 600; white-space: nowrap; }

@media (max-width: 600px) {
	.mmm-hero, .mmm-upsell { flex-direction: column; align-items: flex-start; }
	.mmm-hero .mmm-btn-red { width: 100%; justify-content: center; }
}

/* ── Theme-hardening ──────────────────────────────────────────────────────
   Some WooCommerce themes apply an aggressive button:hover style (coloured
   background + white text) that overrides our own. These scoped !important
   rules keep our dashboard controls readable regardless of theme. */
.mmm-readiness-wrap button,
.mmm-training button {
	background: none !important;
	box-shadow: none !important;
	border: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
}
.mmm-kit-toggle,
.mmm-kit-toggle:hover,
.mmm-kit-toggle:focus { color: #1d1d1d !important; }
.mmm-kit-toggle:hover { background: #fafafa !important; }
.mmm-kit-name,
.mmm-kit-toggle:hover .mmm-kit-name { color: #222 !important; }
.mmm-kit-remove { color: #cccccc !important; }
.mmm-kit-remove:hover { color: #e11b22 !important; background: #fdecec !important; }
.mmm-btn-text { color: #8a8a8a !important; }
.mmm-btn-text:hover { color: #2e7d32 !important; background: #eef6ee !important; }
.mmm-removed-head { color: #888888 !important; }
.mmm-removed-head:hover { color: #555555 !important; }

/* ── Account navigation: icons + tightening ───────────────────────────────
   Icons come from WordPress Dashicons (attached by class in PHP). We restyle
   the stock nav list into a compact, rounded, icon-led menu. */
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation li.mmm-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 11px;
	border: none !important;
	border-radius: 6px;
	color: #444;
}
.woocommerce-MyAccount-navigation li.mmm-nav-item::before {
	flex: none;
	color: #b3b3b3;
	font-size: 17px;
	width: 17px;
	height: 17px;
	line-height: 1;
}
.woocommerce-MyAccount-navigation li.mmm-nav-item a {
	flex: 1;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	color: #444 !important;
	text-decoration: none !important;
	font-size: 14px;
}
.woocommerce-MyAccount-navigation li.mmm-nav-item:hover { background: #f6f6f6; }
.woocommerce-MyAccount-navigation li.mmm-nav-item:hover a { color: #1d1d1d !important; }
.woocommerce-MyAccount-navigation li.mmm-nav-item:hover::before { color: #e11b22; }
.woocommerce-MyAccount-navigation li.mmm-nav-item.is-active { background: #fdecec; }
.woocommerce-MyAccount-navigation li.mmm-nav-item.is-active a { color: #e11b22 !important; font-weight: 600; }
.woocommerce-MyAccount-navigation li.mmm-nav-item.is-active::before { color: #e11b22; }

/* ── Empty-state shop pitch ── */
.mmm-shop-pitch { display: flex; align-items: center; gap: 20px; }
.mmm-pitch-body { flex: 1; }
.mmm-pitch-body h3 { font-size: 19px; margin: 0 0 6px; }
.mmm-pitch-body p { font-size: 13.5px; color: #555; margin: 0; max-width: 560px; }
@media (max-width: 600px) {
	.mmm-shop-pitch { flex-direction: column; align-items: flex-start; }
	.mmm-shop-pitch .mmm-btn-red { width: 100%; justify-content: center; }
}

/* ── Narrow the account column (desktop only) ─────────────────────────────
   Default WooCommerce gives the nav ~35% width, leaving a lot of dead space.
   Covers both float (width/calc) and flex (flex-basis) layouts. */
@media (min-width: 768px) {
	.woocommerce-account .woocommerce-MyAccount-navigation {
		width: 230px !important;
		flex: 0 0 230px;
	}
	.woocommerce-account .woocommerce-MyAccount-content {
		width: calc(100% - 270px) !important;
		flex: 1 1 auto;
	}
}

/* ── Individual supplies (standalone perishable purchases) ── */
.mmm-loose-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-top: 1px solid #eee;
}
.mmm-loose-row:first-of-type { border-top: none; }
.mmm-loose-name { flex: 1; font-weight: 500; font-size: 14px; }
.mmm-loose-row .mmm-comp-act { margin-left: auto; }
