.account,
.account-auth {
	--green: #16a34a;
	--green-dark: #15803d;
	--green-soft: #ecfdf5;
	--green-border: #a7f3d0;
	--gradient: linear-gradient(254.63deg, #4ade80 -63.66%, #16a34a 113.86%);
	--dark: #0f172a;
	--gray: #64748b;
	--bg-light: #f1f5f9;
	--line: #e6efe9;
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 16px 64px;
	font-family: inherit;
	color: var(--dark);
	box-sizing: border-box;
}

.account *,
.account-auth * {
	box-sizing: border-box;
}

.account {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.account__sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.account__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.account-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 22px 24px;
	box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}

.account-card__title {
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 14px;
	color: var(--dark);
}

.account-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.account-card__head .account-card__title {
	margin: 0;
}

.account-card__link {
	font-size: 13px;
	font-weight: 600;
	color: var(--green);
	text-decoration: none;
}

.account-card__link:hover {
	color: var(--green-dark);
	text-decoration: underline;
}

.muted {
	color: var(--gray);
}

.req {
	color: #ef4444;
}

.account-userbox {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
}

.account-userbox__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 17px;
	text-transform: uppercase;
	color: #fff;
	background: var(--gradient);
}

.account-userbox__info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.account-userbox__name {
	font-weight: 600;
	font-size: 14px;
	color: var(--dark);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account-userbox__mail {
	font-size: 12px;
	color: var(--gray);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account-nav {
	padding: 10px;
}

.account-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.account-nav li {
	margin: 0;
}

.account-nav a {
	display: block;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}

.account-nav a:hover {
	background: var(--green-soft);
	color: var(--green-dark);
}

.account-nav li.is-active a,
.account-nav a[aria-current="page"] {
	background: var(--gradient);
	color: #fff;
}

.account-notice {
	border-radius: 12px;
	padding: 12px 16px;
	margin: 0;
	font-size: 14px;
}

.account-notice--ok {
	background: var(--green-soft);
	color: #047857;
	border: 1px solid var(--green-border);
}

.account-notice--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.account-greeting__hi {
	font-size: 16px;
	margin: 0 0 6px;
}

.account-greeting p {
	margin: 0;
}

.account-greeting a {
	color: var(--green);
	font-weight: 600;
	text-decoration: none;
}

.account-greeting a:hover {
	text-decoration: underline;
}

.account-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.account-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.account-stat__value {
	font-size: 24px;
	font-weight: 700;
	color: var(--green);
	line-height: 1.2;
	word-break: break-word;
}

.account-stat__label {
	font-size: 13px;
	color: var(--gray);
}

.account-orders {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.account-order {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.account-card .account-orders .account-order {
	border-top: 1px solid var(--line);
	padding-top: 14px;
}

.account-card .account-orders .account-order:first-child {
	border-top: 0;
	padding-top: 0;
}

.account-order__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.account-order__num {
	font-weight: 700;
	font-size: 16px;
	color: var(--dark);
	text-decoration: none;
}

a.account-order__num:hover {
	color: var(--green);
}

.account-order__status {
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--bg-light);
	color: #475569;
}

.account-order__status.status--done {
	background: var(--green-soft);
	color: #047857;
}

.account-order__status.status--processing {
	background: #eff6ff;
	color: #1d4ed8;
}

.account-order__status.status--cancelled {
	background: #fef2f2;
	color: #b91c1c;
}

.account-order__meta {
	display: flex;
	gap: 8px;
	margin-top: 6px;
	font-size: 13px;
	flex-wrap: wrap;
}

.account-order__side {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.account-order__total {
	font-weight: 700;
	font-size: 16px;
	color: var(--green);
	white-space: nowrap;
}

.account-order__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.account-order__btn {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	color: #334155;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}

.account-order__btn:hover {
	border-color: var(--green);
	color: var(--green);
}

.account-orders__pager {
	display: flex;
	gap: 12px;
}

.account-orders__empty {
	text-align: center;
	padding: 40px 24px;
}

.account-orders__empty .btn {
	margin-top: 12px;
}

.view-order__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--dark);
	margin: 0 0 16px;
}

.view-order__back {
	margin: 0;
}

.vo-items {
	display: flex;
	flex-direction: column;
}

.vo-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.vo-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.vo-item__media {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--bg-light);
}

.vo-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vo-item__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.vo-item__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--dark);
}

.vo-item__name a {
	color: inherit;
	text-decoration: none;
}

.vo-item__name a:hover {
	color: var(--green);
}

.vo-item__meta {
	font-size: 12px;
	color: var(--gray);
}

.vo-item__qty {
	flex: 0 0 auto;
	font-size: 14px;
}

.vo-item__sum {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 15px;
	color: var(--green);
	white-space: nowrap;
}

.vo-totals {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vo-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 14px;
	color: #475569;
}

.vo-total--order_total {
	font-size: 16px;
}

.vo-total--order_total .vo-total__label {
	font-weight: 700;
	color: var(--dark);
}

.vo-total--order_total .vo-total__value {
	font-weight: 700;
	color: var(--green);
}

.vo-fields {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vo-field {
	display: flex;
	gap: 16px;
	align-items: baseline;
}

.vo-field dt {
	flex: 0 0 120px;
	margin: 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: -.02em;
	color: var(--gray);
}

.vo-field dd {
	margin: 0;
	font-size: 14px;
	color: var(--dark);
}

.vo-field dd a {
	color: var(--dark);
	text-decoration: none;
}

.vo-field dd a:hover {
	color: var(--green);
}

.account-form .field {
	display: block;
}

.account-form .field + .field,
.account-form .account-form__row + .field,
.account-form .field + .account-form__row {
	margin-top: 14px;
}

.account-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

.account-form .field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.account-form .field__hint {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: var(--gray);
}

.account-form .field--check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.account-form .input-field {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid #dbe5df;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	color: var(--dark);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.account-form .input-field:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}

.account-form__pass {
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px 18px;
	margin: 18px 0 0;
}

.account-form__pass legend {
	font-weight: 700;
	font-size: 14px;
	padding: 0 6px;
}

.account-form__pass .field + .field {
	margin-top: 12px;
}

.account-form__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 22px;
	border: 0;
	border-radius: 12px;
	background: var(--gradient);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease;
}

.btn:hover {
	filter: brightness(1.06);
	color: #fff;
}

.btn--outline {
	background: #fff;
	color: var(--green-dark);
	border: 1px solid var(--green-border);
}

.btn--outline:hover {
	background: var(--green-soft);
	color: var(--green-dark);
	filter: none;
}

.account-auth__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-top: 16px;
}

.account-auth__lost {
	font-size: 13px;
	font-weight: 600;
	color: var(--green);
	text-decoration: none;
}

.account-auth__lost:hover {
	text-decoration: underline;
}

@media (max-width: 920px) {
	.account {
		grid-template-columns: minmax(0, 1fr);
	}

	.account__sidebar {
		position: static;
	}

	.account-order__side {
		width: 100%;
		margin-left: 0;
		justify-content: space-between;
	}
}

@media (max-width: 600px) {
	.account,
	.account-auth {
		padding: 20px 12px 48px;
	}

	.account-card {
		padding: 18px 16px;
	}

	.vo-field {
		flex-direction: column;
		gap: 2px;
	}

	.vo-field dt {
		flex-basis: auto;
	}
}
