/**
 * Mitt konto / Mina sidor — Fas 1.1 (scoped body.aka-page-account + global logout).
 */

/* --- Global exit / logout (account nav, profile drawer, .aka-logout-link) --- */
a.aka-logout-link,
.mob-drawer-account-link--logout {
	color: var(--aka-action-exit-text, #8F3F3F) !important;
}

/* --- Account nav: ikon + text, logout separat --- */
body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation li a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-content: flex-start;
	text-align: left;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation .aka-account-nav__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	opacity: 0.72;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation .aka-account-nav__icon .aka-nav-icon {
	width: 18px;
	height: 18px;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation li.is-active a .aka-account-nav__icon {
	opacity: 1;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation li.aka-account-nav__item--logout {
	margin-left: auto;
	margin-top: 0;
	padding-top: 0;
	padding-left: 8px;
	border-top: none;
	border-left: 1px solid var(--aka-line, #ececec);
	align-self: stretch;
	display: flex;
	align-items: stretch;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation li.aka-account-nav__item--logout a {
	background: var(--aka-action-exit-soft, #FFF3F1) !important;
	border: 1px solid var(--aka-action-exit-border, rgba(184, 92, 92, 0.24)) !important;
	color: var(--aka-action-exit-text, #8F3F3F) !important;
	font-weight: 600;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation li.aka-account-nav__item--logout a:hover,
body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation li.aka-account-nav__item--logout a:focus-visible {
	background: #ffe8e4 !important;
	border-color: var(--aka-action-exit, #B85C5C) !important;
	color: var(--aka-action-exit-text, #8F3F3F) !important;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation li.aka-account-nav__item--logout.is-active a {
	background: var(--aka-action-exit-soft, #FFF3F1) !important;
	border-color: var(--aka-action-exit-border, rgba(184, 92, 92, 0.24)) !important;
	color: var(--aka-action-exit-text, #8F3F3F) !important;
}

@media (max-width: 720px) {
	body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-navigation li.aka-account-nav__item--logout {
		margin-left: 0;
		padding-left: 0;
		border-left: none;
		border-top: 1px solid var(--aka-line, #ececec);
		padding-top: 8px;
		flex: 1 1 100%;
		width: 100%;
	}
}

/* --- Översikt: medlemsstatus --- */
body.aka-page-account .aka-account-dashboard {
	text-align: left;
}

body.aka-page-account .aka-account-dashboard__kicker {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #94a3b8;
}

body.aka-page-account .aka-account-dashboard__greeting {
	margin: 0 0 8px;
	font-size: 1.65rem;
	font-weight: 800;
	line-height: 1.15;
}

body.aka-page-account .aka-account-dashboard__member-status {
	margin: 0 0 12px;
}

body.aka-page-account .aka-account-dashboard__member-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1a6b4a;
	background: rgba(26, 107, 74, 0.08);
	padding: 4px 10px;
	border-radius: 999px;
}

body.aka-page-account .aka-account-dashboard__lead {
	margin: 0 0 24px;
	max-width: 52ch;
	color: #555;
	line-height: 1.55;
	font-size: 15px;
}

body.aka-page-account .aka-account-dashboard__section {
	margin-bottom: 28px;
}

body.aka-page-account .aka-account-dashboard__section-kicker {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
}

/* --- Översikt: kortgrid (bento) --- */
body.aka-page-account .aka-account-dashboard__card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.aka-page-account .aka-account-dashboard__card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 16px;
	min-height: 112px;
	box-sizing: border-box;
	text-decoration: none;
	color: inherit;
	background: var(--aka-card-bg, #fff);
	border: 1px solid var(--aka-line, #ececec);
	border-radius: var(--aka-card-radius-accent, 12px);
	box-shadow: var(--aka-card-shadow-accent, 0 1px 2px rgba(0, 0, 0, 0.04));
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.aka-page-account .aka-account-dashboard__card:hover,
body.aka-page-account .aka-account-dashboard__card:focus-visible {
	border-color: rgba(26, 188, 156, 0.35);
	box-shadow: var(--aka-card-shadow-accent-hover, 0 4px 12px rgba(0, 0, 0, 0.06));
	transform: translateY(-1px);
	outline: none;
}

body.aka-page-account .aka-account-dashboard__card-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	opacity: 0.8;
	color: var(--color-brand, #1abc9c);
}

body.aka-page-account .aka-account-dashboard__card-icon .aka-nav-icon {
	width: 22px;
	height: 22px;
}

body.aka-page-account .aka-account-dashboard__card-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

body.aka-page-account .aka-account-dashboard__card-title {
	font-weight: 800;
	font-size: 15px;
	line-height: 1.25;
	color: #1a1a1a;
}

body.aka-page-account .aka-account-dashboard__card-desc {
	font-size: 13px;
	color: #666;
	line-height: 1.45;
}

body.aka-page-account .aka-account-dashboard__card-chev {
	flex: 0 0 auto;
	align-self: center;
	opacity: 0.35;
	font-size: 18px;
}

@media (max-width: 640px) {
	body.aka-page-account .aka-account-dashboard__card-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Översikt: roadmap (kommer senare) --- */
body.aka-page-account .aka-account-dashboard__roadmap {
	margin-top: 8px;
	padding: 16px 18px;
	border: 1px dashed var(--aka-line, #ececec);
	border-radius: 12px;
	background: var(--aka-card-bg-quiet, #fafaf8);
}

body.aka-page-account .aka-account-dashboard__roadmap-title {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 800;
	color: #64748b;
}

body.aka-page-account .aka-account-dashboard__roadmap-lead {
	margin: 0 0 12px;
	font-size: 13px;
	color: #94a3b8;
	line-height: 1.45;
}

body.aka-page-account .aka-account-dashboard__roadmap-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.aka-page-account .aka-account-dashboard__roadmap-chip {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	background: #fff;
	border: 1px solid var(--aka-line-soft, #f3f3f0);
	user-select: none;
}

/* --- Profil & aktivitet: kompakt medlemssida (Fas 1.1b) --- */
body.aka-page-account .aka-account-member-profile {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 100%;
}

body.aka-page-account .aka-account-member-profile__card {
	background: #fff;
	border: 1px solid var(--aka-line, #ececec);
	border-radius: 12px;
	padding: 20px;
}

body.aka-page-account .aka-account-member-profile__identity {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

body.aka-page-account .aka-account-member-profile__avatar img,
body.aka-page-account .aka-account-member-profile__avatar-img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

body.aka-page-account .aka-account-member-profile__name {
	margin: 0 0 4px;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
}

body.aka-page-account .aka-account-member-profile__level {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-akalasi, #1a6b4a);
}

body.aka-page-account .aka-account-member-profile__bio {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #475569;
}

body.aka-page-account .aka-account-member-profile__facts {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: #64748b;
}

body.aka-page-account .aka-account-member-profile__facts li + li {
	margin-top: 4px;
}

body.aka-page-account .aka-account-member-profile__fact-label {
	font-weight: 700;
	color: #334155;
}

body.aka-page-account .aka-account-member-profile__settings-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-akalasi, #1a6b4a);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.aka-page-account .aka-account-member-profile__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--aka-line-soft, #f3f3f0);
}

body.aka-page-account .aka-account-member-profile__stat {
	text-align: center;
	padding: 8px 6px;
}

body.aka-page-account .aka-account-member-profile__stat-value {
	display: block;
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
}

body.aka-page-account .aka-account-member-profile__stat-label {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #94a3b8;
}

body.aka-page-account .aka-account-member-profile__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 16px;
	align-items: start;
}

body.aka-page-account .aka-account-member-profile__panel {
	background: #fff;
	border: 1px solid var(--aka-line, #ececec);
	border-radius: 12px;
	padding: 16px 18px;
}

body.aka-page-account .aka-account-member-profile__panel-title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 800;
}

body.aka-page-account .aka-account-member-profile__activity-block + .aka-account-member-profile__activity-block {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--aka-line-soft, #f3f3f0);
}

body.aka-page-account .aka-account-member-profile__activity-kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
}

body.aka-page-account .aka-account-member-profile__activity-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.aka-page-account .aka-account-member-profile__activity-item {
	padding: 10px 0;
	border-top: 1px solid var(--aka-line-soft, #f3f3f0);
}

body.aka-page-account .aka-account-member-profile__activity-item:first-child {
	border-top: none;
	padding-top: 0;
}

body.aka-page-account .aka-account-member-profile__activity-link {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	text-decoration: none;
	line-height: 1.35;
}

body.aka-page-account a.aka-account-member-profile__activity-link:hover {
	color: var(--color-akalasi, #1a6b4a);
	text-decoration: underline;
}

body.aka-page-account .aka-account-member-profile__activity-time {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	color: #94a3b8;
}

body.aka-page-account .aka-account-member-profile__activity-excerpt {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.45;
}

body.aka-page-account .aka-account-member-profile__empty {
	margin: 0;
	padding: 12px;
	font-size: 14px;
	color: #64748b;
	background: var(--aka-line-soft, #f3f3f0);
	border-radius: 8px;
}

body.aka-page-account .aka-account-member-profile__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.aka-page-account .aka-account-member-profile__links li + li {
	margin-top: 8px;
}

body.aka-page-account .aka-account-member-profile__links a {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-akalasi, #1a6b4a);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Mira-hjälp UI: se docs/MIRA-HELP-PATTERN.md — .aka-mira-help* i aka-09 vid implementation */

@media (max-width: 768px) {
	body.aka-page-account .aka-account-member-profile__grid {
		grid-template-columns: 1fr;
	}

	body.aka-page-account .aka-account-member-profile__identity {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* --- wpForo fallback (endast details, scoped) --- */
body.aka-page-account .aka-account-forum-profile--fallback {
	margin-top: 16px;
}

body.aka-page-account .aka-account-forum-profile--fallback .aka-account-forum-profile__fallback-summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
}

body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-profile-header,
body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-profile-cover,
body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-cover-image {
	max-height: 120px !important;
	overflow: hidden !important;
}

body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-profile-header img,
body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-cover-image img {
	max-height: 120px !important;
	object-fit: cover !important;
}

body.aka-page-account .aka-account-forum-profile--fallback #wpforo [class*="dislike"],
body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-profile-page-disliked,
body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-menu li.wpf-dislikes,
body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-profile-social,
body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-field-social,
body.aka-page-account .aka-account-forum-profile--fallback #wpforo .wpf-profile-custom-field-social {
	display: none !important;
}

/* --- Profil & aktivitet: legacy wpForo embed (deprecated) --- */
body.aka-page-account .aka-account-profile-card {
	max-width: 100%;
}

body.aka-page-account .aka-account-section-head--forum h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 800;
}

body.aka-page-account .aka-account-section-head--forum {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--aka-line, #ececec);
}

/* --- wpForo profil inbäddad (hårt scope) --- */
body.aka-page-account .aka-account-wrap .aka-account-forum-profile {
	background: #fff;
	border: 1px solid var(--aka-line, #ececec);
	border-radius: 12px;
	padding: 16px;
	overflow: hidden;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo {
	overflow-x: hidden;
	max-width: 100%;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo-wrap,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo #wpf-content {
	max-width: 100% !important;
	overflow-x: hidden !important;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-profile-header,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-profile-cover,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-cover-image,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo [class*="profile-cover"],
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo [class*="cover-image"] {
	max-height: 180px !important;
	min-height: 0 !important;
	height: auto !important;
	overflow: hidden !important;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-profile-header img,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-cover-image img,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo [class*="cover"] img:not(.wpf-avatar) {
	max-height: 180px !important;
	width: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-profile-header .wpf-no-cover,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-profile-cover:empty {
	display: none !important;
	min-height: 0 !important;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-avatar,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-avatar img,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo img.wpf-avatar {
	width: 96px !important;
	height: 96px !important;
	max-width: 96px !important;
	max-height: 96px !important;
	border-radius: 50% !important;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo #wpforo-menu,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-profile-menu,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo ul.wpf-profile-menu {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	margin: 12px 0 8px !important;
	padding: 0 !important;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo #wpforo-menu,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-profile-menu a,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo ul.wpf-profile-menu li a {
	color: #444 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-profile-menu li.is-active a,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo ul.wpf-profile-menu li.active a {
	color: var(--color-akalasi, #1a6b4a) !important;
	border-bottom: 2px solid var(--color-akalasi, #1a6b4a) !important;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo #wpforo-menu {
	display: none !important;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpf-profile-content {
	font-size: 14px;
	line-height: 1.55;
}

body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpforo-right-sidebar,
body.aka-page-account .aka-account-wrap .aka-account-forum-profile #wpforo .wpforo-subtop {
	display: none !important;
}

/* --- Kontouppgifter / edit-account --- */
body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content form.edit-account {
	max-width: 520px;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content .woocommerce-form-row {
	margin-bottom: 14px;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content .woocommerce-form-row label {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content input.input-text,
body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content input[type="text"],
body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content input[type="email"],
body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content input[type="password"] {
	min-height: 44px;
	height: auto;
	padding: 10px 12px;
	font-size: 15px;
	border-radius: 8px;
	max-width: 100%;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content fieldset {
	margin: 24px 0 0;
	padding: 20px 0 0;
	border: none;
	border-top: 1px solid var(--aka-line, #ececec);
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content fieldset legend {
	font-size: 1rem;
	font-weight: 800;
	padding: 0;
	margin-bottom: 12px;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content .woocommerce-Button,
body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content button[type="submit"] {
	min-height: 44px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 8px;
}

body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content .show-password-input {
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 520px) {
	body.aka-page-account .aka-account-wrap .woocommerce-MyAccount-content form.edit-account {
		max-width: 100%;
	}
}
