/* Modern account sign-in: phone-first, password as a fallback. */
.account-auth-page {
	min-height: 620px;
	padding: 28px 0 72px;
	background: #f5f6fa;
}

.account-auth-page .container-fluid {
	max-width: 1210px;
	margin: 0 auto;
}

.account-auth__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-bottom: 26px;
	color: #a5aec0;
	font-size: 13px;
}

.account-auth__breadcrumbs a {
	color: #8f9aaf;
	text-decoration: none;
}

.account-auth__breadcrumbs a:hover {
	color: var(--theme-primary-color);
	text-decoration: none;
}

.account-auth {
	display: grid;
	grid-template-columns: minmax(0, 1.42fr) minmax(310px, .78fr);
	gap: 24px;
	align-items: start;
}

.account-auth__card,
.account-auth__benefits {
	border: 1px solid #dfe4ed;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 16px 38px rgba(22, 28, 42, .06);
}

.account-auth__card {
	padding: 34px 38px 30px;
}

.account-auth__heading {
	display: flex;
	align-items: center;
	gap: 16px;
}

.account-auth__heading-icon {
	display: grid;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	place-items: center;
	border-radius: 15px;
	background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
	color: var(--theme-primary-color);
}

.account-auth__heading-icon svg {
	width: 27px;
	height: 27px;
}

.account-auth__eyebrow,
.account-auth__benefits-eyebrow {
	margin: 0 0 4px;
	color: var(--theme-primary-color);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.account-auth__heading h1 {
	margin: 0;
	color: #141a29;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
}

.account-auth__lead {
	max-width: 640px;
	margin: 18px 0 25px;
	color: #6f7a90;
	font-size: 15px;
	line-height: 1.55;
}

.account-auth__phone .regsms-inline-container {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.account-auth__phone .regsms-inline-container > #regsms-body > p:first-child {
	display: none;
}

.account-auth__phone .form-group {
	margin-bottom: 14px !important;
}

.account-auth__phone .form-label {
	display: block;
	margin-bottom: 8px;
	color: #272d3b;
	font-size: 14px;
	font-weight: 700;
}

.account-auth__phone #regsms-input-telephone {
	display: block;
	width: 100%;
	height: 56px;
	min-height: 56px;
	margin: 0;
	padding: 0 17px;
	border: 1px solid #d9dfea;
	border-radius: 12px;
	background: #f8f9fc;
	color: #171c2a;
	font-size: 17px;
	line-height: 56px;
	box-shadow: none;
}

.account-auth__phone #regsms-input-telephone:focus {
	border-color: var(--theme-primary-color);
	background: #fff;
	outline: 0;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary-color) 10%, transparent);
}

.account-auth__phone .auth-login-buttons {
	display: grid;
	gap: 10px;
}

.account-auth__phone .auth-btn,
.account-auth__phone #button-login-send,
.account-auth__phone #button-login-telegram {
	display: inline-flex;
	width: 100%;
	height: 54px;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 12px;
	background: var(--theme-primary-color);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
}

.account-auth__phone .auth-btn:hover,
.account-auth__phone .auth-btn:focus {
	background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
	color: #fff;
	text-decoration: none;
}

.account-auth__phone .auth-separator {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 14px;
	color: #a0a9bb;
	font-size: 12px;
}

.account-auth__phone .auth-separator::before,
.account-auth__phone .auth-separator::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e4e8ef;
}

.account-auth__phone .offer {
	margin-top: 17px !important;
	color: #8f99ab !important;
	font-size: 12px !important;
	line-height: 1.45;
	text-align: center;
}

.account-auth__phone .offer a {
	color: var(--theme-primary-color);
	text-decoration: none;
}

.account-auth__phone .offer a:hover {
	text-decoration: none;
}

.account-auth__automatic {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding: 13px 15px;
	border-radius: 11px;
	background: #f2faf4;
	color: #4e6554;
	font-size: 13px;
	line-height: 1.45;
}

.account-auth__automatic svg {
	flex: 0 0 19px;
	width: 19px;
	height: 19px;
	color: #18a84a;
}

.account-auth__fallback-toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	padding: 14px 0 0;
	border: 0;
	border-top: 1px solid #e7eaf0;
	background: transparent;
	color: #4f596c;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
}

.account-auth__fallback-toggle:hover,
.account-auth__fallback-toggle:focus {
	color: var(--theme-primary-color);
	outline: 0;
}

.account-auth__fallback-toggle svg {
	width: 19px;
	height: 19px;
	transition: transform .2s ease;
}

.account-auth__fallback-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.account-auth__fallback[hidden] {
	display: none;
}

.account-auth__fallback {
	padding-top: 20px;
}

.account-auth__fallback-note {
	margin: 0 0 16px;
	color: #8892a6;
	font-size: 13px;
	line-height: 1.45;
}

.account-auth__password-form label,
.account-auth__label-row label {
	display: block;
	margin: 0 0 7px;
	color: #272d3b;
	font-size: 13px;
	font-weight: 700;
}

.account-auth__label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 15px;
}

.account-auth__label-row a {
	color: var(--theme-primary-color);
	font-size: 12px;
	text-decoration: none;
}

.account-auth__field {
	position: relative;
}

.account-auth__field > svg {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 20px;
	height: 20px;
	color: #98a3b6;
	transform: translateY(-50%);
}

.account-auth__field input {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 48px;
	border: 1px solid #d9dfea;
	border-radius: 11px;
	background: #f8f9fc;
	color: #171c2a;
	font-size: 14px;
	box-shadow: none;
}

.account-auth__field input:focus {
	border-color: var(--theme-primary-color);
	background: #fff;
	outline: 0;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary-color) 10%, transparent);
}

.account-auth__password-toggle {
	position: absolute;
	top: 50%;
	right: 9px;
	display: grid;
	width: 34px;
	height: 34px;
	padding: 0;
	place-items: center;
	border: 0;
	background: transparent;
	color: #788397;
	transform: translateY(-50%);
}

.account-auth__password-toggle svg {
	width: 20px;
	height: 20px;
}

.account-auth__password-submit {
	display: block;
	width: 100%;
	height: 50px;
	margin-top: 17px;
	border: 0;
	border-radius: 11px;
	background: #252b37;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.account-auth__password-submit:hover {
	background: #171c25;
}

.account-auth__benefits {
	padding: 31px 29px 27px;
}

.account-auth__benefits h2 {
	margin: 0;
	color: #171c2a;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.2;
}

.account-auth__benefits-lead {
	margin: 10px 0 23px;
	color: #7d879a;
	font-size: 14px;
	line-height: 1.5;
}

.account-auth__benefits-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.account-auth__benefits-list li {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 16px 0;
	border-top: 1px solid #e8ebf1;
}

.account-auth__benefits-list li > span {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
	color: var(--theme-primary-color);
}

.account-auth__benefits-list svg {
	width: 21px;
	height: 21px;
}

.account-auth__benefits-list b,
.account-auth__benefits-list small {
	display: block;
}

.account-auth__benefits-list b {
	margin-bottom: 3px;
	color: #272d3b;
	font-size: 14px;
}

.account-auth__benefits-list small {
	color: #8b95a8;
	font-size: 12px;
	line-height: 1.35;
}

.account-auth__security {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-top: 17px;
	padding: 15px;
	border-radius: 12px;
	background: #f4f7f5;
}

.account-auth__security > svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: #16a34a;
}

.account-auth__security b,
.account-auth__security span {
	display: block;
}

.account-auth__security b {
	margin-bottom: 3px;
	color: #27312b;
	font-size: 13px;
}

.account-auth__security span {
	color: #7c8b81;
	font-size: 11px;
	line-height: 1.4;
}

@media (max-width: 991px) {
	.account-auth {
		grid-template-columns: 1fr;
	}

	.account-auth__benefits {
		order: 2;
	}
}

@media (max-width: 575px) {
	.account-auth-page {
		padding: 20px 0 48px;
	}

	.account-auth__breadcrumbs {
		margin-bottom: 18px;
	}

	.account-auth__card,
	.account-auth__benefits {
		border-radius: 17px;
		box-shadow: none;
	}

	.account-auth__card {
		padding: 24px 19px 22px;
	}

	.account-auth__benefits {
		padding: 25px 20px 22px;
	}

	.account-auth__heading {
		align-items: flex-start;
		gap: 12px;
	}

	.account-auth__heading-icon {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
		border-radius: 13px;
	}

	.account-auth__heading h1 {
		font-size: 27px;
	}

	.account-auth__lead {
		margin-top: 15px;
		font-size: 14px;
	}
}

/* Login page: modal-inspired email and password card */
.account-auth-page {
	min-height: 680px;
	padding: 28px 0 72px;
	background: #f5f6fa;
}

.account-auth-page .container-fluid {
	max-width: 760px;
}

.account-auth {
	display: block;
	max-width: 620px;
	margin: 0 auto;
}

.account-auth__card {
	padding: 39px 44px 32px;
	border-color: #e0e4ec;
	border-radius: 24px;
	box-shadow: 0 18px 48px rgba(20, 26, 41, .08);
}

.account-auth__heading {
	display: block;
}

.account-auth__heading h1 {
	font-size: 35px;
	line-height: 1.15;
}

.account-auth__lead {
	margin: 10px 0 27px;
	font-size: 16px;
	line-height: 1.45;
}

.account-auth__password-form label,
.account-auth__label-row label {
	margin-bottom: 8px;
	font-size: 14px;
}

.account-auth__label-row {
	margin-top: 18px;
}

.account-auth__label-row a {
	font-size: 13px;
}

.account-auth__field input {
	height: 58px;
	padding: 0 50px;
	border-radius: 13px;
	font-size: 16px;
	line-height: normal;
}

.account-auth__field > svg {
	left: 17px;
	width: 21px;
	height: 21px;
}

.account-auth__password-toggle {
	right: 11px;
}

.account-auth__password-submit {
	display: flex;
	height: 58px;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 21px;
	border-radius: 13px;
	background: var(--theme-primary-color);
	font-size: 16px;
	box-shadow: none;
}

.account-auth__password-submit:hover,
.account-auth__password-submit:focus {
	background: var(--theme-primary-color);
	color: #fff;
	outline: 0;
}

.account-auth__password-submit svg {
	width: 21px;
	height: 21px;
}

.account-auth__separator {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 28px 0 18px;
	color: #8f99ad;
	font-size: 13px;
	white-space: nowrap;
}

.account-auth__separator::before,
.account-auth__separator::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #dfe4ed;
}

.account-auth__fallback-toggle {
	position: relative;
	display: grid;
	width: 100%;
	height: 56px;
	grid-template-columns: 38px 1fr 24px;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 0 15px;
	border: 1px solid #dce2ec;
	border-radius: 13px;
	background: #fff;
	color: #171d2c;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.account-auth__fallback-toggle:hover,
.account-auth__fallback-toggle:focus {
	border-color: var(--theme-primary-color);
	background: color-mix(in srgb, var(--theme-primary-color) 3%, white);
	color: #171d2c;
}

.account-auth__fallback-toggle-icon {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
	color: var(--theme-primary-color);
}

.account-auth__fallback-toggle-icon svg {
	width: 20px;
	height: 20px;
}

.account-auth__fallback-toggle .account-auth__fallback-chevron {
	width: 20px;
	height: 20px;
	color: #7d8798;
	transition: transform .2s ease;
}

.account-auth__fallback-toggle[aria-expanded="true"] .account-auth__fallback-chevron {
	transform: rotate(180deg);
}

.account-auth__fallback-toggle[aria-expanded="true"] .account-auth__fallback-toggle-icon svg {
	transform: none;
}

.account-auth__fallback-toggle--email {
	margin-top: 12px;
}

.account-auth__fallback--password {
	padding-top: 22px;
}

.account-auth__fallback--phone {
	padding-top: 22px;
}

.account-auth__fallback--phone[hidden] {
	display: none;
}

.account-auth__social-list {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.account-auth__social-item {
	min-width: 0;
}

.account-auth__social-item > div,
.account-auth__social-item > a,
.account-auth__social-item iframe,
.account-auth__social-item #yandex-auth-container,
.account-auth__social-item .vkid-login-container {
	width: 100% !important;
	max-width: 100% !important;
}

.account-auth__social-item > a.ui-btn {
	width: 100%;
	min-height: 48px;
	border-radius: 12px;
}

.account-forgotten {
	max-width: 580px;
}

.account-forgotten__card {
	padding-bottom: 29px;
}

.account-forgotten__form .account-auth__password-submit {
	margin-top: 22px;
}

.account-forgotten__back {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 16px;
	padding-top: 17px;
	border-top: 1px solid #e4e8ef;
	color: #687386;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.account-forgotten__back:hover,
.account-forgotten__back:focus {
	color: var(--theme-primary-color);
	text-decoration: none;
}

.account-forgotten__back svg {
	width: 19px;
	height: 19px;
}

.account-auth__register {
	margin: 24px 0 0;
	color: #7f899c;
	font-size: 14px;
	text-align: center;
}

.account-auth__register a {
	color: var(--theme-primary-color);
	font-weight: 600;
	text-decoration: none;
}

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

@media (max-width: 575px) {
	.account-auth-page {
		min-height: 0;
		padding: 18px 0 44px;
	}

	.account-auth__card {
		padding: 27px 19px 24px;
		border-radius: 18px;
	}

	.account-auth__heading h1 {
		font-size: 28px;
	}

	.account-auth__lead {
		margin: 9px 0 23px;
		font-size: 14px;
	}

	.account-auth__field input,
	.account-auth__password-submit {
		height: 54px;
	}

	.account-auth__separator {
		margin: 24px 0 16px;
	}

	.account-auth__fallback-toggle {
		height: 54px;
		font-size: 14px;
	}
}

/* Modern account dashboard */
.account-modern {
  min-height: 70vh;
  padding: 26px 0 72px;
  color: #161b2b;
  background: #f6f7fb;
}

.account-modern *,
.account-modern *::before,
.account-modern *::after {
  box-sizing: border-box;
}

.account-modern svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/*
 * Product cards use the theme sprite as filled shapes. The generic account
 * icon treatment above must not turn cart, compare and counter arrows into
 * stroked icons, otherwise they no longer match catalog cards.
 */
.account-modern .products__item svg.icon-compare,
.account-modern .products__item svg.icon-compare-active,
.account-modern .products__item svg.icon-cart,
.account-modern .products__item svg.icon-decrease,
.account-modern .products__item svg.icon-increase,
.account-modern .products__item svg.icon-view {
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.account-modern .products__item svg.icon-favorites {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-modern__breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
  color: #a5aec1;
  font-size: 13px;
}

.account-modern__breadcrumbs a,
.account-modern__breadcrumbs span {
  color: inherit;
  text-decoration: none;
}

.account-modern__breadcrumbs a:hover {
  color: var(--theme-primary-color);
  text-decoration: none;
}

.account-modern__breadcrumbs svg {
  width: 13px;
  height: 13px;
}

.account-modern__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.account-modern__heading h1 {
  margin: 0 0 5px;
  color: #161b2b;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.12;
}

.account-modern__heading p {
  margin: 0;
  color: #7c879d;
  font-size: 15px;
}

.account-profile,
.account-panel,
.account-services,
.account-stat {
  border: 1px solid #e2e6ee;
  border-radius: 16px;
  background: #fff;
}

.account-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 146px;
  padding: 28px 30px;
  overflow: hidden;
  position: relative;
}

.account-profile::after {
  position: absolute;
  right: -62px;
  top: -110px;
  width: 290px;
  height: 290px;
  border: 52px solid color-mix(in srgb, var(--theme-primary-color) 5.5%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.account-profile__identity,
.account-profile__actions {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.account-profile__identity {
  gap: 20px;
  min-width: 0;
}

.account-profile__avatar {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--theme-primary-color), color-mix(in srgb, var(--theme-primary-color) 85%, black));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-primary-color) 18%, transparent);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .03em;
}

.account-profile__person {
  min-width: 0;
}

.account-profile__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--theme-primary-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-profile__person h2 {
  margin: 0 0 7px;
  overflow: hidden;
  color: #161b2b;
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: #7c879d;
  font-size: 14px;
}

.account-profile__contacts span {
  position: relative;
}

.account-profile__contacts span + span::before {
  position: absolute;
  left: -11px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c6ccda;
  content: "";
}

.account-profile__actions {
  flex: 0 0 auto;
  gap: 18px;
}

.account-modern__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.account-modern__button svg {
  width: 19px;
  height: 19px;
}

.account-modern__button--light {
  border-color: #dce1ea;
  color: #252b39;
  background: #fff;
}

.account-modern__button--light:hover {
  border-color: var(--theme-primary-color);
  color: var(--theme-primary-color);
}

.account-modern__button--dark {
  width: 100%;
  margin-top: auto;
  color: #fff;
  background: #171b27;
}

.account-modern__button--dark:hover {
  color: #fff;
  background: var(--theme-primary-color);
}

.account-modern__logout {
  color: #7c879d;
  font-size: 14px;
  text-decoration: none !important;
}

.account-modern__logout:hover {
  color: var(--theme-primary-color);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.account-stat {
  display: flex;
  min-width: 0;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  padding: 20px;
  color: #161b2b;
  text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease;
}

.account-stat:hover {
  border-color: color-mix(in srgb, var(--theme-primary-color) 43%, white);
  color: #161b2b;
  transform: translateY(-2px);
}

.account-stat__icon,
.account-service > span,
.account-help__icon,
.account-order__badge,
.account-orders__empty > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
}

.account-stat__icon {
  width: 48px;
  height: 48px;
}

.account-stat__icon svg {
  width: 24px;
  height: 24px;
}

.account-stat__content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.account-stat__content strong {
  color: #161b2b;
  font-size: 24px;
  line-height: 1.15;
}

.account-stat__content small {
  margin-top: 4px;
  overflow: hidden;
  color: #7c879d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-stat__arrow {
  width: 19px;
  height: 19px;
  color: #aab1c0;
}

.account-stat--accent {
  border-color: color-mix(in srgb, var(--theme-primary-color) 27%, white);
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary-color) 4%, white), #fff);
}

.account-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: stretch;
}

.account-panel {
  min-width: 0;
  padding: 26px;
}

.account-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.account-panel__head h2,
.account-help h2,
.account-services__head h2 {
  margin: 0;
  color: #161b2b;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.account-panel__head p,
.account-services__head p {
  margin: 5px 0 0;
  color: #8c95a8;
  font-size: 13px;
}

.account-panel__head > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--theme-primary-color);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.account-panel__head > a svg {
  width: 17px;
  height: 17px;
}

.account-orders__list {
  border-top: 1px solid #edf0f5;
}

.account-order {
  display: grid;
  grid-template-columns: 42px minmax(150px, 1fr) auto auto 18px;
  align-items: center;
  gap: 14px;
  padding: 17px 4px;
  border-bottom: 1px solid #edf0f5;
  color: #161b2b;
  text-decoration: none !important;
}

.account-order:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.account-order:hover {
  color: #161b2b;
}

.account-order:hover .account-order__arrow {
  color: var(--theme-primary-color);
  transform: translateX(2px);
}

.account-order__badge {
  width: 42px;
  height: 42px;
}

.account-order__badge svg {
  width: 21px;
  height: 21px;
}

.account-order__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.account-order__main strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-order__main small {
  margin-top: 3px;
  color: #9098a9;
  font-size: 12px;
}

.account-order__status {
  padding: 6px 9px;
  border-radius: 8px;
  color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.account-order__status--complete {
  color: #168446;
  background: #eaf8ef;
}

.account-order__status--cancelled {
  color: #bd3d45;
  background: #fff0f1;
}

.account-order__total {
  font-size: 14px;
  white-space: nowrap;
}

.account-order__arrow {
  width: 18px;
  height: 18px;
  color: #aab1c0;
  transition: color .2s ease, transform .2s ease;
}

.account-orders__empty {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border: 1px dashed #dce1ea;
  border-radius: 12px;
}

.account-orders__empty > span {
  width: 48px;
  height: 48px;
}

.account-orders__empty svg {
  width: 23px;
  height: 23px;
}

.account-orders__empty strong {
  display: block;
  font-size: 15px;
}

.account-orders__empty p {
  margin: 4px 0 0;
  color: #8992a5;
  font-size: 13px;
}

.account-help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--theme-primary-color) 4%, white));
}

.account-help__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
}

.account-help__icon svg {
  width: 25px;
  height: 25px;
}

.account-help p {
  margin: 8px 0 24px;
  color: #7c879d;
  font-size: 14px;
  line-height: 1.55;
}

.account-services {
  margin-top: 18px;
  padding: 26px;
}

.account-services__head {
  margin-bottom: 19px;
}

.account-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-service {
  display: grid;
  min-width: 0;
  min-height: 92px;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid #e5e8ef;
  border-radius: 12px;
  color: #161b2b;
  background: #fff;
  text-decoration: none !important;
  transition: border-color .2s ease, background-color .2s ease;
}

.account-service:hover {
  border-color: color-mix(in srgb, var(--theme-primary-color) 42%, white);
  color: #161b2b;
  background: color-mix(in srgb, var(--theme-primary-color) 3%, white);
}

.account-service > span {
  width: 44px;
  height: 44px;
}

.account-service > span svg {
  width: 22px;
  height: 22px;
}

.account-service > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.account-service strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-service small {
  margin-top: 4px;
  overflow: hidden;
  color: #8c95a8;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-service__arrow {
  width: 18px;
  height: 18px;
  color: #aab1c0;
}

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

  .account-dashboard {
    grid-template-columns: 1fr;
  }

  .account-help {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 16px;
  }

  .account-help__icon {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .account-help p {
    margin: 4px 0 0;
  }

  .account-help .account-modern__button {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: auto;
    margin: 0;
  }

  .account-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .account-modern {
    padding: 18px 0 48px;
  }

  .account-modern__heading {
    margin-bottom: 18px;
  }

  .account-modern__heading h1 {
    font-size: 28px;
  }

  .account-profile {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .account-profile__actions {
    width: 100%;
    justify-content: space-between;
  }

  .account-modern__button--light {
    flex: 1;
  }

  .account-order {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 10px;
  }

  .account-order__status {
    grid-column: 2;
    justify-self: start;
  }

  .account-order__total {
    grid-column: 2;
  }

  .account-order__arrow {
    grid-column: 3;
    grid-row: 1 / span 3;
  }

  .account-help {
    display: flex;
    align-items: flex-start;
  }

  .account-help .account-modern__button {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .account-modern__heading p {
    font-size: 13px;
  }

  .account-profile__identity {
    align-items: flex-start;
  }

  .account-profile__avatar {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    font-size: 18px;
  }

  .account-profile__person h2 {
    white-space: normal;
  }

  .account-profile__contacts {
    flex-direction: column;
    gap: 3px;
  }

  .account-profile__contacts span + span::before {
    display: none;
  }

  .account-stats {
    gap: 10px;
  }

  .account-stat {
    min-height: 96px;
    gap: 10px;
    padding: 14px;
  }

  .account-stat__icon {
    width: 40px;
    height: 40px;
  }

  .account-stat__icon svg {
    width: 20px;
    height: 20px;
  }

  .account-stat__content strong {
    font-size: 21px;
  }

  .account-stat__arrow {
    display: none;
  }

  .account-panel,
  .account-services {
    padding: 20px;
  }

  .account-panel__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .account-services__grid {
    grid-template-columns: 1fr;
  }
}

/* Modern returns */
.returns-modern {
  min-height: 70vh;
  padding: 26px 0 64px;
  background: #f6f7fb;
  color: #161b2b;
}

.returns-modern > .container-fluid {
  max-width: 1440px;
}

.returns-modern a:hover,
.returns-modern a:focus {
  text-decoration: none;
}

.returns-modern__heading,
.return-detail__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 14px 0 26px;
}

.returns-modern__heading h1,
.return-detail__heading h1 {
  margin: 0;
  color: #161b2b;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.12;
}

.returns-modern__heading p,
.return-detail__heading p {
  margin: 8px 0 0;
  color: #7c879d;
  font-size: 15px;
  line-height: 1.5;
}

.returns-modern__count,
.return-card__status,
.return-detail-card__quantity {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.returns-modern__panel,
.return-detail-card,
.return-summary,
.return-contact,
.return-form-card {
  border: 1px solid #e2e6ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 31, 49, .045);
}

.returns-modern__panel {
  overflow: hidden;
}

.returns-modern__panel-head,
.return-detail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px;
  border-bottom: 1px solid #e8ebf1;
}

.returns-modern__panel-head h2,
.return-detail-card__head h2,
.return-summary h2,
.return-contact h2,
.return-form-card__head h2 {
  margin: 0;
  color: #161b2b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.returns-modern__panel-head p,
.return-detail-card__head p,
.return-form-card__head p {
  margin: 5px 0 0;
  color: #8a94a8;
  font-size: 13px;
  line-height: 1.45;
}

.returns-modern__list {
  padding: 0 26px;
}

.return-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid #e8ebf1;
}

.return-card:last-child {
  border-bottom: 0;
}

.return-card__main,
.return-card__identity,
.return-card__title {
  min-width: 0;
}

.return-card__main,
.return-detail__heading-main,
.return-product,
.return-form-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.return-card__icon,
.return-detail__heading-icon,
.return-form-card__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  color: var(--theme-primary-color);
}

.return-card__icon svg,
.return-detail__heading-icon svg,
.return-form-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.return-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.return-card__title h2 {
  margin: 0;
  color: #161b2b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.return-card__identity > p {
  margin: 0;
  overflow: hidden;
  color: #616c80;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.return-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 24px;
}

.return-card__meta div {
  display: grid;
  gap: 5px;
}

.return-card__meta span,
.return-detail-field span,
.return-summary dt,
.return-detail-comment > span {
  color: #8a94a8;
  font-size: 12px;
}

.return-card__meta strong,
.return-detail-field strong {
  color: #293143;
  font-size: 14px;
  font-weight: 600;
}

.return-card__details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--theme-primary-color);
  border-radius: 11px;
  color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
}

.return-card__details:hover {
  background: var(--theme-primary-color);
  color: #fff;
}

.return-card__details svg,
.account-modern__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.returns-modern__pagination {
  margin-top: 24px;
}

.returns-modern__pagination .pagination {
  justify-content: center;
}

.returns-modern-empty {
  display: grid;
  grid-template-columns: 220px minmax(0, 470px);
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 360px;
  padding: 44px;
  border: 1px solid #e2e6ee;
  border-radius: 18px;
  background: #fff;
}

.returns-modern-empty__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-primary-color) 6%, white);
  color: var(--theme-primary-color);
}

.returns-modern-empty__visual svg {
  width: 126px;
  height: 126px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.returns-modern-empty h2 {
  margin: 0 0 10px;
  color: #161b2b;
  font-size: 28px;
  font-weight: 700;
}

.returns-modern-empty p {
  margin: 0 0 22px;
  color: #7c879d;
  font-size: 15px;
}

.returns-modern .account-modern__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #dfe3eb;
  border-radius: 11px;
  background: #fff;
  color: #252d3e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.returns-modern .account-modern__button:hover {
  border-color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
}

.returns-modern .account-modern__button--primary {
  border-color: var(--theme-primary-color);
  background: var(--theme-primary-color);
  color: #fff;
}

.returns-modern .account-modern__button--primary:hover {
  border-color: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
  color: #fff;
}

/* Return details */
.return-detail__heading {
  align-items: center;
}

.return-detail__heading-icon {
  width: 54px;
  height: 54px;
}

.return-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 22px;
}

.return-detail__content,
.return-detail__sidebar {
  display: grid;
  gap: 20px;
}

.return-detail__sidebar {
  position: sticky;
  top: 110px;
}

.return-detail-card {
  overflow: hidden;
}

.return-product {
  padding: 24px 26px;
}

.return-product__visual {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 14px;
  background: #f5f6f9;
  color: #a9b2c2;
}

.return-product__visual svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.return-product h3 {
  margin: 0 0 7px;
  color: #1e2535;
  font-size: 17px;
  font-weight: 650;
}

.return-product p {
  margin: 0;
  color: #8a94a8;
  font-size: 13px;
}

.return-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 26px;
}

.return-detail-field {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 15px;
  border-radius: 12px;
  background: #f7f8fb;
}

.return-detail-comment {
  margin: 0 26px 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--theme-primary-color);
  border-radius: 4px 12px 12px 4px;
  background: color-mix(in srgb, var(--theme-primary-color) 6%, white);
}

.return-detail-comment p {
  margin: 7px 0 0;
  color: #4e586c;
  font-size: 14px;
  line-height: 1.55;
}

.return-timeline__list {
  padding: 10px 26px 24px;
}

.return-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
}

.return-timeline__item:not(:last-child)::before {
  position: absolute;
  top: 30px;
  bottom: -14px;
  left: 6px;
  width: 2px;
  background: #e5e8ef;
  content: "";
}

.return-timeline__dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--theme-primary-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-primary-color) 25%, white);
}

.return-timeline__body > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.return-timeline__body strong {
  color: #293143;
  font-size: 14px;
}

.return-timeline__body time {
  color: #929caf;
  font-size: 12px;
}

.return-timeline__body p {
  margin: 7px 0 0;
  color: #687287;
  font-size: 13px;
  line-height: 1.5;
}

.return-detail__empty-history {
  margin: 0;
  padding: 24px 26px;
  color: #8a94a8;
}

.return-summary,
.return-contact {
  padding: 22px;
}

.return-summary dl {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.return-summary dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eceef3;
}

.return-summary dl > div:last-child {
  border-bottom: 0;
}

.return-summary dt,
.return-summary dd {
  margin: 0;
}

.return-summary dd {
  color: #2b3345;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.return-contact {
  display: grid;
  gap: 8px;
}

.return-contact h2 {
  margin-bottom: 10px;
}

.return-contact strong {
  color: #293143;
  font-size: 14px;
}

.return-contact a {
  color: #687287;
  font-size: 13px;
}

.return-contact a:hover {
  color: var(--theme-primary-color);
}

/* Return form */
.returns-modern__heading--form {
  max-width: 980px;
}

.return-form {
  display: grid;
  gap: 20px;
  max-width: 980px;
}

.return-form-card {
  padding: 26px;
}

.return-form-card__head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8ebf1;
}

.return-form-card__icon {
  width: 48px;
  height: 48px;
}

.return-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.return-form-field {
  min-width: 0;
}

.return-form-field--wide {
  grid-column: 1 / -1;
}

.return-form .ui-label {
  display: block;
  margin: 0 0 8px;
  color: #30384a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.return-form .ui-input,
.return-form .ui-textarea {
  width: 100%;
  border: 1px solid #dce1ea;
  border-radius: 11px;
  background: #fff;
  color: #202738;
  font-size: 14px;
  box-shadow: none;
}

.return-form .ui-input {
  height: 52px;
  padding: 0 15px;
  line-height: 50px;
}

.return-form .ui-textarea {
  min-height: 130px;
  padding: 14px 15px;
  line-height: 1.5;
  resize: vertical;
}

.return-form .ui-input:focus,
.return-form .ui-textarea:focus {
  border-color: var(--theme-primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary-color) 8%, transparent);
}

.return-form .is-error .ui-input,
.return-form .is-error .ui-textarea,
.return-form-options.is-error {
  border-color: #ef5350;
}

.return-form .ui-error {
  display: block;
  margin-top: 6px;
  color: #d83c3a;
  font-size: 12px;
}

.return-form-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.return-form-options--compact {
  display: flex;
  flex-wrap: wrap;
}

.return-form-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #e0e4ec;
  border-radius: 10px;
  color: #343d50;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.return-form-option:hover {
  border-color: var(--theme-primary-color);
}

.return-form-option:has(input:checked) {
  border-color: var(--theme-primary-color);
  background: color-mix(in srgb, var(--theme-primary-color) 5%, white);
}

.return-form-option input,
.return-form-agree > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.return-form-option__control {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c7ceda;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

.return-form-option input:checked + .return-form-option__control {
  border-color: var(--theme-primary-color);
  background: var(--theme-primary-color);
}

.return-form-agree {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 17px 19px;
  border: 1px solid #e2e6ee;
  border-radius: 13px;
  background: #fff;
  color: #4b5569;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.return-form-agree__control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid #c9d0dc;
  border-radius: 5px;
  color: transparent;
}

.return-form-agree__control svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.return-form-agree > input:checked + .return-form-agree__control {
  border-color: var(--theme-primary-color);
  background: var(--theme-primary-color);
  color: #fff;
}

.return-form-agree a {
  color: var(--theme-primary-color);
}

.return-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.return-form-actions .account-modern__button--primary {
  min-width: 230px;
}

@media (max-width: 1199px) {
  .return-card {
    grid-template-columns: minmax(250px, 1fr) minmax(220px, .8fr) auto;
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .return-card {
    grid-template-columns: 1fr auto;
  }

  .return-card__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-left: 68px;
  }

  .return-card__details {
    grid-column: 2;
    grid-row: 1;
  }

  .return-detail__layout {
    grid-template-columns: 1fr;
  }

  .return-detail__sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .returns-modern {
    padding-top: 18px;
  }

  .returns-modern__heading,
  .return-detail__heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .returns-modern__panel-head,
  .return-detail-card__head,
  .return-form-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .returns-modern__list {
    padding: 0 18px;
  }

  .return-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .return-card__meta {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
  }

  .return-card__details {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .returns-modern-empty {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
    text-align: center;
  }

  .returns-modern-empty__visual {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .return-detail-grid,
  .return-form-grid {
    grid-template-columns: 1fr;
  }

  .return-detail-grid {
    padding-right: 18px;
    padding-left: 18px;
  }

  .return-detail-comment {
    margin-right: 18px;
    margin-left: 18px;
  }

  .return-detail__sidebar {
    grid-template-columns: 1fr;
  }

  .return-form-field--wide {
    grid-column: auto;
  }

  .return-form-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .returns-modern__heading h1,
  .return-detail__heading h1 {
    font-size: 27px;
  }

  .return-card__title {
    align-items: flex-start;
    flex-direction: column;
  }

  .return-card__meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .return-detail__heading-main {
    align-items: flex-start;
  }

  .return-product {
    align-items: flex-start;
    padding: 20px 18px;
  }

  .return-timeline__list {
    padding-right: 18px;
    padding-left: 18px;
  }

  .return-timeline__body > div {
    flex-direction: column;
    gap: 4px;
  }

  .return-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .return-form-actions .account-modern__button {
    width: 100%;
  }
}

/* Modern account profile editor */
.account-edit-modern {
  min-height: 640px;
  padding: 28px 0 72px;
  background: #f6f7fb;
  color: #151b2a;
}

.account-edit-modern *,
.account-edit-modern *::before,
.account-edit-modern *::after {
  box-sizing: border-box;
}

.account-edit-modern .account-modern__breadcrumbs {
  margin: 0 0 18px;
}

.account-edit-modern__heading {
  margin: 0 0 28px;
}

.account-edit-modern__heading h1 {
  margin: 0;
  color: #10182b;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
}

.account-edit-modern__heading p {
  max-width: 720px;
  margin: 9px 0 0;
  color: #7f899f;
  font-size: 16px;
  line-height: 1.5;
}

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

.account-edit-modern__card,
.account-edit-modern__guide {
  border: 1px solid #e0e5ee;
  border-radius: 20px;
  background: #fff;
}

.account-edit-modern__card {
  min-width: 0;
  padding: 30px;
}

.account-edit-modern .ui-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-edit-modern__section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
}

.account-edit-modern__section-head--small {
  margin-bottom: 22px;
}

.account-edit-modern__section-icon {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  color: var(--theme-primary-color);
}

.account-edit-modern__section-icon svg {
  width: 25px;
  height: 25px;
}

.account-edit-modern__section-head h2 {
  margin: 0;
  color: #151b2a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.account-edit-modern__section-head p {
  margin: 4px 0 0;
  color: #8a94a9;
  font-size: 14px;
  line-height: 1.45;
}

.account-edit-modern__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 22px;
}

.account-edit-modern__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.account-edit-modern__field,
.account-edit-modern__fields .form-group {
  min-width: 0;
  margin: 0;
}

.account-edit-modern .ui-label {
  display: block;
  margin: 0 0 9px;
  color: #222a3a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.account-edit-modern .ui-label.required::after {
  margin-left: 3px;
  color: var(--theme-primary-color);
}

.account-edit-modern .ui-field {
  position: relative;
}

.account-edit-modern .ui-input,
.account-edit-modern .ui-textarea,
.account-edit-modern select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #dce2ec;
  border-radius: 12px;
  outline: none;
  background: #fafbfc;
  box-shadow: none;
  color: #202736;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.account-edit-modern select {
  padding-right: 42px;
}

.account-edit-modern .ui-textarea {
  min-height: 116px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.account-edit-modern .ui-input:hover,
.account-edit-modern .ui-textarea:hover,
.account-edit-modern select:hover {
  border-color: #c9d0dc;
}

.account-edit-modern .ui-input:focus,
.account-edit-modern .ui-textarea:focus,
.account-edit-modern select:focus {
  border-color: var(--theme-primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary-color) 9%, transparent);
}

.account-edit-modern .ui-field.is-error .ui-input,
.account-edit-modern .ui-field.is-error .ui-textarea,
.account-edit-modern .ui-field.is-error select {
  border-color: #ef5350;
}

.account-edit-modern .ui-error {
  display: block;
  margin: 7px 0 0;
  color: #e64545;
  font-size: 13px;
  line-height: 1.35;
}

.account-edit-modern__additional {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #e7eaf0;
}

.account-edit-modern__fields--additional .ui-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  min-height: 54px;
  align-items: center;
  padding: 10px 0;
}

.account-edit-modern__fields--additional .ui-btn--file {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 11px;
}

.account-edit-modern__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e7eaf0;
}

.account-edit-modern__button,
.account-edit-modern__button:hover,
.account-edit-modern__button:focus {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.account-edit-modern__button svg {
  width: 19px;
  height: 19px;
}

.account-edit-modern__button--secondary,
.account-edit-modern__button--secondary:hover,
.account-edit-modern__button--secondary:focus {
  border-color: #dce2ec;
  background: #fff;
  color: #273043;
}

.account-edit-modern__button--secondary:hover {
  border-color: #bbc4d2;
}

.account-edit-modern__button--primary,
.account-edit-modern__button--primary:hover,
.account-edit-modern__button--primary:focus {
  border-color: var(--theme-primary-color);
  background: var(--theme-primary-color);
  color: #fff;
}

.account-edit-modern__button--primary:hover {
  filter: brightness(.96);
}

.account-edit-modern__aside {
  min-width: 0;
}

.account-edit-modern__guide {
  position: sticky;
  top: 104px;
  padding: 28px;
}

.account-edit-modern__guide-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--theme-primary-color) 9%, white);
  color: var(--theme-primary-color);
}

.account-edit-modern__guide-icon svg {
  width: 29px;
  height: 29px;
}

.account-edit-modern__guide h2 {
  margin: 0;
  color: #151b2a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.account-edit-modern__guide > p {
  margin: 8px 0 24px;
  color: #7f899f;
  font-size: 14px;
  line-height: 1.5;
}

.account-edit-modern__guide ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-edit-modern__guide li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid #e8ebf1;
}

.account-edit-modern__guide li > span {
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #f6f7fa;
  color: #273043;
}

.account-edit-modern__guide li svg {
  width: 20px;
  height: 20px;
}

.account-edit-modern__guide li div {
  min-width: 0;
}

.account-edit-modern__guide strong,
.account-edit-modern__guide small {
  display: block;
}

.account-edit-modern__guide strong {
  margin: 1px 0 4px;
  color: #222a3a;
  font-size: 14px;
  line-height: 1.35;
}

.account-edit-modern__guide small {
  color: #8a94a9;
  font-size: 12px;
  line-height: 1.45;
}

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

  .account-edit-modern__guide {
    position: static;
  }
}

@media (max-width: 767px) {
  .account-edit-modern {
    padding: 20px 0 48px;
  }

  .account-edit-modern__heading {
    margin-bottom: 22px;
  }

  .account-edit-modern__heading h1 {
    font-size: 30px;
  }

  .account-edit-modern__heading p {
    font-size: 14px;
  }

  .account-edit-modern__card,
  .account-edit-modern__guide {
    padding: 20px;
    border-radius: 16px;
  }

  .account-edit-modern__fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .account-edit-modern__section-head {
    align-items: flex-start;
  }

  .account-edit-modern__section-head h2,
  .account-edit-modern__guide h2 {
    font-size: 19px;
  }

  .account-edit-modern__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .account-edit-modern__button {
    width: 100%;
  }
}

