/* =========================
   AAM Back Link
========================= */

.aam-account-shell__back {
	margin: 0 0 18px;
}

.aam-account-shell__back a {
	display: inline-flex;
	align-items: center;
	color: #2f5ea7;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.aam-account-shell__back a:hover,
.aam-account-shell__back a:focus {
	color: #264f8d;
	text-decoration: underline;
	outline: none;
}

/* =========================
   AAM Shell Top Bar
========================= */


.aam-account-shell__topbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin: 0 0 18px;
}

.aam-account-shell__topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.aam-account-shell__logout,
.aam-account-shell__logout:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid #d7dce5;
	border-radius: 4px;
	background: #ffffff;
	color: #2a2f36 !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.aam-account-shell__logout:hover,
.aam-account-shell__logout:focus,
.aam-account-shell__logout:active {
	background: #f6f8fb;
	border-color: #bcc6d6;
	color: #1f2430 !important;
	transform: translateY(-1px);
	text-decoration: none !important;
	outline: none;
}
.aam-account-shell__logout--mobile {
	display: none;
}

.aam-account-shell__logout--desktop {
	display: inline-flex;
}

@media (max-width: 980px) {
	.aam-account-shell__logout--mobile {
		display: inline-flex;
	}

	.aam-account-shell__logout--desktop {
		display: none !important;
	}
}
/* =========================
   AAM Account Shell + Dashboard
========================= */

/* Let Woo/account wrappers use full available width */
.woocommerce-account .entry-content > .woocommerce,
.woocommerce-account .site-main > .woocommerce,
.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce-MyAccount,
.woocommerce-account .woocommerce-page,
.woocommerce-account .entry-content-wrap,
.woocommerce-account .entry-content.single-content {
	width: 100% !important;
	max-width: 100% !important;
}

.woocommerce-account .entry-content > .woocommerce::after,
.woocommerce-account .site-main > .woocommerce::after,
.woocommerce-account .woocommerce::after,
.woocommerce-account .woocommerce-MyAccount::after {
	content: "";
	display: table;
	clear: both;
}

.woocommerce-account .entry-content-wrap {
	padding-left: 32px !important;
	padding-right: 32px !important;
	box-sizing: border-box;
}

.woocommerce-account .entry-content.single-content {
	margin: 0 !important;
}

.woocommerce-account .entry-content-wrap .woocommerce,
.woocommerce-account .entry-content.single-content .woocommerce,
.woocommerce-account .entry-content-wrap .aam-account-shell,
.woocommerce-account .entry-content.single-content .aam-account-shell {
	width: 100% !important;
	max-width: 100% !important;
}

/* Main AAM shell */
/* =========================
   AAM Moderated Profile Photo
========================= */

.aam-overview-hero {
	display: flex;
	align-items: center;
	gap: 20px;
}

.aam-overview-hero__photo {
	flex: 0 0 auto;
}

.aam-profile-photo__image,
.aam-profile-photo__placeholder,
.aam-overview-hero__photo-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 82px;
	border-radius: 6px;
	object-fit: cover;
	background: #f3f5f8;
	color: #2f5ea7;
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
	border: 1px solid #dfe4ec;
	box-sizing: border-box;
}

.aam-overview-hero__content {
	min-width: 0;
}

.aam-overview-hero__content h2 {
	margin-top: 0;
}

.aam-profile-photo-card {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 20px;
	padding: 18px;
	margin: 24px 0;
	border: 1px solid #e7e1d5;
	border-radius: 8px;
	background: #fffdf9;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
}

.aam-profile-photo-card__preview {
	width: 100%;
}

.aam-profile-photo-card__image {
	width: 96px;
	height: 96px;
}

.aam-profile-photo-card__body {
	min-width: 0;
}

.aam-profile-photo-card__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.aam-profile-photo-card__header h3 {
	margin: 0;
}

.aam-profile-photo-card__body p {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.65;
	color: #555;
}

.aam-profile-photo-card__status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.aam-profile-photo-card__status--none {
	background: #eef1f5;
	color: #4b5563;
}

.aam-profile-photo-card__status--pending {
	background: #f6edd8;
	color: #7a5b11;
}

.aam-profile-photo-card__status--approved {
	background: #e5f3e7;
	color: #1f6b35;
}

.aam-profile-photo-card__status--rejected {
	background: #fde9e9;
	color: #922f2f;
}

.aam-profile-photo-card__pending {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	margin: 0 0 14px;
	border: 1px solid #eadfca;
	border-radius: 6px;
	background: #fff8eb;
}

.aam-profile-photo-card__pending-image {
	flex: 0 0 auto;
}

.aam-profile-photo-card__pending-image img {
	display: block;
	width: 54px;
	height: 54px;
	border-radius: 4px;
	object-fit: cover;
}

.aam-profile-photo-card__pending-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 14px;
	line-height: 1.4;
	color: #5f4a18;
}

.aam-profile-photo-card__upload {
	margin-bottom: 0;
}

.aam-profile-photo-card input[type="file"] {
	width: 100%;
	max-width: 420px;
}

@media (max-width: 767px) {
	.aam-overview-hero {
		align-items: flex-start;
		gap: 16px;
	}

	.aam-profile-photo__image,
	.aam-profile-photo__placeholder,
	.aam-overview-hero__photo-image {
		width: 66px;
		height: 66px;
		font-size: 26px;
	}

	.aam-profile-photo-card {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 16px;
	}

	.aam-profile-photo-card__image {
		width: 84px;
		height: 84px;
	}
}
.aam-account-shell {
	width: 100%;
	max-width: 100% !important;
	margin: 0 auto;
}

.aam-account-shell__nav-toggle-wrap {
	display: none;
	margin: 0 0 18px;
}

.aam-account-shell__nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border: 1px solid #2f5ea7;
	border-radius: 4px;
	background: #2f5ea7;
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(20, 20, 20, 0.05);
	appearance: none;
	-webkit-appearance: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
	text-decoration: none !important;
}

.aam-account-shell__nav-toggle:hover,
.aam-account-shell__nav-toggle:focus,
.aam-account-shell__nav-toggle:active,
.aam-account-shell__nav-toggle[aria-expanded="true"] {
	background: #264f8d !important;
	border-color: #264f8d !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(20, 20, 20, 0.08);
	outline: none;
	text-decoration: none !important;
}

.aam-account-shell__nav-toggle:visited {
	color: #ffffff !important;
}

.aam-account-shell__nav-toggle::-moz-focus-inner {
	border: 0;
}

.aam-account-shell__nav-toggle * {
	color: inherit !important;
}

.aam-account-shell__layout {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr) !important;
	gap: 40px !important;
	align-items: start;
	width: 100%;
}

.aam-account-shell__nav {
	width: 100%;
	min-width: 0;
	align-self: start;
}

.aam-account-shell__content {
	width: 100%;
	min-width: 0;
}

/* =========================
   Kadence Account Nav Cleanup
========================= */

.aam-account-shell__nav,
.aam-account-shell__nav .account-navigation-wrap {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

.aam-account-shell__nav .account-navigation-wrap {
	display: block !important;
	padding-top: 0 !important;
}

.aam-account-shell__nav .kadence-account-avatar {
	display: none !important;
}

/* =========================
   Woo My Account Nav Polish
========================= */

.aam-account-shell .woocommerce-MyAccount-navigation {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.aam-account-shell .woocommerce-MyAccount-navigation ul {
	list-style: none;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 10px;
	border: 1px solid #e7e1d5;
	border-radius: 6px;
	background: #fffdf9;
	box-shadow: 0 8px 28px rgba(25, 25, 25, 0.04);
	box-sizing: border-box;
}

.aam-account-shell .woocommerce-MyAccount-navigation ul li {
	width: 100%;
	margin: 0;
	padding: 0;
}

.aam-account-shell .woocommerce-MyAccount-navigation ul li + li {
	margin-top: 4px;
}

.aam-account-shell .woocommerce-MyAccount-navigation ul li a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 52px;
	padding: 13px 16px;
	border-radius: 4px;
	color: #2a2a2a;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.aam-account-shell .woocommerce-MyAccount-navigation ul li a:hover,
.aam-account-shell .woocommerce-MyAccount-navigation ul li a:focus {
	background: #f5efe4;
	color: #1f1f1f;
	transform: translateX(1px);
	outline: none;
}

.aam-account-shell .woocommerce-MyAccount-navigation ul li.is-active a {
	background: #1f1f1f;
	color: #ffffff;
	box-shadow: 0 8px 18px rgba(31, 31, 31, 0.14);
	border-radius: 4px;
}

.aam-account-shell .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

/* Safety: kill hidden left/right offsets from theme wrappers */
.aam-account-shell__nav * {
	box-sizing: border-box;
}

/* =========================
   Dashboard Core
========================= */

.aam-dashboard-wrap {
	margin: 0;
}

.aam-panel {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.aam-panel-hero {
	padding: 28px;
	border-radius: 8px;
}

.aam-dashboard-wrap h2 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 30px;
	line-height: 1.2;
}

.aam-dashboard-wrap h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 20px;
	line-height: 1.3;
}

.aam-lead {
	font-size: 16px;
	line-height: 1.7;
	color: #444;
	margin-bottom: 0;
	max-width: 800px;
}

.aam-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.aam-card {
	display: block;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 22px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.aam-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
	border-color: #d9d9d9;
}

.aam-card h3,
.aam-card p {
	color: inherit;
}

.aam-card p {
	margin-bottom: 0;
	color: #555;
	line-height: 1.6;
}

.aam-profile-form {
	max-width: 760px;
}

.aam-form-row {
	margin-bottom: 18px;
}

.aam-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.aam-form-row input[type="text"],
.aam-form-row input[type="email"],
.aam-form-row textarea {
	width: 100%;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.5;
	background: #fff;
	box-sizing: border-box;
}

.aam-form-row textarea {
	min-height: 130px;
	resize: vertical;
}

.aam-form-row small {
	display: block;
	margin-top: 6px;
	color: #666;
}

.aam-form-actions {
	margin-top: 20px;
}

.aam-dashboard-section em {
	color: #666;
}

/* =========================
   Account Intro / Login
========================= */
.aam-account-shell__mobile-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.aam-account-shell__feedback,
.aam-account-shell__feedback:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid #2f5ea7;
	border-radius: 4px;
	background: #2f5ea7;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.aam-account-shell__feedback:hover,
.aam-account-shell__feedback:focus,
.aam-account-shell__feedback:active {
	background: #264f8d !important;
	border-color: #264f8d !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	text-decoration: none !important;
	outline: none;
}

.aam-account-shell__feedback--mobile {
	display: none;
}

.aam-account-shell__feedback--desktop {
	display: inline-flex;
}

@media (max-width: 980px) {
	.aam-account-shell__mobile-actions {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.aam-account-shell__feedback--mobile {
		display: inline-flex;
	}

	.aam-account-shell__feedback--desktop {
		display: none !important;
	}
}

@media (max-width: 420px) {
	.aam-account-shell__nav-toggle {
		padding-left: 10px;
		padding-right: 10px;
		font-size: 14px;
	}

	.aam-account-shell__feedback,
	.aam-account-shell__logout {
		padding-left: 9px;
		padding-right: 9px;
		font-size: 13px;
	}
}


.aam-account-intro-wrap {
	margin-bottom: 28px;
}

.aam-support-line {
	margin-top: 14px;
	margin-bottom: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

.aam-login-notes {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #ececec;
}

.aam-login-notes p {
	margin: 0 0 8px;
	color: #666;
	font-size: 14px;
	line-height: 1.6;
}

.aam-login-notes p:last-child {
	margin-bottom: 0;
}

/* =========================
   Social Login
========================= */

.aam-social-login-wrap {
	margin-bottom: 28px;
}

.aam-social-intro {
	margin-bottom: 14px;
	color: #555;
	line-height: 1.6;
}

.aam-social-shortcode {
	margin-top: 12px;
}

.aam-social-placeholder {
	padding: 14px 16px;
	border: 1px dashed #d9d9d9;
	border-radius: 4px;
	background: #fafafa;
}

.aam-social-placeholder p {
	margin: 0 0 8px;
	color: #666;
	line-height: 1.6;
}

.aam-social-placeholder p:last-child {
	margin-bottom: 0;
}

/* =========================
   Buttons
========================= */

.aam-dashboard-wrap button,
.aam-dashboard-wrap .button,
.aam-dashboard-wrap input[type="submit"],
.aam-dashboard-wrap input[type="button"],
.aam-dashboard-wrap input[type="reset"] {
	border-radius: 4px;
}

/* =========================
   Tablet
========================= */

@media (max-width: 1200px) {
	.aam-account-shell__layout {
		grid-template-columns: 320px minmax(0, 1fr) !important;
		gap: 28px !important;
	}
}

/* =========================
   Mobile
========================= */

@media (max-width: 980px) {
	.woocommerce-account .entry-content-wrap {
		padding-left: 18px !important;
		padding-right: 18px !important;
	}

	.aam-account-shell {
		max-width: 100% !important;
	}

	.aam-account-shell__layout {
		display: block !important;
		grid-template-columns: 1fr !important;
		gap: 0 !important;
	}

	.aam-account-shell__topbar {
	justify-content: flex-end;
	margin: 0 0 16px;
	}

	.aam-account-shell__nav {
		display: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 18px !important;
	}

	.aam-account-shell__nav.is-open {
		display: block !important;
	}

	.aam-account-shell .woocommerce-MyAccount-navigation {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
	}

	.aam-account-shell .woocommerce-MyAccount-navigation ul {
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 6px;
	}

	.aam-account-shell .woocommerce-MyAccount-navigation ul li a {
		border-radius: 4px;
	}

	.aam-account-shell__nav-toggle {
		display: inline-flex !important;
		border-radius: 4px;
	}
	.aam-account-shell__nav-toggle-wrap {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.aam-account-shell__topbar {
	display: none !important;
}
	.aam-account-shell__content,
	.aam-account-shell .woocommerce-MyAccount-content {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
	}
}

@media (max-width: 767px) {
	.aam-panel,
	.aam-panel-hero,
	.aam-card {
		padding: 18px;
	}

	.aam-dashboard-wrap h2 {
		font-size: 26px;
	}
}
/* =========================
   AAM Profile Form Header + Processing
========================= */
.aam-profile-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.aam-profile-account-link,
.aam-profile-account-link:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid #d7dce5;
	border-radius: 4px;
	background: #ffffff;
	color: #2a2f36 !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.aam-profile-account-link:hover,
.aam-profile-account-link:focus {
	background: #f6f8fb;
	border-color: #bcc6d6;
	color: #1f2430 !important;
	transform: translateY(-1px);
	text-decoration: none !important;
	outline: none;
}

@media (max-width: 767px) {
	.aam-profile-header__actions {
		align-items: stretch;
		justify-content: flex-start;
		width: 100%;
	}

	.aam-profile-account-link,
	.aam-profile-submit {
		width: 100%;
	}
}

.aam-profile-form {
	max-width: 100%;
}

.aam-profile-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 24px;
}

.aam-profile-header__copy {
	min-width: 0;
}

.aam-profile-header__copy h2 {
	margin-top: 0;
}

.aam-profile-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.aam-profile-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 4px !important;
	white-space: nowrap;
}

.aam-profile-submit:disabled {
	cursor: not-allowed;
	opacity: 0.92;
}

.aam-profile-submit__text {
	display: inline-flex;
	align-items: center;
}

.aam-profile-submit__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 999px;
	animation: aam-profile-spin 0.7s linear infinite;
}

.aam-profile-form.is-submitting {
	pointer-events: none;
}

.aam-profile-form.is-submitting .aam-profile-submit__spinner {
	display: inline-block;
}

@keyframes aam-profile-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	.aam-profile-header {
		flex-direction: column;
		align-items: stretch;
	}

	.aam-profile-header__actions {
		justify-content: flex-start;
	}

	.aam-profile-submit {
		width: 100%;
	}
}
.aam-avatar {
	object-fit: cover;
	border-radius: 6px;
}