/**
 * Account page frontend styles.
 *
 * Location: /assets/css/frontend/account/account-page.css
 *
 * @package SunTechPortal
 */

.stp-account-page {
	--stp-account-primary: #ff5a00;
	--stp-account-primary-dark: #d94d00;
	--stp-account-accent: #16a34a;
	--stp-account-text: #0f172a;
	--stp-account-muted: #64748b;
	--stp-account-border: #e5e7eb;
	--stp-account-border-strong: #d1d5db;
	--stp-account-bg: #ffffff;
	--stp-account-soft: #f8fafc;
	--stp-account-soft-orange: #fff7ed;

	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	overflow-x: clip;
	color: var(--stp-account-text);
	font-size: 16px;
	line-height: 1.5;
}

.stp-account-page *,
.stp-account-page *::before,
.stp-account-page *::after,
body.stp-account-drawer-active > .stp-account-sidebar,
body.stp-account-drawer-active > .stp-account-sidebar *,
body.stp-account-drawer-active > .stp-account-sidebar *::before,
body.stp-account-drawer-active > .stp-account-sidebar *::after {
	box-sizing: border-box;
	min-width: 0;
}

.stp-account-page a,
body.stp-account-drawer-active > .stp-account-sidebar a {
	color: inherit;
	text-decoration: none;
}

.stp-account-page a:hover,
.stp-account-page a:focus,
body.stp-account-drawer-active > .stp-account-sidebar a:hover,
body.stp-account-drawer-active > .stp-account-sidebar a:focus {
	text-decoration: none;
}

html.stp-account-sidebar-lock,
body.stp-account-sidebar-lock {
	overflow: hidden;
}

body.stp-account-template-no-theme-title {
	overflow-x: clip;
}

body.stp-account-template-no-theme-title main .entry-title,
body.stp-account-template-no-theme-title main .page-title,
body.stp-account-template-no-theme-title main h1.entry-title,
body.stp-account-template-no-theme-title main h1.wp-block-post-title,
body.stp-account-template-no-theme-title .wp-site-blocks > main > .wp-block-post-title {
	display: none !important;
}

body.stp-account-template-no-theme-title .wp-site-blocks > main,
body.stp-account-template-no-theme-title main,
body.stp-account-template-no-theme-title .wp-block-post-content,
body.stp-account-template-no-theme-title .entry-content,
body.stp-account-template-no-theme-title .page-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.stp-account-template-no-theme-title .stp-account-page {
	margin-top: 0;
	padding-top: 0;
}

.stp-account-portal,
.stp-account-auth,
.stp-account-notice {
	position: relative;
	z-index: 2;
	width: min(1240px, calc(100% - 56px));
	max-width: 1240px;
	margin: -12px auto 34px;
}

.stp-account-page-head {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	margin: 0 0 20px;
	padding: 0;
	overflow: visible;
}

.stp-account-page-head h1 {
	position: relative;
	z-index: 6;
	display: block;
	margin: 0;
	color: var(--stp-account-text);
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.05;
	white-space: normal;
}

.stp-account-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--stp-account-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.stp-account-breadcrumb a:hover,
.stp-account-breadcrumb a:focus {
	color: var(--stp-account-primary);
	outline: none;
}

.stp-account-layout {
	position: relative;
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	gap: 28px;
	width: 100%;
	align-items: start;
	overflow: visible;
}

.stp-account-sidebar,
.stp-account-panel,
.stp-account-edit-form,
.stp-account-dashboard-panel {
	border: 1px solid var(--stp-account-border);
	border-radius: 20px;
	background: var(--stp-account-bg);
	box-shadow: none;
}

.stp-account-sidebar {
	position: relative;
	top: auto;
	min-width: 0;
	padding: 12px;
}

.stp-account-sidebar__toggle,
.stp-account-sidebar__close,
.stp-account-sidebar__head,
.stp-account-nav__arrow {
	display: none;
}

.stp-account-nav {
	display: grid;
	gap: 5px;
}

.stp-account-nav__item {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	min-height: 44px;
	padding: 11px 14px;
	border-radius: 12px;
	color: var(--stp-account-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.stp-account-nav__item .dashicons {
	width: 18px;
	height: 18px;
	color: #0f172a;
	font-size: 18px;
	line-height: 1;
}

.stp-account-nav__item:hover,
.stp-account-nav__item:focus {
	background: var(--stp-account-soft-orange);
	color: var(--stp-account-primary-dark);
	outline: none;
}

.stp-account-nav__item:hover .dashicons,
.stp-account-nav__item:focus .dashicons {
	color: var(--stp-account-primary-dark);
}

.stp-account-nav__item.is-active {
	background: var(--stp-account-primary);
	color: #ffffff;
}

.stp-account-nav__item.is-active .dashicons {
	color: #ffffff;
}

.stp-account-nav__item--logout {
	margin-top: 10px;
	color: #dc2626;
}

.stp-account-nav__item--logout .dashicons {
	color: #dc2626;
}

.stp-account-nav__item--logout:hover,
.stp-account-nav__item--logout:focus {
	background: #fef2f2;
	color: #dc2626;
}

.stp-account-main {
	min-width: 0;
	width: 100%;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.stp-account-section__head {
	margin-bottom: 18px;
}

.stp-account-panel {
	padding: 22px;
}

.stp-account-empty {
	padding: 20px;
	border: 1px dashed var(--stp-account-border);
	border-radius: 18px;
	background: var(--stp-account-soft);
	color: var(--stp-account-muted);
}

.stp-account-empty h3,
.stp-account-panel h3 {
	margin: 0 0 8px;
	color: var(--stp-account-text);
}

/* Dashboard */
.stp-account-dashboard {
	display: grid;
	gap: 18px;
	width: 100%;
	min-width: 0;
	overflow: visible;
}

.stp-account-dashboard-hero {
	position: relative;
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr) 190px;
	gap: 20px;
	align-items: center;
	min-width: 0;
	min-height: 218px;
	overflow: hidden;
	padding: 32px;
	border: 1px solid var(--stp-account-border);
	border-radius: 22px;
	background:
		radial-gradient(circle at 88% 25%, rgba(22, 163, 74, 0.12), transparent 34%),
		linear-gradient(135deg, #ffffff 0%, #fffaf5 45%, #f0fdf4 100%);
	box-shadow: none;
}

.stp-account-dashboard-hero__avatar {
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	border-radius: 22px;
	background: var(--stp-account-primary);
	color: #ffffff;
	font-size: 34px;
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1;
	box-shadow: none;
}

.stp-account-dashboard-hero__content {
	min-width: 0;
	align-self: center;
}

.stp-account-dashboard__eyebrow {
	margin: 0 0 8px;
	color: var(--stp-account-accent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.stp-account-dashboard__title {
	margin: 0;
	color: var(--stp-account-text);
	font-size: clamp(24px, 2.2vw, 34px);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.08;
}

.stp-account-dashboard__intro {
	max-width: 620px;
	margin: 8px 0 0;
	color: var(--stp-account-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
}

.stp-account-dashboard-hero__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, max-content));
	gap: 0;
	margin-top: 34px;
}

.stp-account-dashboard-hero__facts span {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 9px;
	align-items: center;
	min-width: 0;
	padding: 0 24px;
	border-right: 1px solid var(--stp-account-border-strong);
}

.stp-account-dashboard-hero__facts span:first-child {
	padding-left: 0;
}

.stp-account-dashboard-hero__facts span:last-child {
	border-right: 0;
}

.stp-account-dashboard-hero__facts i {
	grid-row: span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	color: #0f172a;
	font-size: 20px;
	line-height: 1;
}

.stp-account-dashboard-hero__facts small,
.stp-account-dashboard-hero__facts strong {
	display: block;
	overflow: hidden;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stp-account-dashboard-hero__facts small {
	color: var(--stp-account-muted);
	font-size: 12px;
	font-weight: 600;
}

.stp-account-dashboard-hero__facts strong {
	margin-top: 3px;
	color: var(--stp-account-text);
	font-size: 13px;
	font-weight: 900;
}

.stp-account-dashboard-hero__facts span:nth-child(2) strong {
	color: var(--stp-account-accent);
}

.stp-account-dashboard-hero__art {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 154px;
}

.stp-account-dashboard-hero__bag {
	position: relative;
	display: block;
	width: 92px;
	height: 116px;
	border: 1px solid rgba(22, 163, 74, 0.18);
	border-radius: 10px 10px 16px 16px;
	background: linear-gradient(135deg, #dcfce7, #f0fdf4);
	box-shadow: none;
	transform: rotate(1deg);
}

.stp-account-dashboard-hero__bag::before {
	content: "";
	position: absolute;
	top: -22px;
	left: 23px;
	width: 46px;
	height: 40px;
	border: 4px solid rgba(22, 163, 74, 0.24);
	border-bottom: 0;
	border-radius: 999px 999px 0 0;
}

.stp-account-dashboard-hero__bag-logo {
	position: absolute;
	top: 44px;
	left: 50%;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background:
		linear-gradient(135deg, transparent 0 38%, #ff5a00 39% 51%, transparent 52%),
		linear-gradient(45deg, transparent 0 34%, #ff8a1f 35% 47%, transparent 48%),
		#fff7ed;
	transform: translateX(-50%);
}

.stp-account-dashboard-hero__plant {
	position: absolute;
	right: 4px;
	bottom: 6px;
	width: 44px;
	height: 72px;
}

.stp-account-dashboard-hero__plant::before {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 0;
	width: 22px;
	height: 28px;
	border-radius: 4px 4px 12px 12px;
	background: #bbf7d0;
}

.stp-account-dashboard-hero__plant::after {
	content: "";
	position: absolute;
	right: 14px;
	bottom: 24px;
	width: 34px;
	height: 46px;
	border-radius: 999px 0 999px 0;
	background:
		radial-gradient(circle at 70% 20%, #86efac 0 18%, transparent 20%),
		linear-gradient(135deg, #86efac, #dcfce7);
	transform: rotate(-18deg);
}

.stp-account-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
	min-width: 0;
}

.stp-account-dashboard-card {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	min-width: 0;
	min-height: 154px;
	padding: 26px 22px;
	border: 1px solid var(--stp-account-border);
	border-radius: 18px;
	background: #ffffff;
	color: var(--stp-account-text);
	box-shadow: none;
	transition: border-color 0.16s ease, background-color 0.16s ease;
}

.stp-account-dashboard-card:hover,
.stp-account-dashboard-card:focus {
	border-color: #fed7aa;
	background: #fffaf5;
	color: var(--stp-account-text);
	outline: none;
	transform: none;
}

.stp-account-dashboard-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: #fff7ed;
	color: var(--stp-account-primary);
}

.stp-account-dashboard-card__icon i {
	width: 26px;
	height: 26px;
	font-size: 26px;
	line-height: 1;
}

.stp-account-dashboard-card--green .stp-account-dashboard-card__icon {
	background: #dcfce7;
	color: #16a34a;
}

.stp-account-dashboard-card--blue .stp-account-dashboard-card__icon,
.stp-account-dashboard-card--sky .stp-account-dashboard-card__icon {
	background: #e0f2fe;
	color: #0369a1;
}

.stp-account-dashboard-card--amber .stp-account-dashboard-card__icon,
.stp-account-dashboard-card--yellow .stp-account-dashboard-card__icon {
	background: #fef3c7;
	color: #b45309;
}

.stp-account-dashboard-card--rose .stp-account-dashboard-card__icon {
	background: #ffe4e6;
	color: #e11d48;
}

.stp-account-dashboard-card--violet .stp-account-dashboard-card__icon {
	background: #ede9fe;
	color: #6d28d9;
}

.stp-account-dashboard-card__body {
	display: grid;
	min-width: 0;
}

.stp-account-dashboard-card__body strong,
.stp-account-dashboard-card__body small,
.stp-account-dashboard-card__body em {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stp-account-dashboard-card__body strong {
	display: block;
	color: var(--stp-account-text);
	font-size: clamp(22px, 1.8vw, 30px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.stp-account-dashboard-card__body small {
	display: block;
	margin-top: 6px;
	color: var(--stp-account-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.stp-account-dashboard-card__body em {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: fit-content;
	max-width: 100%;
	margin-top: 28px;
	color: var(--stp-account-primary);
	font-size: 12px;
	font-style: normal;
	font-weight: 900;
	line-height: 1.2;
}

.stp-account-dashboard-card__body em i {
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 1;
}

.stp-account-dashboard-panel {
	padding: 22px;
	border: 1px solid var(--stp-account-border);
	border-radius: 20px;
	background: #ffffff;
	box-shadow: none;
}

.stp-account-dashboard-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

.stp-account-dashboard-panel__head h3 {
	margin: 0;
	color: var(--stp-account-text);
	font-size: 18px;
	font-weight: 900;
	line-height: 1.25;
}

.stp-account-dashboard-panel__head a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--stp-account-primary);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
	white-space: nowrap;
}

.stp-account-dashboard-panel__head a:hover,
.stp-account-dashboard-panel__head a:focus {
	color: var(--stp-account-primary-dark);
	outline: none;
}

.stp-account-dashboard-split {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
	gap: 18px;
	align-items: stretch;
}

.stp-account-dashboard-orders {
	display: grid;
	gap: 0;
}

.stp-account-dashboard-orders__head,
.stp-account-dashboard-order {
	display: grid;
	grid-template-columns: minmax(140px, 1.3fr) minmax(90px, 0.8fr) minmax(92px, 0.8fr) minmax(90px, 0.8fr) 50px;
	gap: 12px;
	align-items: center;
}

.stp-account-dashboard-orders__head {
	padding: 0 0 12px;
	border-bottom: 1px solid var(--stp-account-border);
	color: var(--stp-account-text);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
}

.stp-account-dashboard-order {
	min-width: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--stp-account-border);
	color: var(--stp-account-text);
}

.stp-account-dashboard-order:last-child {
	border-bottom: 0;
}

.stp-account-dashboard-order:hover,
.stp-account-dashboard-order:focus {
	color: var(--stp-account-text);
	outline: none;
}

.stp-account-dashboard-order__name {
	display: grid;
	min-width: 0;
}

.stp-account-dashboard-order__name strong,
.stp-account-dashboard-order__name small,
.stp-account-dashboard-order__date,
.stp-account-dashboard-order__total {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stp-account-dashboard-order__name strong {
	color: var(--stp-account-text);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
}

.stp-account-dashboard-order__name small,
.stp-account-dashboard-order__date {
	color: var(--stp-account-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.stp-account-dashboard-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 26px;
	padding: 5px 9px;
	border-radius: 8px;
	background: #fef3c7;
	color: #b45309;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
}

.stp-account-dashboard-status--delivered,
.stp-account-dashboard-status--completed,
.stp-account-dashboard-status--paid {
	background: #dcfce7;
	color: #15803d;
}

.stp-account-dashboard-status--shipped {
	background: #dbeafe;
	color: #1d4ed8;
}

.stp-account-dashboard-status--cancelled,
.stp-account-dashboard-status--failed {
	background: #fee2e2;
	color: #dc2626;
}

.stp-account-dashboard-order__total {
	color: var(--stp-account-text);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
}

.stp-account-dashboard-order__view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
	width: 32px;
	height: 28px;
	border: 1px solid var(--stp-account-border);
	border-radius: 8px;
	background: #ffffff;
	color: #0f172a;
}

.stp-account-dashboard-order__view i {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
}

.stp-account-dashboard-insights {
	display: grid;
	gap: 14px;
}

.stp-account-dashboard-insight {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--stp-account-border);
	border-radius: 16px;
	background: #ffffff;
}

.stp-account-dashboard-insight--chart {
	grid-template-columns: 108px minmax(0, 1fr);
	align-items: center;
}

.stp-account-dashboard-donut {
	display: grid;
	place-items: center;
	width: 98px;
	height: 98px;
	border-radius: 999px;
	background: conic-gradient(#22c55e 0 62%, #f59e0b 62% 74%, #0ea5e9 74% 90%, #ef4444 90% 100%);
}

.stp-account-dashboard-donut span {
	display: block;
	width: 58px;
	height: 58px;
	border: 1px solid var(--stp-account-border);
	border-radius: 999px;
	background: #ffffff;
	box-shadow: none;
}

.stp-account-dashboard-legend {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.stp-account-dashboard-legend strong {
	margin-bottom: 2px;
	color: var(--stp-account-text);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
}

.stp-account-dashboard-legend span {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
	color: var(--stp-account-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.stp-account-dashboard-legend i {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 999px;
}

.stp-account-dashboard-legend em {
	color: var(--stp-account-text);
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
}

.stp-account-dashboard-legend .is-green {
	background: #22c55e;
}

.stp-account-dashboard-legend .is-orange {
	background: #f59e0b;
}

.stp-account-dashboard-legend .is-blue {
	background: #0ea5e9;
}

.stp-account-dashboard-legend .is-red {
	background: #ef4444;
}

.stp-account-dashboard-insight__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--stp-account-soft);
	color: var(--stp-account-text);
}

.stp-account-dashboard-insight__icon i {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}

.stp-account-dashboard-insight__icon--green {
	background: #dcfce7;
	color: #16a34a;
}

.stp-account-dashboard-insight__icon--orange {
	background: #fff7ed;
	color: var(--stp-account-primary);
}

.stp-account-dashboard-insight span:last-child {
	display: grid;
	min-width: 0;
}

.stp-account-dashboard-insight strong,
.stp-account-dashboard-insight small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stp-account-dashboard-insight strong {
	color: var(--stp-account-text);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
}

.stp-account-dashboard-insight small {
	margin-top: 3px;
	color: var(--stp-account-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.stp-account-dashboard-insight a {
	width: fit-content;
	margin-top: 6px;
	color: var(--stp-account-primary);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
}

.stp-account-dashboard-insight a:hover,
.stp-account-dashboard-insight a:focus {
	color: var(--stp-account-primary-dark);
	outline: none;
}

.stp-account-dashboard-actions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.stp-account-dashboard-action {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	min-width: 0;
	min-height: 86px;
	padding: 16px;
	border: 1px solid #fed7aa;
	border-radius: 16px;
	background: #fff7ed;
	color: var(--stp-account-text);
	transition: border-color 0.16s ease;
}

.stp-account-dashboard-action:hover,
.stp-account-dashboard-action:focus {
	border-color: #fdba74;
	color: var(--stp-account-text);
	outline: none;
	transform: none;
}

.stp-account-dashboard-action i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: #ffffff;
	color: #0f172a;
	font-size: 23px;
	line-height: 1;
}

.stp-account-dashboard-action span {
	display: grid;
	min-width: 0;
}

.stp-account-dashboard-action strong,
.stp-account-dashboard-action small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stp-account-dashboard-action strong {
	color: var(--stp-account-text);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
}

.stp-account-dashboard-action small {
	margin-top: 3px;
	color: var(--stp-account-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.stp-account-dashboard-action--green {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.stp-account-dashboard-action--violet {
	border-color: #ddd6fe;
	background: #f5f3ff;
}

.stp-account-dashboard-action--amber {
	border-color: #fed7aa;
	background: #fff7ed;
}

.stp-account-notice {
	padding: 14px 16px;
	border-radius: 16px;
	font-weight: 800;
}

.stp-account-notice--success {
	background: #ecfdf5;
	color: #047857;
}

.stp-account-notice--error {
	background: #fef2f2;
	color: #b91c1c;
}

.stp-account-notice--warning {
	background: #fffbeb;
	color: #92400e;
}

.stp-account-edit-form {
	padding: 22px;
}

.stp-account-form-grid,
.stp-account-address-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.stp-account-edit-form label,
.stp-account-auth label,
.stp-account-address-grid label {
	display: grid;
	gap: 7px;
	color: var(--stp-account-text);
	font-weight: 800;
}

.stp-account-edit-form input,
.stp-account-auth input,
.stp-account-address-grid input {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--stp-account-border);
	border-radius: 14px;
	background: #ffffff;
	color: var(--stp-account-text);
}

.stp-account-edit-form input:focus,
.stp-account-auth input:focus,
.stp-account-address-grid input:focus {
	border-color: var(--stp-account-primary);
	outline: none;
	box-shadow: none;
}

.stp-account-edit-form button,
.stp-account-auth button {
	min-height: 46px;
	margin-top: 18px;
	padding: 0 18px;
	border: 0;
	border-radius: 14px;
	background: var(--stp-account-primary);
	color: #ffffff;
	font-weight: 900;
	cursor: pointer;
}

.stp-account-edit-form button:hover,
.stp-account-auth button:hover {
	background: var(--stp-account-primary-dark);
}

.stp-account-address-grid fieldset {
	min-width: 0;
	margin: 0;
	padding: 18px;
	border: 1px solid var(--stp-account-border);
	border-radius: 18px;
}

.stp-account-address-grid legend {
	padding: 0 8px;
	font-weight: 900;
}

/* Body-level account drawer. JS moves sidebar into body while open. */
.stp-account-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483600;
	display: block;
	width: 100vw;
	height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(15, 23, 42, 0.58);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open {
	--stp-account-primary: #ff5a00;
	--stp-account-primary-dark: #d94d00;
	--stp-account-accent: #16a34a;
	--stp-account-text: #0f172a;
	--stp-account-muted: #64748b;
	--stp-account-border: #e5e7eb;
	--stp-account-bg: #ffffff;
	--stp-account-soft-orange: #fff7ed;

	position: fixed;
	top: 0;
	left: 0;
	z-index: 2147483647;
	display: block;
	width: min(300px, 78vw);
	min-width: 0;
	max-width: min(300px, 78vw);
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	overflow-y: auto;
	padding: 14px 12px;
	border: 0;
	border-radius: 0 18px 18px 0;
	background: #ffffff;
	color: var(--stp-account-text);
	pointer-events: auto;
	transform: translateX(0);
	animation: stpAccountDrawerIn 0.2s ease-out;
	scrollbar-width: none;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open::-webkit-scrollbar {
	display: none;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-sidebar__toggle {
	display: none;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-sidebar__head {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 34px;
	gap: 10px;
	align-items: center;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--stp-account-border);
}

.stp-account-sidebar__brand {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--stp-account-primary);
	color: #ffffff;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

.stp-account-sidebar__title {
	display: grid;
	min-width: 0;
}

.stp-account-sidebar__title strong {
	overflow: hidden;
	color: var(--stp-account-text);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stp-account-sidebar__title small {
	overflow: hidden;
	color: var(--stp-account-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-sidebar__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--stp-account-border);
	border-radius: 10px;
	background: #ffffff;
	color: var(--stp-account-text);
	cursor: pointer;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-sidebar__close .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-nav {
	gap: 4px;
	margin-top: 14px;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-nav__item {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) 16px;
	justify-content: stretch;
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	border-radius: 12px;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-nav__label,
body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-nav__arrow {
	display: inline-flex;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-nav__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-nav__arrow {
	color: var(--stp-account-primary);
}

/* Tablet and mobile */
@media (max-width: 1180px) {
	body.stp-account-template-no-theme-title,
	body.stp-account-template-no-theme-title .wp-site-blocks,
	body.stp-account-template-no-theme-title main,
	body.stp-account-template-no-theme-title .wp-block-post-content,
	body.stp-account-template-no-theme-title .entry-content,
	body.stp-account-template-no-theme-title .page-content {
		width: 100% !important;
		max-width: none !important;
		overflow-x: clip !important;
	}

	.stp-account-page {
		width: 100%;
		max-width: 100%;
		margin: 0;
		overflow-x: clip;
	}

	.stp-account-portal,
	.stp-account-auth,
	.stp-account-notice {
		width: 100%;
		max-width: none;
		margin: 10px 0 30px;
		padding: 0 4px;
		transform: none;
	}

	.stp-account-page-head {
		align-items: center;
		gap: 10px;
		margin-bottom: 10px;
		padding-left: 52px;
	}

	.stp-account-page-head h1 {
		font-size: clamp(22px, 3.4vw, 28px);
		line-height: 1.08;
		letter-spacing: -0.04em;
		white-space: nowrap;
	}

	.stp-account-breadcrumb {
		gap: 6px;
		max-width: 48%;
		overflow: hidden;
		font-size: 10px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.stp-account-layout {
		display: grid;
		grid-template-columns: 46px minmax(0, 1fr);
		gap: 6px;
		width: 100%;
		max-width: 100%;
		align-items: start;
		overflow: visible;
	}

	.stp-account-main {
		width: 100%;
		max-width: 100%;
		overflow: visible;
	}

	.stp-account-sidebar {
		position: relative;
		top: auto;
		left: auto;
		z-index: 20;
		width: 46px;
		min-width: 46px;
		max-width: 46px;
		max-height: none;
		overflow: visible;
		padding: 6px;
		border-radius: 16px;
		background: #ffffff;
		transition: width 0.18s ease, max-width 0.18s ease, border-radius 0.18s ease, transform 0.18s ease;
		scrollbar-width: none;
	}

	.stp-account-sidebar::-webkit-scrollbar {
		display: none;
	}

	.stp-account-sidebar__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		margin: 0 0 7px;
		border: 1px solid var(--stp-account-primary);
		border-radius: 10px;
		background: #ffffff;
		color: var(--stp-account-primary);
		cursor: pointer;
	}

	.stp-account-sidebar__toggle .dashicons {
		width: 16px;
		height: 16px;
		font-size: 16px;
		line-height: 1;
	}

	.stp-account-sidebar__head {
		display: none;
	}

	.stp-account-nav {
		gap: 5px;
	}

	.stp-account-nav__item {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		min-height: 32px;
		padding: 0;
		border-radius: 10px;
	}

	.stp-account-nav__item .dashicons {
		width: 15px;
		height: 15px;
		font-size: 15px;
	}

	.stp-account-nav__label,
	.stp-account-nav__arrow {
		display: none;
	}

	.stp-account-dashboard {
		gap: 12px;
		width: 100%;
		max-width: 100%;
		overflow: visible;
	}

	.stp-account-dashboard-hero {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 12px;
		width: 100%;
		min-height: 0;
		padding: 16px;
		border-radius: 18px;
		overflow: hidden;
	}

	.stp-account-dashboard-hero__avatar {
		width: 56px;
		height: 56px;
		border-radius: 16px;
		font-size: 22px;
	}

	.stp-account-dashboard__eyebrow {
		margin-bottom: 5px;
		font-size: 10px;
		letter-spacing: 0.06em;
	}

	.stp-account-dashboard__title {
		display: -webkit-box;
		max-width: 100%;
		margin: 0;
		overflow: hidden;
		color: var(--stp-account-text);
		font-size: clamp(20px, 4.8vw, 26px);
		font-weight: 900;
		line-height: 1.08;
		letter-spacing: -0.04em;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.stp-account-dashboard__intro {
		display: -webkit-box;
		max-width: 100%;
		margin-top: 6px;
		overflow: hidden;
		font-size: 11px;
		line-height: 1.45;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.stp-account-dashboard-hero__facts {
		grid-column: 1 / -1;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		margin-top: 10px;
	}

	.stp-account-dashboard-hero__facts span {
		display: grid;
		grid-template-columns: 16px minmax(0, 1fr);
		column-gap: 5px;
		padding: 0;
		border-right: 0;
	}

	.stp-account-dashboard-hero__facts i {
		width: 16px;
		height: 16px;
		font-size: 14px;
	}

	.stp-account-dashboard-hero__facts small {
		font-size: 9px;
	}

	.stp-account-dashboard-hero__facts strong {
		font-size: 10px;
	}

	.stp-account-dashboard-hero__art {
		display: none;
	}

	.stp-account-dashboard-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
	}

	.stp-account-dashboard-card:nth-child(n+5) {
		display: none;
	}

	.stp-account-dashboard-card {
		grid-template-columns: 1fr;
		gap: 6px;
		min-height: 92px;
		padding: 10px 7px;
		border-radius: 14px;
		overflow: hidden;
	}

	.stp-account-dashboard-card__icon {
		width: 26px;
		height: 26px;
		border-radius: 9px;
	}

	.stp-account-dashboard-card__icon i {
		width: 14px;
		height: 14px;
		font-size: 14px;
	}

	.stp-account-dashboard-card__body strong {
		font-size: clamp(16px, 4vw, 20px);
	}

	.stp-account-dashboard-card__body small {
		margin-top: 2px;
		font-size: 9px;
	}

	.stp-account-dashboard-card__body em {
		margin-top: 7px;
		font-size: 8px;
		gap: 2px;
	}

	.stp-account-dashboard-card__body em i {
		width: 9px;
		height: 9px;
		font-size: 9px;
	}

	.stp-account-dashboard-panel {
		width: 100%;
		padding: 14px;
		border-radius: 16px;
		overflow: visible;
	}

	.stp-account-dashboard-panel__head {
		gap: 8px;
		margin-bottom: 12px;
	}

	.stp-account-dashboard-panel__head h3 {
		font-size: 15px;
	}

	.stp-account-dashboard-panel__head a {
		max-width: 48%;
		overflow: hidden;
		font-size: 10px;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.stp-account-dashboard-split {
		grid-template-columns: 1fr;
		gap: 12px;
		width: 100%;
	}

	.stp-account-dashboard-orders__head {
		display: none;
	}

	.stp-account-dashboard-order {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 6px 10px;
		padding: 10px 0;
	}

	.stp-account-dashboard-order__name {
		grid-column: 1;
	}

	.stp-account-dashboard-order__date,
	.stp-account-dashboard-status,
	.stp-account-dashboard-order__total {
		grid-column: 1;
		justify-self: start;
		font-size: 10px;
	}

	.stp-account-dashboard-status {
		min-height: 21px;
		padding: 4px 7px;
		border-radius: 7px;
		font-size: 9px;
	}

	.stp-account-dashboard-order__view {
		grid-column: 2;
		grid-row: 1 / span 4;
		align-self: center;
		width: 26px;
		height: 24px;
		border-radius: 7px;
	}

	.stp-account-dashboard-order__view i {
		width: 12px;
		height: 12px;
		font-size: 12px;
	}

	.stp-account-dashboard-insight {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 9px;
		padding: 10px;
		border-radius: 14px;
	}

	.stp-account-dashboard-insight--chart {
		grid-template-columns: 70px minmax(0, 1fr);
	}

	.stp-account-dashboard-donut {
		width: 64px;
		height: 64px;
	}

	.stp-account-dashboard-donut span {
		width: 38px;
		height: 38px;
	}

	.stp-account-dashboard-legend {
		gap: 4px;
	}

	.stp-account-dashboard-legend strong,
	.stp-account-dashboard-legend span,
	.stp-account-dashboard-legend em,
	.stp-account-dashboard-insight strong,
	.stp-account-dashboard-insight small,
	.stp-account-dashboard-insight a {
		font-size: 9px;
	}

	.stp-account-dashboard-legend i {
		width: 7px;
		height: 7px;
	}

	.stp-account-dashboard-insight__icon {
		width: 32px;
		height: 32px;
		border-radius: 10px;
	}

	.stp-account-dashboard-insight__icon i {
		width: 15px;
		height: 15px;
		font-size: 15px;
	}

	.stp-account-dashboard-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.stp-account-dashboard-action {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 8px;
		min-height: 66px;
		padding: 9px;
		border-radius: 13px;
	}

	.stp-account-dashboard-action i {
		width: 30px;
		height: 30px;
		border-radius: 9px;
		font-size: 14px;
	}

	.stp-account-dashboard-action strong {
		font-size: 10px;
	}

	.stp-account-dashboard-action small {
		font-size: 9px;
	}

	.stp-account-form-grid,
	.stp-account-address-grid {
		grid-template-columns: 1fr;
	}
}

/* Small mobile */
@media (max-width: 600px) {
	.stp-account-portal,
	.stp-account-auth,
	.stp-account-notice {
		width: 100%;
		margin-top: 8px;
		margin-bottom: 28px;
		padding: 0 3px;
	}

	.stp-account-page-head {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
		margin-bottom: 8px;
		padding-left: 50px;
	}

	.stp-account-page-head h1 {
		font-size: clamp(21px, 6vw, 25px);
	}

	.stp-account-breadcrumb {
		max-width: 100%;
		font-size: 9px;
	}

	.stp-account-layout {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 5px;
	}

	.stp-account-sidebar {
		width: 44px;
		min-width: 44px;
		max-width: 44px;
		padding: 5px;
		border-radius: 15px;
	}

	.stp-account-sidebar__toggle,
	.stp-account-nav__item {
		width: 32px;
		min-height: 32px;
	}

	body.stp-account-drawer-active > .stp-account-sidebar.is-open {
		width: min(276px, 78vw);
		max-width: min(276px, 78vw);
		border-radius: 0 18px 18px 0;
	}

	body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-sidebar__head {
		grid-template-columns: minmax(0, 1fr) 34px;
	}

	body.stp-account-drawer-active > .stp-account-sidebar.is-open .stp-account-sidebar__brand {
		display: none;
	}

	.stp-account-dashboard {
		gap: 10px;
	}

	.stp-account-dashboard-hero {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 10px;
		padding: 12px;
		border-radius: 16px;
	}

	.stp-account-dashboard-hero__avatar {
		width: 48px;
		height: 48px;
		border-radius: 14px;
		font-size: 20px;
	}

	.stp-account-dashboard__eyebrow {
		font-size: 9px;
	}

	.stp-account-dashboard__title {
		font-size: clamp(18px, 5.8vw, 23px);
	}

	.stp-account-dashboard__intro {
		font-size: 10px;
		line-height: 1.35;
	}

	.stp-account-dashboard-hero__facts {
		gap: 6px;
		margin-top: 8px;
	}

	.stp-account-dashboard-hero__facts span {
		grid-template-columns: 13px minmax(0, 1fr);
		column-gap: 4px;
	}

	.stp-account-dashboard-hero__facts i {
		width: 13px;
		height: 13px;
		font-size: 12px;
	}

	.stp-account-dashboard-hero__facts small,
	.stp-account-dashboard-hero__facts strong {
		font-size: 8px;
	}

	.stp-account-dashboard-grid {
		gap: 6px;
	}

	.stp-account-dashboard-card {
		min-height: 82px;
		padding: 8px 5px;
		border-radius: 12px;
	}

	.stp-account-dashboard-card__icon {
		width: 22px;
		height: 22px;
		border-radius: 8px;
	}

	.stp-account-dashboard-card__icon i {
		width: 12px;
		height: 12px;
		font-size: 12px;
	}

	.stp-account-dashboard-card__body strong {
		font-size: clamp(14px, 4.6vw, 18px);
	}

	.stp-account-dashboard-card__body small {
		font-size: 8px;
	}

	.stp-account-dashboard-card__body em {
		margin-top: 5px;
		font-size: 7px;
	}

	.stp-account-dashboard-panel {
		padding: 11px;
		border-radius: 14px;
	}

	.stp-account-dashboard-panel__head h3 {
		font-size: 14px;
	}

	.stp-account-dashboard-panel__head a {
		font-size: 9px;
	}

	.stp-account-dashboard-insight {
		padding: 9px;
	}

	.stp-account-dashboard-insight--chart {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.stp-account-dashboard-donut {
		width: 60px;
		height: 60px;
	}

	.stp-account-dashboard-donut span {
		width: 36px;
		height: 36px;
	}

	.stp-account-dashboard-legend strong,
	.stp-account-dashboard-legend span,
	.stp-account-dashboard-legend em,
	.stp-account-dashboard-insight strong,
	.stp-account-dashboard-insight small,
	.stp-account-dashboard-insight a {
		font-size: 8px;
	}

	.stp-account-dashboard-actions {
		gap: 7px;
	}

	.stp-account-dashboard-action {
		grid-template-columns: 28px minmax(0, 1fr);
		gap: 7px;
		min-height: 64px;
		padding: 8px;
		border-radius: 12px;
	}

	.stp-account-dashboard-action i {
		width: 28px;
		height: 28px;
		border-radius: 8px;
		font-size: 13px;
	}

	.stp-account-dashboard-action strong {
		font-size: 9px;
	}

	.stp-account-dashboard-action small {
		font-size: 8px;
	}
}

@keyframes stpAccountDrawerIn {
	from {
		transform: translateX(-100%);
	}

	to {
		transform: translateX(0);
	}
}