.zetpo-customer-account {
	--zetpo-red: #ef233c;
	--zetpo-red-dark: #d81d33;
	--zetpo-navy: #15233c;
	--zetpo-muted: #718096;
	--zetpo-line: #e7ebf1;
	--zetpo-surface: #f5f7fa;
}

.zetpo-customer-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 264px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
	width: 100%;
}

.zetpo-customer-account .woocommerce > .woocommerce-MyAccount-navigation {
	position: sticky;
	top: 32px;
	width: auto !important;
	float: none !important;
	overflow: hidden;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--zetpo-line);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(21, 35, 60, .07);
}

.zetpo-customer-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zetpo-customer-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; }
.zetpo-customer-account .woocommerce-MyAccount-navigation a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 11px 14px;
	border-radius: 10px;
	color: #566176;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
}
.zetpo-customer-account .woocommerce-MyAccount-navigation a:hover { background: #f3f4f6; color: #343a40; }
.zetpo-customer-account .woocommerce-MyAccount-navigation .is-active a { background: #eceef0; color: #2f343b; }
.zetpo-customer-account .woocommerce-MyAccount-navigation .is-active a::before {
	content: "";
	position: absolute;
	inset: 9px auto 9px -16px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: #343a40;
}

.zetpo-customer-account .woocommerce > .woocommerce-MyAccount-content {
	width: auto !important;
	min-width: 0;
	float: none !important;
}
.zetpo-account-dashboard .woocommerce-MyAccount-content > p:first-child { display: none; }
.zetpo-account-shell { color: var(--zetpo-navy); }

.zetpo-account-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
	padding: 30px 32px;
	border-radius: 16px;
	background: linear-gradient(135deg, #15233c, #223b62);
	color: #fff;
	box-shadow: 0 16px 38px rgba(21, 35, 60, .16);
}
.zetpo-account-eyebrow,
.zetpo-account-panel-head span,
.zetpo-account-endpoint-head small { display: block; color: #ff9ca8; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.zetpo-account-hero h2 { margin: 5px 0 7px; color: #fff; font-size: clamp(24px, 3vw, 31px); line-height: 1.2; }
.zetpo-account-hero p { max-width: 650px; margin: 0; color: #d8e0eb; font-size: 13px; }
.zetpo-account-primary {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 10px;
	background: var(--zetpo-red);
	color: #fff !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(239, 35, 60, .24);
}
.zetpo-account-primary:hover { background: var(--zetpo-red-dark); }

.zetpo-account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.zetpo-account-stat {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 13px;
	min-height: 128px;
	padding: 19px;
	background: #fff;
	border: 1px solid var(--zetpo-line);
	border-radius: 13px;
	box-shadow: 0 7px 20px rgba(18, 35, 60, .045);
}
.zetpo-account-stat > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: #fff0f2; color: var(--zetpo-red); }
.zetpo-account-stat.icon-wallet > span { background: #edf5ff; color: #2f80ed; }
.zetpo-account-stat.icon-discount > span { background: #fff4e9; color: #f47103; }
.zetpo-account-stat.icon-company > span { background: #eaf8f2; color: #13a46f; }
.zetpo-account-stat small { display: block; color: #7d8899; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.zetpo-account-stat strong { display: block; margin: 7px 0 5px; color: var(--zetpo-navy); font-size: 20px; line-height: 1.15; }
.zetpo-account-stat em { display: block; overflow: hidden; color: var(--zetpo-muted); font-size: 9px; font-style: normal; line-height: 1.4; }

.zetpo-account-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr); gap: 18px; margin-bottom: 18px; }
.zetpo-account-panel { min-width: 0; background: #fff; border: 1px solid var(--zetpo-line); border-radius: 13px; box-shadow: 0 7px 20px rgba(18, 35, 60, .045); }
.zetpo-account-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px 16px; }
.zetpo-account-panel-head span { color: #98a2b3; }
.zetpo-account-panel-head h3 { margin: 4px 0 0; color: var(--zetpo-navy); font-size: 18px; }
.zetpo-account-panel-head > a,
.zetpo-account-text-link { color: #343a40 !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.zetpo-account-order { display: grid; grid-template-columns: 36px minmax(95px, 1fr) auto auto 12px; align-items: center; gap: 10px; margin: 0 20px; padding: 12px 2px; border-top: 1px solid #eef1f5; color: var(--zetpo-navy) !important; text-decoration: none !important; }
.zetpo-order-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f1f4f8; color: #65738a; font-size: 12px; font-weight: 850; }
.zetpo-account-order > span:nth-child(2) { display: grid; }
.zetpo-account-order strong { font-size: 12px; }
.zetpo-account-order small { margin-top: 3px; color: var(--zetpo-muted); font-size: 9px; }
.zetpo-account-order em { padding: 5px 8px; border-radius: 6px; background: #fff4e8; color: #b75b00; font-size: 9px; font-style: normal; font-weight: 750; }
.zetpo-account-order em.status-completed { background: #eaf8f2; color: #13a46f; }
.zetpo-account-order em.status-cancelled,
.zetpo-account-order em.status-failed { background: #fff0f2; color: var(--zetpo-red-dark); }
.zetpo-account-order > b { font-size: 11px; text-align: right; }
.zetpo-account-order > span:last-child { color: #98a2b3; }
.zetpo-account-empty { display: grid; gap: 8px; margin: 0 22px 22px; padding: 26px; border-radius: 10px; background: #f8f9fb; text-align: center; }
.zetpo-account-empty a { color: #343a40; }

.zetpo-account-benefit-card { background: linear-gradient(145deg, #fff 0%, #fff 67%, #fff5f6 100%); }
.zetpo-account-benefit-card .zetpo-account-panel-head > strong { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f1b544; color: #15233c; font-size: 16px; }
.zetpo-account-benefit-list { padding: 0 22px 22px; }
.zetpo-account-benefit-list p { margin: 0; padding: 10px 0; border-top: 1px solid #eef1f5; font-size: 12px; }
.zetpo-account-benefit-list p span { margin-right: 8px; color: #13a46f; font-weight: 900; }
.zetpo-account-progress { margin: 14px 0 16px; }
.zetpo-account-progress > div { height: 8px; overflow: hidden; border-radius: 20px; background: #edf0f4; }
.zetpo-account-progress > div span { display: block; height: 100%; border-radius: inherit; background: var(--zetpo-red); }
.zetpo-account-progress small { display: block; margin-top: 7px; color: var(--zetpo-muted); font-size: 9px; }

.zetpo-account-chart { margin-bottom: 18px; overflow: hidden; }
.zetpo-account-chart .zetpo-account-panel-head > strong { color: var(--zetpo-navy); font-size: 18px; }
.zetpo-account-bars { display: grid; grid-template-columns: repeat(6, minmax(34px, 1fr)); align-items: end; gap: clamp(10px, 2.5vw, 28px); min-height: 245px; padding: 18px 28px 22px; border-top: 1px solid #eef1f5; background: linear-gradient(180deg, #fbfcfe, #fff); }
.zetpo-account-bar { display: grid; grid-template-rows: 24px 150px 20px; gap: 7px; min-width: 0; text-align: center; }
.zetpo-account-bar small { align-self: end; overflow: hidden; color: #7a8698; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.zetpo-account-bar i { position: relative; display: block; overflow: hidden; border-radius: 8px 8px 3px 3px; background: repeating-linear-gradient(to top, #f2f4f7 0, #f2f4f7 1px, transparent 1px, transparent 37px); }
.zetpo-account-bar i b { position: absolute; inset: auto 12% 0; display: block; min-height: 7px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #ff5a6c, var(--zetpo-red)); box-shadow: 0 5px 12px rgba(239, 35, 60, .18); }
.zetpo-account-bar span { color: #566176; font-size: 10px; font-weight: 800; text-transform: uppercase; }

.zetpo-account-quick { overflow: hidden; }
.zetpo-account-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 22px 22px; }
.zetpo-account-quick-grid > a { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) 10px; grid-template-rows: auto auto; align-items: center; column-gap: 10px; min-height: 94px; padding: 14px; border: 1px solid var(--zetpo-line); border-radius: 10px; background: #fafbfd; color: var(--zetpo-navy) !important; text-decoration: none !important; }
.zetpo-account-quick-grid > a:hover { border-color: #cfd4da; background: #f4f5f6; }
.zetpo-account-quick-grid > a > span { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #fff0f2; color: var(--zetpo-red); }
.zetpo-account-quick-grid strong { align-self: end; font-size: 11px; }
.zetpo-account-quick-grid small { align-self: start; color: var(--zetpo-muted); font-size: 9px; }
.zetpo-account-quick-grid b { grid-column: 3; grid-row: 1 / 3; color: #9ba5b3; font-size: 18px; }

.zetpo-account-endpoint-shell { color: var(--zetpo-navy); }
.zetpo-account-endpoint-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 24px 26px; border-radius: 16px 16px 0 0; background: linear-gradient(135deg, #15233c, #223b62); color: #fff; }
.zetpo-account-endpoint-head > .dashicons { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 25px; }
.zetpo-account-endpoint-head h2 { margin: 4px 0 3px; color: #fff; font-size: 24px; }
.zetpo-account-endpoint-head p { margin: 0; color: #d8e0eb; font-size: 11px; }
.zetpo-account-endpoint-head > a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 9px; color: #fff !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.zetpo-account-endpoint-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--zetpo-line); border-top: 0; background: #fff; }
.zetpo-account-endpoint-metrics > span { display: grid; gap: 4px; padding: 16px 20px; border-left: 1px solid var(--zetpo-line); }
.zetpo-account-endpoint-metrics > span:first-child { border-left: 0; }
.zetpo-account-endpoint-metrics small { color: #8a95a5; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.zetpo-account-endpoint-metrics strong { overflow: hidden; color: var(--zetpo-navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.zetpo-account-endpoint-content { min-height: 260px; padding: 24px 26px; border: 1px solid var(--zetpo-line); border-top: 0; border-radius: 0 0 16px 16px; background: #fff; box-shadow: 0 12px 32px rgba(21, 35, 60, .06); }
.zetpo-account-endpoint-content > p:first-child { margin-top: 0; }
.zetpo-account-endpoint-content table { overflow: hidden; width: 100%; border: 1px solid var(--zetpo-line); border-radius: 10px; border-collapse: separate; border-spacing: 0; }
.zetpo-account-endpoint-content table th { padding: 12px; background: #f7f8fa; color: #667085; font-size: 10px; text-transform: uppercase; }
.zetpo-account-endpoint-content table td { padding: 13px 12px; border-top: 1px solid var(--zetpo-line); }
.zetpo-account-endpoint-content input.input-text,
.zetpo-account-endpoint-content select,
.zetpo-account-endpoint-content textarea { min-height: 43px; border: 1px solid #d9dee7; border-radius: 9px; box-shadow: none; }
.zetpo-account-endpoint-content .woocommerce-Address { padding: 18px; border: 1px solid var(--zetpo-line); border-radius: 12px; background: #fafbfd; }

.zetpo-customer-account .zetpo-benefits,
.zetpo-customer-account .zetpo-b2b-account { padding: 0; border: 0; background: transparent; box-shadow: none; }
.zetpo-customer-account .button,
.zetpo-customer-account button[type="submit"] { border-radius: 9px !important; }
.zetpo-customer-account .button.alt,
.zetpo-customer-account button[type="submit"],
.zetpo-customer-account .woocommerce-Button { border-color: var(--zetpo-red-dark) !important; background: var(--zetpo-red) !important; color: #fff !important; }
.zetpo-account-primary,
.zetpo-account-primary *,
.zetpo-customer-account a.button,
.zetpo-customer-account a.button *,
.zetpo-customer-account button.button,
.zetpo-customer-account button.button * { color: #fff !important; }

@media (max-width: 1180px) {
	.zetpo-account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zetpo-account-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.zetpo-customer-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: 1fr; }
	.zetpo-customer-account .woocommerce > .woocommerce-MyAccount-navigation { position: static; }
	.zetpo-customer-account .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; scrollbar-width: thin; }
	.zetpo-customer-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
	.zetpo-account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.zetpo-account-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
	.zetpo-account-stats { grid-template-columns: 1fr; }
	.zetpo-account-quick-grid { grid-template-columns: 1fr; }
	.zetpo-account-order { grid-template-columns: 34px minmax(80px, 1fr) auto 10px; }
	.zetpo-account-order em { display: none; }
	.zetpo-account-endpoint-head { grid-template-columns: 44px minmax(0, 1fr); padding: 20px; }
	.zetpo-account-endpoint-head > .dashicons { width: 44px; height: 44px; }
	.zetpo-account-endpoint-head > a { grid-column: 1 / -1; justify-content: center; }
	.zetpo-account-endpoint-metrics { grid-template-columns: 1fr; }
	.zetpo-account-endpoint-metrics > span { border-top: 1px solid var(--zetpo-line); border-left: 0; }
	.zetpo-account-endpoint-metrics > span:first-child { border-top: 0; }
	.zetpo-account-endpoint-content { padding: 20px; }
	.zetpo-account-bars { gap: 6px; padding-inline: 12px; }
	.zetpo-account-bar { grid-template-rows: 18px 120px 18px; }
	.zetpo-account-bar small { font-size: 0; }
}
