/**
 * Mishtam — My Account page
 */

/* ===== Hero ===== */
.mishtam-theme .ms-account-hero {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: var(--space-6) 0 var(--space-6);
	overflow: hidden;
}

.mishtam-theme .ms-account-hero::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background-image:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.96) 0%,
			rgba(255, 255, 255, 0.92) 35%,
			rgba(255, 255, 255, 0.75) 60%,
			rgba(255, 255, 255, 0.35) 85%,
			rgba(255, 255, 255, 0.15) 100%
		),
		url("../images/account-hero-bg.png");
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
	border-bottom: 1px solid var(--ms-border-light);
	z-index: 0;
	pointer-events: none;
}

.mishtam-theme .ms-account-hero__inner {
	position: relative;
	z-index: 1;
}

.mishtam-theme .ms-account-hero__crumbs {
	font-size: 13px;
	font-weight: 600;
	color: #401020 !important;
	margin: 0 0 var(--space-4);
	line-height: 1.5;
}

.mishtam-theme .ms-account-hero__crumbs a {
	color: #800020 !important;
	font-weight: 600;
	text-decoration: none;
	transition: color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-account-hero__crumbs a:hover {
	color: var(--ms-primary) !important;
}

.mishtam-theme .ms-account-hero__crumb-sep {
	margin: 0 0.35em;
	opacity: 0.75;
}

.mishtam-theme .ms-account-hero__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
}

.mishtam-theme .ms-account-hero__titles {
	max-width: 40rem;
}

.mishtam-theme .ms-account-hero__title {
	margin: 0;
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
	font-weight: 800;
	letter-spacing: var(--ms-letter-tight);
	color: #5c0017 !important;
	line-height: 1.15;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mishtam-theme .ms-account-hero__intro {
	margin: var(--space-2) 0 0;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.55;
	color: #2b121e !important;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mishtam-theme .ms-account-hero__actions {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.mishtam-theme .ms-account-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.65rem 1.2rem;
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-primary);
	text-decoration: none;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: var(--ms-radius-pill);
	box-shadow: 0 2px 14px rgba(31, 31, 31, 0.1);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease), border-color var(--ms-duration) var(--ms-ease), box-shadow var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-account-hero__cta:hover {
	background: var(--ms-primary);
	color: #fff;
	border-color: var(--ms-primary);
	box-shadow: 0 4px 18px rgba(227, 28, 121, 0.28);
}

.mishtam-theme .ms-account-hero__logout {
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-text-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-account-hero__logout:hover {
	color: var(--ms-primary);
}

/* Hide the redundant Astra page title — the hero provides the heading. */
.mishtam-theme.ms-account-page .entry-header,
.mishtam-theme.ms-account-page .ast-title-bar,
.mishtam-theme.ms-account-page > .entry-title,
.mishtam-theme.ms-account-page .entry-title {
	display: none !important;
}

/* ===== Content wrapper ===== */
.mishtam-theme.woocommerce-account .entry-content,
.mishtam-theme.woocommerce-account .woocommerce {
	margin: 0;
}

.mishtam-theme.ms-account-page .woocommerce-account-content-wrap,
.mishtam-theme.ms-account-page .woocommerce {
	max-width: var(--ms-container-wide);
	margin-inline: auto;
	padding-left: var(--ms-container-x);
	padding-right: var(--ms-container-x);
	box-sizing: border-box;
}

.mishtam-theme.ms-account-page .woocommerce {
	padding-top: var(--space-7);
	padding-bottom: var(--space-8);
}

/* WooCommerce clears floats via ::before/::after — neutralise for grid. */
.mishtam-theme.ms-account-page .woocommerce::before,
.mishtam-theme.ms-account-page .woocommerce::after {
	content: none;
}

/* ===== Dashboard layout (logged in) ===== */
.mishtam-theme.ms-account-page--dashboard .woocommerce {
	display: grid !important;
	grid-template-columns: minmax(220px, 264px) minmax(0, 1fr);
	gap: var(--space-5);
	align-items: start;
}

/* Astra/WC legacy layout sets nav to float + 30% width — inside our grid that
   shrinks the sidebar to ~79px and stacks menu text letter-by-letter. */
.mishtam-theme.ms-account-page--dashboard .woocommerce-MyAccount-navigation,
.mishtam-theme.ms-account-page--dashboard .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
	clear: none !important;
}

.mishtam-theme.ms-account-page--dashboard .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

.mishtam-theme.ms-account-page--dashboard .woocommerce-MyAccount-navigation a {
	white-space: normal;
}

/* ===== Navigation ===== */
.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation {
	width: 100%;
	background: var(--ms-bg);
	border: 0;
	border-radius: var(--ms-radius-lg);
	box-shadow: 0 2px 16px rgba(31, 31, 31, 0.06);
	padding: var(--space-2);
	position: sticky;
	top: var(--ms-account-sticky-top, var(--ms-header-height));
	max-height: calc(100vh - var(--ms-account-sticky-top, var(--ms-header-height)) - var(--space-4));
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* Astra stacks a bordered box on every link inside our card — strip it. */
.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation li,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation-link {
	margin: 0 !important;
	border: 0 !important;
	background: transparent;
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.65rem 0.85rem;
	font-size: var(--ms-small);
	font-weight: 600;
	color: var(--ms-text);
	text-decoration: none;
	border-radius: var(--ms-radius-md);
	transition: background var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation a:hover {
	background: var(--ms-bg-soft);
	color: var(--ms-primary);
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation .is-active a {
	background: var(--ms-primary);
	color: #fff;
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation .is-active a:hover {
	background: var(--ms-primary-hover);
	color: #fff;
}

/* ===== Content ===== */
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content {
	background: var(--ms-bg);
	border: 0;
	border-radius: var(--ms-radius-lg);
	box-shadow: 0 2px 16px rgba(31, 31, 31, 0.06);
	padding: var(--space-6);
	min-width: 0;
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-content p {
	line-height: 1.6;
	color: var(--ms-text-muted);
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-content a:not(.button):not(.ms-dashboard-link):not(.ms-dashboard-welcome__logout):not(.edit):not(.ms-wishlist__empty-cta) {
	color: var(--ms-primary);
	font-weight: 600;
	text-decoration: none;
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-content a:not(.button):not(.ms-dashboard-link):not(.ms-dashboard-welcome__logout):not(.edit):not(.ms-wishlist__empty-cta):hover {
	text-decoration: underline;
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-content h2,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content h3 {
	margin-top: 0;
	color: var(--ms-text);
	letter-spacing: var(--ms-letter-tight);
}

/* ===== Orders table ===== */
.mishtam-theme .woocommerce-orders-table,
.mishtam-theme .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	overflow: hidden;
	margin: 0;
}

.mishtam-theme .woocommerce-orders-table th,
.mishtam-theme .woocommerce-MyAccount-content table.shop_table th {
	background: var(--ms-bg-soft);
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--ms-letter-wide);
	color: var(--ms-text-muted);
	padding: var(--space-3) var(--space-4);
	border: none;
}

.mishtam-theme .woocommerce-orders-table td,
.mishtam-theme .woocommerce-MyAccount-content table.shop_table td,
.mishtam-theme .woocommerce-orders-table th.woocommerce-orders-table__cell-order-number {
	padding: var(--space-4);
	font-size: var(--ms-small);
	color: var(--ms-text);
	border: none;
	border-top: 1px solid var(--ms-border-light);
	vertical-align: middle !important;
}

.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions,
.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__header-order-actions {
	text-align: left;
}

.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
	line-height: 1;
	padding-top: var(--space-3);
	padding-bottom: var(--space-3);
	white-space: nowrap;
}

.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button,
.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .woocommerce-button,
.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	float: none;
	min-height: 36px !important;
	height: 36px;
	padding: 0 18px !important;
	margin: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: #fff !important;
	background: var(--ms-gradient-primary) !important;
	border: none !important;
	border-radius: var(--ms-radius-pill) !important;
	box-shadow: 0 2px 8px var(--ms-primary-glow) !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
	font-weight: 700;
	color: var(--ms-text);
	text-decoration: none;
}

.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover {
	color: var(--ms-primary);
}

.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
	font-weight: 600;
}

.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button:hover,
.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .woocommerce-button:hover,
.mishtam-theme .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button:hover {
	color: #fff !important;
	background: var(--ms-primary-hover) !important;
	filter: brightness(0.98);
	text-decoration: none !important;
}

.mishtam-theme .woocommerce-Pagination .woocommerce-button,
.mishtam-theme .woocommerce-Pagination .woocommerce-Button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 18px !important;
	margin: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: var(--ms-primary) !important;
	background: var(--ms-bg) !important;
	border: 1px solid rgba(227, 28, 121, 0.2) !important;
	border-radius: var(--ms-radius-pill) !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

.mishtam-theme .woocommerce-Pagination .woocommerce-button:hover,
.mishtam-theme .woocommerce-Pagination .woocommerce-Button:hover {
	color: var(--ms-primary) !important;
	background: var(--ms-primary-light) !important;
	text-decoration: none !important;
}

.mishtam-theme .woocommerce-Pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-5);
}

/* ===== Address cards ===== */
.mishtam-theme.ms-account-page .ms-addresses-intro {
	margin: 0 0 var(--space-4);
}

.mishtam-theme.ms-account-page .ms-addresses-intro__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ms-text-muted);
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-content > p:not(.ms-addresses-intro__text) {
	margin: 0 0 var(--space-4);
	font-size: 14px;
	color: var(--ms-text-muted);
}

.mishtam-theme.ms-account-page .woocommerce-Addresses,
.mishtam-theme.ms-account-page .ms-addresses-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
	align-items: stretch;
	margin: 0;
}

.mishtam-theme.ms-account-page .woocommerce-Addresses::before,
.mishtam-theme.ms-account-page .woocommerce-Addresses::after {
	content: none;
}

.mishtam-theme.ms-account-page .woocommerce-Addresses .u-column1,
.mishtam-theme.ms-account-page .woocommerce-Addresses .u-column2,
.mishtam-theme.ms-account-page .woocommerce-Addresses .col-1,
.mishtam-theme.ms-account-page .woocommerce-Addresses .col-2 {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.mishtam-theme.ms-account-page .woocommerce-Address,
.mishtam-theme.ms-account-page .ms-address-card {
	display: flex;
	flex-direction: column;
	width: auto !important;
	float: none !important;
	height: 100%;
	min-height: 0;
	padding: var(--space-5);
	background: linear-gradient(180deg, #fff8fb 0%, #fff 100%);
	border: 1px solid rgba(227, 28, 121, 0.1);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-xs);
}

.mishtam-theme.ms-account-page .woocommerce-Address-title,
.mishtam-theme.ms-account-page .woocommerce-Addresses .woocommerce-Address-title,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-Address-title,
.mishtam-theme.ms-account-page .ms-address-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	min-height: 40px;
	margin: 0 0 var(--space-4);
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

.mishtam-theme.ms-account-page .woocommerce-Address-title h2,
.mishtam-theme.ms-account-page .woocommerce-Address-title h3,
.mishtam-theme.ms-account-page .ms-address-card__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0 !important;
	font-size: 1.0625rem;
	font-weight: 800;
	color: var(--ms-text);
	line-height: 1.25;
}

.mishtam-theme.ms-account-page .woocommerce-Address-title .edit,
.mishtam-theme.ms-account-page .ms-address-card__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	align-self: center;
	min-height: 34px;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ms-primary) !important;
	text-decoration: none !important;
	white-space: nowrap;
	background: var(--ms-bg);
	border: 1px solid rgba(227, 28, 121, 0.16);
	border-radius: var(--ms-radius-pill);
	transition: background var(--ms-duration) var(--ms-ease), border-color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme.ms-account-page .woocommerce-Address-title .edit:hover,
.mishtam-theme.ms-account-page .ms-address-card__action:hover {
	text-decoration: none !important;
	background: var(--ms-primary-light);
	border-color: rgba(227, 28, 121, 0.24);
}

.mishtam-theme.ms-account-page .woocommerce-Address > address,
.mishtam-theme.ms-account-page .ms-address-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	margin: 0;
	padding: var(--space-4);
	min-height: 120px;
	font-style: normal;
	font-size: 14px;
	line-height: 1.65;
	color: var(--ms-text);
	background: var(--ms-bg);
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-md);
}

.mishtam-theme.ms-account-page .ms-address-card--empty .ms-address-card__body {
	align-items: center;
	justify-content: center;
	text-align: center;
}

.mishtam-theme.ms-account-page .ms-address-card__empty {
	margin: 0;
	max-width: 16rem;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ms-text-muted);
}

/* ===== Forms (edit account / edit address / login / register) ===== */
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content form > h2,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content form > h3,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content > h2,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content > h3 {
	margin: 0 0 var(--space-5);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--ms-text);
}

.mishtam-theme.ms-account-page .woocommerce form .form-row,
.mishtam-theme.ms-account-page .woocommerce-form-row {
	margin: 0 0 var(--space-4);
	padding: 0;
}

.mishtam-theme.ms-account-page label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-text);
}

.mishtam-theme.ms-account-page .required,
.mishtam-theme.ms-account-page .woocommerce-form-row .required {
	color: var(--ms-primary);
	border: 0;
}

.mishtam-theme.ms-account-page .woocommerce form .form-row input.input-text,
.mishtam-theme.ms-account-page .woocommerce form .form-row select,
.mishtam-theme.ms-account-page input.input-text,
.mishtam-theme.ms-account-page .woocommerce-account-fields input.input-text {
	width: 100%;
	height: 52px;
	min-height: 52px;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	padding: 0 var(--space-4);
	font-size: var(--ms-body);
	font-family: inherit;
	line-height: normal;
	color: var(--ms-text);
	background: var(--ms-bg);
	box-sizing: border-box;
	transition: border-color var(--ms-duration) var(--ms-ease), box-shadow var(--ms-duration) var(--ms-ease);
}

.mishtam-theme.ms-account-page .woocommerce form .form-row textarea {
	width: 100%;
	min-height: 96px;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	padding: var(--space-3) var(--space-4);
	font-size: var(--ms-body);
	font-family: inherit;
	line-height: 1.5;
	color: var(--ms-text);
	background: var(--ms-bg);
	box-sizing: border-box;
	resize: vertical;
	transition: border-color var(--ms-duration) var(--ms-ease), box-shadow var(--ms-duration) var(--ms-ease);
}

.mishtam-theme.ms-account-page .woocommerce form .form-row input.input-text:focus,
.mishtam-theme.ms-account-page .woocommerce form .form-row textarea:focus,
.mishtam-theme.ms-account-page .woocommerce form .form-row select:focus,
.mishtam-theme.ms-account-page input.input-text:focus {
	outline: none;
	border-color: var(--ms-primary);
	box-shadow: 0 0 0 3px rgba(227, 28, 121, 0.12);
}

.mishtam-theme.ms-account-page .woocommerce-EditAccountForm em,
.mishtam-theme.ms-account-page .woocommerce-EditAccountForm .description,
.mishtam-theme.ms-account-page #account_display_name_description,
.mishtam-theme.ms-account-page .ms-account-field-hint {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	font-style: normal;
	line-height: 1.5;
	color: var(--ms-text-muted);
}

.mishtam-theme.ms-account-page .ms-account-password {
	margin-top: var(--space-6);
	padding: var(--space-5);
	background: linear-gradient(180deg, #fff8fb 0%, #fff 100%);
	border: 1px solid rgba(227, 28, 121, 0.12);
	border-radius: var(--ms-radius-lg);
}

.mishtam-theme.ms-account-page .ms-account-password__head {
	margin-bottom: var(--space-4);
}

.mishtam-theme.ms-account-page .ms-account-password__title {
	margin: 0 0 6px;
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--ms-text);
}

.mishtam-theme.ms-account-page .ms-account-password__intro {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ms-text-muted);
}

.mishtam-theme.ms-account-page .ms-account-password .form-row:last-child {
	margin-bottom: 0;
}

.mishtam-theme.ms-account-page .ms-account-form-actions {
	margin: var(--space-6) 0 0;
}

.mishtam-theme.ms-account-page .woocommerce-EditAccountForm fieldset {
	margin-top: var(--space-6);
	padding: var(--space-5);
	background: linear-gradient(180deg, #fff8fb 0%, #fff 100%);
	border: 1px solid rgba(227, 28, 121, 0.12);
	border-radius: var(--ms-radius-lg);
}

.mishtam-theme.ms-account-page .woocommerce-EditAccountForm legend {
	display: block;
	width: 100%;
	float: none;
	padding: 0;
	margin: 0 0 var(--space-4);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--ms-text);
	border: 0 !important;
}

.mishtam-theme.ms-account-page .woocommerce-EditAccountForm fieldset .form-row:first-of-type {
	margin-top: 0;
}

.mishtam-theme.ms-account-page .password-input input.input-text,
.mishtam-theme.ms-account-page .woocommerce-input-wrapper.password-input input.input-text {
	padding-right: 2.75rem;
}

/* Keep Astra/WC eye toggle visible — only reset theme button styling */
.mishtam-theme.ms-account-page .password-input .show-password-input,
.mishtam-theme.ms-account-page .woocommerce-input-wrapper.password-input .show-password-input {
	min-height: 0 !important;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0 !important;
	font-size: inherit;
	line-height: 1;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
}

/* Buttons */
.mishtam-theme.ms-account-page .woocommerce-Button,
.mishtam-theme.ms-account-page .woocommerce-form-login__submit,
.mishtam-theme.ms-account-page .woocommerce-form-register__submit,
.mishtam-theme.ms-account-page .woocommerce-EditAccountForm button[type="submit"],
.mishtam-theme.ms-account-page .woocommerce-address-fields button[type="submit"] {
	min-height: 48px;
	padding: 0 var(--space-6);
	font-size: 15px;
	font-weight: 700;
	border-radius: var(--ms-radius-pill) !important;
	background: var(--ms-gradient-primary);
	color: #fff;
	border: none;
	box-shadow: 0 4px 14px var(--ms-primary-glow);
}

.mishtam-theme.ms-account-page .woocommerce-Button:hover,
.mishtam-theme.ms-account-page .woocommerce-form-login__submit:hover,
.mishtam-theme.ms-account-page .woocommerce-form-register__submit:hover,
.mishtam-theme.ms-account-page .woocommerce-EditAccountForm button[type="submit"]:hover {
	filter: brightness(0.96);
	color: #fff;
}

/* Remember me + lost password row */
.mishtam-theme.ms-account-page .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-weight: 500;
	margin: 0 0 var(--space-4);
}

/* Auth submit buttons drop onto their own full-width line (no overlap). */
.mishtam-theme.ms-account-page .woocommerce-form-login__submit,
.mishtam-theme.ms-account-page .woocommerce-form-register__submit {
	display: block;
	width: 100%;
	float: none;
	margin: 0;
}

.mishtam-theme.ms-account-page .woocommerce-form-login__rememberme span {
	margin: 0;
}

.mishtam-theme.ms-account-page .woocommerce-form-login__rememberme input,
.mishtam-theme.ms-account-page .woocommerce-form-register input[type="checkbox"] {
	width: auto;
	min-height: 0;
}

.mishtam-theme.ms-account-page .lost_password {
	margin-top: var(--space-3);
	font-size: var(--ms-small);
}

.mishtam-theme.ms-account-page .lost_password a {
	color: var(--ms-primary);
	font-weight: 600;
}

/* ===== Auth layout (login / register, logged out) ===== */

/* Two-column wrapper: form(s) on the left, benefits panel on the right. */
.mishtam-theme.ms-account-page--auth .ms-auth {
	display: grid;
	gap: var(--space-6);
	align-items: stretch;
}

.mishtam-theme.ms-account-page--auth .ms-auth--split {
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.mishtam-theme.ms-account-page--auth .ms-auth--columns {
	grid-template-columns: 1fr;
}

.mishtam-theme.ms-account-page--auth .ms-auth__main {
	min-width: 0;
}

/* Section heading above each form. */
.mishtam-theme.ms-account-page--auth .ms-auth__main > h2,
.mishtam-theme.ms-account-page--auth .u-column1 > h2,
.mishtam-theme.ms-account-page--auth .u-column2 > h2 {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: var(--ms-letter-tight);
	margin: 0 0 var(--space-4);
	color: var(--ms-text);
}

/* Register-enabled: login | register side by side inside the main column. */
.mishtam-theme.ms-account-page--auth .u-columns,
.mishtam-theme.ms-account-page--auth .u-columns.col2-set,
.mishtam-theme.ms-account-page--auth #customer_login {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-5);
	align-items: start;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
}

.mishtam-theme.ms-account-page--auth .u-columns::before,
.mishtam-theme.ms-account-page--auth .u-columns::after {
	content: none;
}

.mishtam-theme.ms-account-page--auth .u-column1,
.mishtam-theme.ms-account-page--auth .u-column2,
.mishtam-theme.ms-account-page--auth .col-1,
.mishtam-theme.ms-account-page--auth .col-2 {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
}

/* Form cards. */
.mishtam-theme.ms-account-page--auth form.woocommerce-form-login,
.mishtam-theme.ms-account-page--auth form.woocommerce-form-register,
.mishtam-theme.ms-account-page--auth .woocommerce-ResetPassword {
	background: var(--ms-bg);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-card);
	padding: var(--space-6);
	margin: 0;
	width: 100%;
	box-sizing: border-box;
}

.mishtam-theme.ms-account-page--auth .woocommerce-privacy-policy-text {
	margin: var(--space-3) 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ms-text-muted);
}

.mishtam-theme.ms-account-page--auth .woocommerce-ResetPassword {
	max-width: 460px;
	margin-inline: auto;
}

/* ===== Password reset / set password forms ===== */
.mishtam-theme.ms-account-page .ms-account-reset {
	margin: 0 auto;
	max-width: 600px;
	width: 100%;
	box-sizing: border-box;
}

/* Logged-in password endpoint renders directly in .woocommerce (no MyAccount-content). */
.mishtam-theme.ms-account-page--password .woocommerce {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-6) var(--ms-container-x) var(--space-8);
	box-sizing: border-box;
}

.mishtam-theme.ms-account-page--password.ms-account-page--dashboard .woocommerce-MyAccount-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: none;
}

.mishtam-theme.ms-account-page--reset-form.ms-account-page--dashboard .woocommerce {
	grid-template-columns: minmax(0, 1fr);
}

.mishtam-theme.ms-account-page--reset-form.ms-account-page--dashboard .woocommerce-MyAccount-navigation {
	display: none;
}

.mishtam-theme.ms-account-page .ms-account-reset__card {
	width: 100%;
	background: linear-gradient(180deg, #fff8fb 0%, var(--ms-bg) 100%);
	border: 1px solid rgba(227, 28, 121, 0.12);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-card);
	padding: var(--space-6);
}

.mishtam-theme.ms-account-page .ms-account-reset__head {
	margin-bottom: var(--space-5);
}

.mishtam-theme.ms-account-page .ms-account-reset__title {
	margin: 0 0 var(--space-2);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--ms-text);
}

.mishtam-theme.ms-account-page .ms-account-reset__intro {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--ms-text-muted);
}

.mishtam-theme.ms-account-page .ms-account-reset__alert {
	margin-bottom: var(--space-5);
	padding: var(--space-4);
	border-radius: var(--ms-radius-md);
	font-size: 14px;
	line-height: 1.55;
}

.mishtam-theme.ms-account-page .ms-account-reset__alert--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-left: 4px solid var(--ms-error);
	color: #991b1b;
}

.mishtam-theme.ms-account-page .ms-account-reset__alert--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-left: 4px solid var(--ms-success);
	color: #166534;
}

.mishtam-theme.ms-account-page .ms-account-reset__alert-title {
	margin: 0 0 var(--space-2);
	font-size: 14px;
	font-weight: 700;
	color: inherit;
}

.mishtam-theme.ms-account-page .ms-account-reset__alert-list {
	margin: 0;
	padding: 0 0 0 1.1em;
}

.mishtam-theme.ms-account-page .ms-account-reset__alert-list li {
	margin: 0 0 6px;
}

.mishtam-theme.ms-account-page .ms-account-reset__alert-list li:last-child {
	margin-bottom: 0;
}

.mishtam-theme.ms-account-page .ms-account-reset__rules {
	margin-bottom: var(--space-5);
	padding: var(--space-4);
	background: var(--ms-bg-soft);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
}

.mishtam-theme.ms-account-page .ms-account-reset__rules-title {
	margin: 0 0 var(--space-2);
	font-size: 13px;
	font-weight: 700;
	color: var(--ms-text);
}

.mishtam-theme.ms-account-page .ms-account-reset__rules-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.mishtam-theme.ms-account-page .ms-account-reset__rule {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ms-text-muted);
}

.mishtam-theme.ms-account-page .ms-account-reset__rule-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid var(--ms-border);
	background: var(--ms-bg);
	position: relative;
}

.mishtam-theme.ms-account-page .ms-account-reset__rule.is-valid {
	color: var(--ms-success);
}

.mishtam-theme.ms-account-page .ms-account-reset__rule.is-valid .ms-account-reset__rule-icon {
	border-color: var(--ms-success);
	background: #ecfdf3;
}

.mishtam-theme.ms-account-page .ms-account-reset__rule.is-valid .ms-account-reset__rule-icon::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 3px;
	width: 5px;
	height: 9px;
	border: solid var(--ms-success);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mishtam-theme.ms-account-page .ms-account-reset__rule.is-invalid {
	color: var(--ms-error);
}

.mishtam-theme.ms-account-page .ms-account-reset__rule.is-invalid .ms-account-reset__rule-icon {
	border-color: #fecaca;
	background: #fef2f2;
}

.mishtam-theme.ms-account-page .ms-account-reset__rule.is-invalid .ms-account-reset__rule-icon::after {
	content: "!";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	color: var(--ms-error);
}

.mishtam-theme.ms-account-page .ms-account-reset .woocommerce-password-strength {
	margin-top: var(--space-2);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.mishtam-theme.ms-account-page .ms-account-reset .woocommerce-password-strength.short,
.mishtam-theme.ms-account-page .ms-account-reset .woocommerce-password-strength.bad {
	color: var(--ms-error);
}

.mishtam-theme.ms-account-page .ms-account-reset .woocommerce-password-strength.good {
	color: #b45309;
}

.mishtam-theme.ms-account-page .ms-account-reset .woocommerce-password-strength.strong {
	color: var(--ms-success);
}

.mishtam-theme.ms-account-page .ms-account-reset .woocommerce-password-hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--ms-text-muted);
}

.mishtam-theme.ms-account-page .ms-account-reset__fields .form-row {
	margin-bottom: var(--space-4);
}

.mishtam-theme.ms-account-page .ms-account-reset__fields .form-row:last-child {
	margin-bottom: 0;
}

.mishtam-theme.ms-account-page .woocommerce-ResetPassword .form-row-first,
.mishtam-theme.ms-account-page .woocommerce-ResetPassword .form-row-last,
.mishtam-theme.ms-account-page .ms-account-reset .form-row-wide {
	width: 100% !important;
	float: none !important;
	margin-right: 0 !important;
	clear: both;
}

.mishtam-theme.ms-account-page .ms-account-reset .password-input {
	display: block;
	width: 100%;
	position: relative;
}

.mishtam-theme.ms-account-page .ms-account-reset .password-input input.input-text {
	width: 100%;
}

.mishtam-theme.ms-account-page .ms-account-reset__actions {
	margin-top: var(--space-5);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
}

.mishtam-theme.ms-account-page .ms-account-reset__submit {
	min-width: 180px;
}

.mishtam-theme.ms-account-page a.ms-account-reset__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.mishtam-theme.ms-account-page .ms-account-reset__back {
	margin: 0;
	font-size: 14px;
}

.mishtam-theme.ms-account-page .ms-account-reset__back a {
	color: var(--ms-primary);
	font-weight: 600;
	text-decoration: none;
}

.mishtam-theme.ms-account-page .ms-account-reset__back a:hover {
	text-decoration: underline;
}

.mishtam-theme.ms-account-page .ms-account-reset__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: var(--space-3);
	color: var(--ms-primary);
	background: var(--ms-primary-light);
	border-radius: 50%;
}

.mishtam-theme.ms-account-page .ms-account-reset__icon svg {
	width: 22px;
	height: 22px;
}

.mishtam-theme.ms-account-page--password .woocommerce-MyAccount-content > p:first-child {
	display: none;
}

/* ===== Benefits aside ===== */
.mishtam-theme .ms-auth__aside {
	display: flex;
	flex-direction: column;
	background: var(--ms-gradient-soft), var(--ms-bg-soft);
	background: linear-gradient(160deg, var(--ms-primary-light), var(--ms-bg-soft));
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-lg);
	padding: var(--space-6);
}

.mishtam-theme .ms-auth__aside-title {
	margin: 0 0 var(--space-2);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: var(--ms-letter-tight);
	color: var(--ms-text);
}

.mishtam-theme .ms-auth__aside-intro {
	margin: 0 0 var(--space-4);
	font-size: var(--ms-small);
	line-height: 1.55;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-auth__perks {
	list-style: none;
	margin: 0 0 var(--space-5);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.mishtam-theme .ms-auth__perks li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	font-size: var(--ms-small);
	font-weight: 500;
	color: var(--ms-text);
	line-height: 1.45;
}

.mishtam-theme .ms-auth__perk-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: var(--ms-radius-pill);
	background: var(--ms-primary);
	color: #fff;
}

.mishtam-theme .ms-auth__perk-icon svg {
	width: 14px;
	height: 14px;
}

.mishtam-theme .ms-auth__aside-foot {
	margin-top: auto;
	padding-top: var(--space-4);
	border-top: 1px solid var(--ms-border);
}

.mishtam-theme .ms-auth__aside-foot p {
	margin: 0 0 var(--space-3);
	font-size: 13px;
	color: var(--ms-text-muted);
	line-height: 1.5;
}

.mishtam-theme .ms-auth__aside-foot .ms-btn {
	width: 100%;
}

/* ===== Notices ===== */
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-message,
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-info,
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-error,
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper ul.woocommerce-error,
.mishtam-theme.ms-account-page .woocommerce-message,
.mishtam-theme.ms-account-page .woocommerce-info,
.mishtam-theme.ms-account-page .woocommerce-error,
.mishtam-theme.ms-account-page ul.woocommerce-error {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: var(--space-2);
	position: relative;
	margin: 0 0 var(--space-4);
	padding: var(--space-4);
	padding-left: calc(var(--space-4) + 28px);
	border-radius: var(--ms-radius-md);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	list-style: none;
	box-shadow: none;
}

.mishtam-theme.ms-account-page ul.woocommerce-error {
	flex-direction: column;
	align-items: flex-start;
}

.mishtam-theme.ms-account-page ul.woocommerce-error > li {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-message,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-message,
.mishtam-theme.ms-account-page .woocommerce-message {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-left: 4px solid var(--ms-success);
	color: #166534;
}

.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-info,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-info,
.mishtam-theme.ms-account-page .woocommerce-info {
	background: var(--ms-primary-light);
	border: 1px solid rgba(227, 28, 121, 0.2);
	border-left: 4px solid var(--ms-primary);
	color: var(--ms-text);
}

.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-error,
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper ul.woocommerce-error,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-error,
.mishtam-theme.ms-account-page .woocommerce-error,
.mishtam-theme.ms-account-page ul.woocommerce-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-left: 4px solid var(--ms-error);
	color: #991b1b;
}

.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-message::before,
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-info::before,
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-error::before,
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper ul.woocommerce-error::before,
.mishtam-theme.ms-account-page .woocommerce-message::before,
.mishtam-theme.ms-account-page .woocommerce-info::before,
.mishtam-theme.ms-account-page .woocommerce-error::before,
.mishtam-theme.ms-account-page ul.woocommerce-error::before {
	content: "";
	position: absolute;
	left: var(--space-4);
	top: var(--space-4);
	transform: none;
	width: 20px;
	height: 20px;
	margin: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-message::before,
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-info::before,
.mishtam-theme.ms-account-page .woocommerce-message::before,
.mishtam-theme.ms-account-page .woocommerce-info::before {
	top: 50%;
	transform: translateY(-50%);
}

.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-message::before,
.mishtam-theme.ms-account-page .woocommerce-message::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2316a34a'/%3E%3Cpath d='M8 12l3 3 5-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-info::before,
.mishtam-theme.ms-account-page .woocommerce-info::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23d4146a'/%3E%3Cpath d='M12 11v5M12 8h.01' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mishtam-theme.ms-account-page .woocommerce-notices-wrapper .woocommerce-error::before,
.mishtam-theme.ms-account-page .woocommerce-notices-wrapper ul.woocommerce-error::before,
.mishtam-theme.ms-account-page .woocommerce-error::before,
.mishtam-theme.ms-account-page ul.woocommerce-error::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23dc2626'/%3E%3Cpath d='M12 8v5M12 16h.01' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-info:has(.button),
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-message:has(.button),
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-info:has(.button.wc-forward),
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-message:has(.button.wc-forward) {
	align-items: center;
}

/* ===== Responsive (tablet + mobile) ===== */
@media (max-width: 1199px) {
	.mishtam-theme.ms-account-page--auth .u-columns,
	.mishtam-theme.ms-account-page--auth .u-columns.col2-set,
	.mishtam-theme.ms-account-page--auth #customer_login {
		grid-template-columns: 1fr;
		gap: var(--space-6);
	}

	.mishtam-theme.ms-account-page--auth .ms-auth--split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1024px) {
	.mishtam-theme .ms-account-hero {
		padding-bottom: var(--space-5);
	}

	.mishtam-theme.ms-account-page--dashboard .woocommerce {
		padding-left: 0;
		padding-right: 0;
	}

	.mishtam-theme.ms-account-page--auth .woocommerce {
		padding-top: var(--space-5);
		padding-bottom: var(--space-6);
	}

	.mishtam-theme.ms-account-page--dashboard .woocommerce {
		display: flex !important;
		flex-direction: column;
		gap: 0;
		padding: 0 0 var(--space-6);
		margin-top: 0;
	}

	.mishtam-theme.ms-account-page--password.ms-account-page--dashboard .woocommerce {
		align-items: center;
		padding: var(--space-5) var(--ms-container-x) var(--space-6);
	}

	.mishtam-theme.ms-account-page--password .woocommerce-MyAccount-content {
		padding: var(--space-5) var(--ms-container-x) var(--space-6);
		box-sizing: border-box;
	}

	.mishtam-theme.ms-account-page .woocommerce-notices-wrapper {
		order: 0;
		padding: 0 var(--ms-container-x);
		margin-bottom: var(--space-3);
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation {
		order: 1;
		position: sticky;
		top: var(--ms-account-sticky-top, var(--ms-header-height));
		z-index: 40;
		width: 100%;
		margin: 0;
		padding: var(--space-3) var(--ms-container-x);
		background: var(--ms-bg-soft);
		border: 0;
		border-radius: 0;
		border-bottom: 1px solid var(--ms-border-light);
		box-shadow: none;
		max-height: none;
		overflow: visible;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation.is-stuck {
		box-shadow: 0 -20px 0 20px var(--ms-bg-soft);
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation.is-stuck::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 32px;
		background: var(--ms-bg-soft);
		pointer-events: none;
	}

	.mishtam-theme.ms-account-page .ms-account-nav-sentinel {
		width: 100%;
		height: 1px;
		margin: 0;
		padding: 0;
		pointer-events: none;
		visibility: hidden;
		flex-shrink: 0;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 8px;
		margin: 0;
		padding: 0;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation li,
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation-link {
		flex: 0 0 auto;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 38px;
		padding: 0 14px;
		font-size: 13px;
		font-weight: 600;
		white-space: nowrap;
		color: var(--ms-text);
		background: var(--ms-bg);
		border: 1px solid var(--ms-border-light);
		border-radius: var(--ms-radius-pill);
		box-shadow: none;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation a:hover {
		background: var(--ms-bg);
		border-color: rgba(212, 20, 106, 0.22);
		color: var(--ms-primary);
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation .is-active a {
		background: var(--ms-primary);
		border-color: var(--ms-primary);
		color: #fff;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation .is-active a:hover {
		background: var(--ms-primary-hover);
		border-color: var(--ms-primary-hover);
		color: #fff;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content {
		order: 2;
		width: 100%;
		padding: var(--space-4) var(--ms-container-x) 0;
		overflow-x: clip;
		background: transparent;
		border-radius: 0;
		box-shadow: none;
	}

	.mishtam-theme.ms-account-page .woocommerce form .form-row-first,
	.mishtam-theme.ms-account-page .woocommerce form .form-row-last {
		width: 100% !important;
		float: none !important;
		margin-right: 0 !important;
	}

	.mishtam-theme .ms-dashboard-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mishtam-theme .ms-referral__hero {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.mishtam-theme .ms-referral__stats {
		width: 100%;
	}

	.mishtam-theme .ms-referral__stat {
		flex: 1 1 calc(33.333% - var(--space-3));
		min-width: 0;
	}

	.mishtam-theme .ms-referral__code-row,
	.mishtam-theme .ms-referral__link-row {
		flex-direction: column;
	}

	.mishtam-theme .ms-referral__copy-btn,
	.mishtam-theme .ms-referral__link-input {
		width: 100%;
		min-width: 0;
	}

	/* Kill WooCommerce smallscreen table quirks on account pages */
	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive thead {
		display: none !important;
	}

	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive tbody th {
		display: flex !important;
	}

	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive tr {
		display: block !important;
		width: 100% !important;
	}

	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive tr td:not(.ms-wallet__cell),
	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive tr th.woocommerce-orders-table__cell {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-3);
		width: 100% !important;
		float: none !important;
		padding: 12px 0 !important;
		text-align: right !important;
		border: 0 !important;
	}

	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td,
	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive.woocommerce-orders-table tr th.woocommerce-orders-table__cell {
		padding: 12px var(--space-4) !important;
		border-bottom: 1px solid var(--ms-border-light) !important;
	}

	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive tr td:not(.ms-wallet__cell)::before,
	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive tr th.woocommerce-orders-table__cell::before {
		content: attr(data-title) !important;
		float: none !important;
		flex: 0 0 auto;
		margin: 0 !important;
		padding: 0 !important;
		font-size: 11px;
		font-weight: 700;
		color: var(--ms-text-muted);
		text-transform: uppercase;
		letter-spacing: 0.05em;
		text-align: left !important;
	}

	.mishtam-theme.ms-account-page .woocommerce-orders-table {
		border: 0 !important;
		background: transparent !important;
	}

	.mishtam-theme.ms-account-page .woocommerce-orders-table tbody {
		display: flex;
		flex-direction: column;
		gap: var(--space-3);
	}

	.mishtam-theme.ms-account-page .woocommerce-orders-table tr {
		margin: 0;
		padding: 0;
		overflow: hidden;
		background: var(--ms-bg);
		border: 1px solid var(--ms-border-light) !important;
		border-radius: var(--ms-radius-lg);
		box-shadow: var(--ms-shadow-xs);
	}

	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive.woocommerce-orders-table tr td:last-child,
	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive.woocommerce-orders-table tr th.woocommerce-orders-table__cell:last-child {
		padding-bottom: var(--space-4) !important;
		border-bottom: 0 !important;
	}

	.mishtam-theme.ms-account-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-number {
		width: 100% !important;
		margin: 0 !important;
		padding: var(--space-3) var(--space-4) !important;
		background: var(--ms-bg-soft) !important;
		border-bottom: 1px solid var(--ms-border-light) !important;
		font-size: 15px;
		font-weight: 700;
	}

	.mishtam-theme.ms-account-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
		color: var(--ms-text);
	}

	.mishtam-theme.ms-account-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
		justify-content: space-between !important;
	}

	/* Price + "for N items" must stay grouped — WC outputs them as separate flex items. */
	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive.woocommerce-orders-table .woocommerce-orders-table__cell-order-total {
		justify-content: flex-start !important;
		flex-wrap: wrap;
		gap: 0.25em var(--space-2);
		text-align: right;
	}

	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive.woocommerce-orders-table .woocommerce-orders-table__cell-order-total::before {
		margin-right: auto !important;
	}

	.mishtam-theme.ms-account-page .woocommerce table.shop_table_responsive.woocommerce-orders-table .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount {
		font-weight: 700;
		color: var(--ms-text);
	}

	.mishtam-theme.ms-account-page .ms-wallet__table-wrap {
		overflow: visible;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.mishtam-theme.ms-account-page .ms-wallet__table thead {
		display: none !important;
	}

	.mishtam-theme.ms-account-page .ms-wallet__table tbody {
		display: flex;
		flex-direction: column;
		gap: var(--space-3);
	}

	.mishtam-theme.ms-account-page .ms-wallet__table tr {
		display: block !important;
		padding: var(--space-4);
		background: var(--ms-bg);
		border: 1px solid var(--ms-border-light) !important;
		border-radius: var(--ms-radius-lg);
		box-shadow: var(--ms-shadow-xs);
	}

	.mishtam-theme.ms-account-page .ms-wallet__table tbody td:not(.ms-wallet__cell--amount):not(.ms-wallet__cell--balance) {
		display: block;
		border: 0 !important;
	}

	.mishtam-theme.ms-account-page .ms-wallet__table tbody tr:hover td {
		background: transparent;
	}

	.mishtam-theme.ms-account-page .ms-wallet__cell--date,
	.mishtam-theme.ms-account-page .ms-wallet__cell--desc {
		padding: 0 !important;
	}

	.mishtam-theme.ms-account-page .ms-wallet__cell--date::before,
	.mishtam-theme.ms-account-page .ms-wallet__cell--desc::before {
		display: none;
	}

	.mishtam-theme.ms-account-page .ms-wallet__desc {
		padding-left: 0;
	}

	.mishtam-theme.ms-account-page .ms-wallet__cell--amount,
	.mishtam-theme.ms-account-page .ms-wallet__cell--balance {
		display: flex !important;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-4);
		width: 100%;
		box-sizing: border-box;
		padding: var(--space-3) 0 0 !important;
		margin-top: var(--space-2);
		border: 0 !important;
		border-top: 1px solid var(--ms-border-light) !important;
		text-align: left !important;
	}

	.mishtam-theme.ms-account-page .ms-wallet__cell--amount::before,
	.mishtam-theme.ms-account-page .ms-wallet__cell--balance::before {
		content: attr(data-label);
		display: block;
		flex: 0 1 auto;
		min-width: 0;
		font-size: 11px;
		font-weight: 700;
		color: var(--ms-text-muted);
		text-transform: uppercase;
		letter-spacing: 0.06em;
		margin: 0;
		padding: 0;
	}

	.mishtam-theme.ms-account-page .ms-wallet__cell--amount .ms-wallet__amount,
	.mishtam-theme.ms-account-page .ms-wallet__cell--balance .ms-wallet__balance {
		flex: 0 0 auto;
		margin-left: auto;
	}
}

@media (max-width: 767px) {
	.mishtam-theme.ms-account-page--auth .woocommerce {
		padding-top: var(--space-4);
		padding-bottom: var(--space-5);
	}

	.mishtam-theme.ms-account-page--auth .ms-auth {
		gap: var(--space-5);
	}

	.mishtam-theme.ms-account-page--auth .ms-auth__main > h2,
	.mishtam-theme.ms-account-page--auth .u-column1 > h2,
	.mishtam-theme.ms-account-page--auth .u-column2 > h2 {
		font-size: 1.25rem;
		margin-bottom: var(--space-3);
	}

	.mishtam-theme.ms-account-page--auth form.woocommerce-form-login,
	.mishtam-theme.ms-account-page--auth form.woocommerce-form-register,
	.mishtam-theme.ms-account-page--auth .woocommerce-ResetPassword {
		padding: var(--space-4);
	}

	.mishtam-theme.ms-account-page--password .woocommerce {
		padding: var(--space-4) var(--ms-container-x) var(--space-5);
	}

	.mishtam-theme.ms-account-page--password .ms-auth {
		width: 100%;
		max-width: 600px;
		margin-inline: auto;
	}

	.mishtam-theme.ms-account-page--password .ms-auth__main {
		width: 100%;
		min-width: 0;
	}

	.mishtam-theme.ms-account-page .ms-account-reset {
		max-width: 600px;
		width: 100%;
	}

	.mishtam-theme.ms-account-page .ms-account-reset__card {
		padding: var(--space-5) var(--space-4);
	}

	.mishtam-theme.ms-account-page .ms-account-reset__submit {
		width: 100%;
		min-width: 0;
	}

	.mishtam-theme.ms-account-page--password .woocommerce-MyAccount-content {
		padding: var(--space-4) var(--ms-container-x) var(--space-5);
	}

	.mishtam-theme.ms-account-page--auth .ms-auth__aside {
		padding: var(--space-4);
	}

	.mishtam-theme.ms-account-page--auth .woocommerce form .form-row input.input-text,
	.mishtam-theme.ms-account-page--auth .woocommerce form .form-row select,
	.mishtam-theme.ms-account-page--auth input.input-text {
		height: 48px;
		min-height: 48px;
	}

	.mishtam-theme .ms-account-hero {
		padding: var(--space-4) 0 var(--space-5);
	}

	.mishtam-theme .ms-account-hero::before {
		left: 0;
		width: 100%;
		transform: none;
		background-image:
			linear-gradient(
				180deg,
				rgba(255, 255, 255, 0.92) 0%,
				rgba(255, 255, 255, 0.78) 55%,
				rgba(255, 255, 255, 0.9) 100%
			),
			url("../images/account-hero-bg.png");
		background-position: center, center 30%;
		background-size: cover, cover;
	}

	.mishtam-theme .ms-account-hero__head {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-3);
	}

	.mishtam-theme .ms-account-hero__title {
		font-size: clamp(1.5rem, 6vw, 1.875rem);
	}

	.mishtam-theme .ms-account-hero__intro {
		font-size: 14px;
	}

	.mishtam-theme .ms-account-hero__actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.mishtam-theme.ms-account-page .woocommerce {
		padding-bottom: var(--space-5);
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation {
		padding-block: var(--space-2);
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-navigation a {
		min-height: 44px;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content {
		padding-top: var(--space-3);
	}

	.mishtam-theme.ms-account-page .woocommerce-Addresses,
	.mishtam-theme.ms-account-page .ms-addresses-grid {
		grid-template-columns: 1fr;
	}

	.mishtam-theme.ms-account-page .woocommerce-Address,
	.mishtam-theme.ms-account-page .ms-address-card {
		min-height: 0;
	}

	.mishtam-theme.ms-account-page .woocommerce-Address-title,
	.mishtam-theme.ms-account-page .ms-address-card__head {
		flex-wrap: wrap;
	}

	.mishtam-theme.ms-account-page .ms-account-password,
	.mishtam-theme.ms-account-page .woocommerce-EditAccountForm fieldset {
		padding: var(--space-4);
	}

	.mishtam-theme.ms-account-page .woocommerce-Button,
	.mishtam-theme.ms-account-page .woocommerce-EditAccountForm button[type="submit"],
	.mishtam-theme.ms-account-page .woocommerce-address-fields button[type="submit"],
	.mishtam-theme.ms-account-page .woocommerce-form-login__submit,
	.mishtam-theme.ms-account-page .woocommerce-form-register__submit {
		width: 100%;
	}

	.mishtam-theme .woocommerce-Pagination {
		justify-content: center;
	}

	.mishtam-theme .ms-referral__hero,
	.mishtam-theme .ms-referral__share-card {
		padding: var(--space-4);
	}

	.mishtam-theme .ms-referral__stats {
		flex-direction: column;
	}

	.mishtam-theme .ms-referral__stat {
		flex: 1 1 auto;
		width: 100%;
	}

	.mishtam-theme .ms-referral__code {
		font-size: 20px;
		word-break: break-all;
	}

	.mishtam-theme .ms-referral__network-legend {
		flex-direction: column;
	}

	.mishtam-theme .ms-referral-tree__branch {
		margin-left: 18px;
		padding-left: 16px;
	}

	.mishtam-theme .ms-referral-tree__card {
		width: 100%;
	}

	.mishtam-theme .ms-wallet__balance-card {
		padding: var(--space-4);
	}

	.mishtam-theme .ms-wallet__balance-amount {
		font-size: 28px;
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-info:has(.button),
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-message:has(.button),
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-info:has(.button.wc-forward),
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-message:has(.button.wc-forward) {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		padding-left: var(--space-4);
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-info:has(.button)::before,
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-message:has(.button)::before,
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-info:has(.button.wc-forward)::before,
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-message:has(.button.wc-forward)::before {
		position: static;
		transform: none;
		margin: 0 auto var(--space-2);
	}

	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-info .button,
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-message .button,
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-info .button.wc-forward,
	.mishtam-theme.ms-account-page .woocommerce-MyAccount-content .woocommerce-message .button.wc-forward {
		width: 100%;
		margin-top: var(--space-3);
	}
}

@media (max-width: 480px) {
	.mishtam-theme .ms-dashboard-links {
		grid-template-columns: 1fr;
	}

	.mishtam-theme .ms-dashboard-welcome {
		padding: var(--space-4);
	}

	.mishtam-theme .ms-dashboard-welcome__title {
		font-size: 20px;
	}

	.mishtam-theme .ms-dashboard-welcome,
	.mishtam-theme .ms-rewards-card,
	.mishtam-theme .ms-referral__hero,
	.mishtam-theme .ms-referral__share-card,
	.mishtam-theme .ms-wallet__balance-card,
	.mishtam-theme.ms-account-page .ms-address-card,
	.mishtam-theme.ms-account-page .ms-account-password,
	.mishtam-theme.ms-account-page .woocommerce-EditAccountForm fieldset {
		padding: var(--space-4);
	}

	.mishtam-theme .ms-dashboard-link {
		min-height: 96px;
	}

	.mishtam-theme .ms-rewards-card {
		padding: var(--space-4);
	}

	.mishtam-theme .ms-rewards-card__head {
		flex-direction: column;
	}

	.mishtam-theme .ms-referral__title {
		font-size: 20px;
	}
}

/* ===== Wallet ===== */
.mishtam-theme .ms-wallet__balance-card {
	padding: var(--space-5);
	margin-bottom: var(--space-6);
	background: linear-gradient(135deg, #ecfdf3 0%, #f0fdf4 55%, var(--ms-bg) 100%);
	border: 1px solid rgba(22, 163, 74, 0.2);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-sm);
}

.mishtam-theme .ms-wallet__balance-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-2);
}

.mishtam-theme .ms-wallet__balance-label {
	font-size: 13px;
	font-weight: 600;
	color: #14532d;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mishtam-theme .ms-wallet__balance-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(22, 163, 74, 0.12);
	color: var(--ms-success);
}

.mishtam-theme .ms-wallet__balance-icon svg {
	width: 22px;
	height: 22px;
}

.mishtam-theme .ms-wallet__balance-amount {
	margin: 0 0 var(--space-2);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--ms-text);
}

.mishtam-theme .ms-wallet__balance-hint {
	margin: 0;
	font-size: 14px;
	color: var(--ms-text-muted);
	line-height: 1.5;
}

.mishtam-theme .ms-wallet__history-title {
	margin: 0 0 var(--space-4);
	font-size: 18px;
	font-weight: 700;
	color: var(--ms-text);
}

.mishtam-theme .ms-wallet__empty {
	margin: 0;
	padding: var(--space-5);
	background: var(--ms-bg-soft);
	border: 1px dashed var(--ms-border);
	border-radius: var(--ms-radius-md);
	color: var(--ms-text-muted);
	font-size: 14px;
	text-align: center;
}

.mishtam-theme .ms-wallet__table-wrap {
	overflow: hidden;
	background: var(--ms-bg);
	border: 1px solid rgba(236, 228, 232, 0.95);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-card);
}

.mishtam-theme .ms-wallet__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
}

.mishtam-theme .woocommerce-MyAccount-content .ms-wallet__table {
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.mishtam-theme .ms-wallet__table th,
.mishtam-theme .ms-wallet__table td {
	padding: var(--space-4) var(--space-5);
	text-align: left;
	vertical-align: middle;
	border: 0;
}

.mishtam-theme .ms-wallet__table thead th {
	background: linear-gradient(135deg, #fff8fb 0%, #fceff5 100%);
	border-bottom: 1px solid rgba(227, 28, 121, 0.1);
	font-size: 11px;
	font-weight: 700;
	color: #6b5562;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.mishtam-theme .ms-wallet__table thead th:first-child {
	border-top-left-radius: var(--ms-radius-lg);
}

.mishtam-theme .ms-wallet__table thead th:last-child {
	border-top-right-radius: var(--ms-radius-lg);
}

.mishtam-theme .ms-wallet__col-amount,
.mishtam-theme .ms-wallet__cell--amount {
	text-align: left;
	width: 1%;
	white-space: nowrap;
}

.mishtam-theme .ms-wallet__col-balance,
.mishtam-theme .ms-wallet__cell--balance {
	text-align: right;
	width: 1%;
	white-space: nowrap;
}

.mishtam-theme .ms-wallet__table tbody tr {
	transition: background-color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-wallet__table tbody td {
	border-top: 1px solid rgba(236, 228, 232, 0.75);
}

.mishtam-theme .ms-wallet__table tbody tr:first-child td {
	border-top: 0;
}

.mishtam-theme .ms-wallet__table tbody tr:hover td {
	background: rgba(253, 232, 242, 0.28);
}

.mishtam-theme .ms-wallet__table tbody tr:last-child td:first-child {
	border-bottom-left-radius: var(--ms-radius-lg);
}

.mishtam-theme .ms-wallet__table tbody tr:last-child td:last-child {
	border-bottom-right-radius: var(--ms-radius-lg);
}

.mishtam-theme .ms-wallet__cell--date time {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-text);
	white-space: nowrap;
}

.mishtam-theme .ms-wallet__cell--desc {
	min-width: 240px;
}

.mishtam-theme .ms-wallet__desc-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.mishtam-theme .ms-wallet__status {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 10px;
}

.mishtam-theme .ms-wallet__status svg {
	width: 14px;
	height: 14px;
}

.mishtam-theme .ms-wallet__table tbody tr.is-credit .ms-wallet__status {
	color: #166534;
	background: linear-gradient(135deg, #ecfdf3 0%, #dcfce7 100%);
	box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.14);
}

.mishtam-theme .ms-wallet__table tbody tr.is-debit .ms-wallet__status {
	color: #991b1b;
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
	box-shadow: inset 0 0 0 1px rgba(198, 40, 40, 0.12);
}

.mishtam-theme .ms-wallet__type {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0;
	padding: 4px 11px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ms-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(236, 228, 232, 0.95);
	border-radius: var(--ms-radius-pill);
	box-shadow: var(--ms-shadow-xs);
}

.mishtam-theme .ms-wallet__row--referral .ms-wallet__type {
	color: #166534;
	background: #ecfdf3;
	border-color: rgba(22, 163, 74, 0.18);
}

.mishtam-theme .ms-wallet__row--order .ms-wallet__type {
	color: #991b1b;
	background: #fef2f2;
	border-color: rgba(198, 40, 40, 0.16);
}

.mishtam-theme .ms-wallet__row--refund .ms-wallet__type,
.mishtam-theme .ms-wallet__row--admin_credit .ms-wallet__type {
	color: #1d4ed8;
	background: #eff6ff;
	border-color: rgba(29, 78, 216, 0.16);
}

.mishtam-theme .ms-wallet__desc {
	display: block;
	padding-left: 40px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ms-text);
}

.mishtam-theme .ms-wallet__amount,
.mishtam-theme .ms-wallet__balance {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	line-height: 1.15;
}

.mishtam-theme .ms-wallet__amount {
	justify-content: center;
	min-width: 0;
	padding: 5px 10px;
	border-radius: var(--ms-radius-pill);
}

.mishtam-theme .ms-wallet__amount .woocommerce-Price-amount,
.mishtam-theme .ms-wallet__amount .woocommerce-Price-currencySymbol,
.mishtam-theme .ms-wallet__amount bdi {
	margin: 0;
	padding: 0;
}

.mishtam-theme .ms-wallet__balance {
	justify-content: flex-end;
	padding: 5px 0;
	color: #4a3f46;
}

.mishtam-theme .ms-wallet__amount.is-credit {
	color: var(--ms-success);
	background: rgba(46, 125, 50, 0.1);
}

.mishtam-theme .ms-wallet__amount.is-debit {
	color: var(--ms-error);
	background: rgba(198, 40, 40, 0.08);
}

/* ===== Refer & earn ===== */
.mishtam-theme .ms-referral__hero {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: var(--space-5);
	align-items: end;
	margin-bottom: var(--space-6);
	padding: var(--space-5);
	background: linear-gradient(135deg, var(--ms-primary-light) 0%, var(--ms-bg) 72%);
	border: 1px solid rgba(227, 28, 121, 0.15);
	border-radius: var(--ms-radius-lg);
}

.mishtam-theme .ms-referral__title {
	margin: 0 0 var(--space-2);
	font-size: 22px;
	font-weight: 700;
	color: var(--ms-text);
}

.mishtam-theme .ms-referral__intro {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ms-text-muted);
	max-width: 34rem;
}

.mishtam-theme .ms-referral__stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.mishtam-theme .ms-referral__stat {
	min-width: 108px;
	padding: var(--space-3) var(--space-4);
	background: var(--ms-bg);
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-md);
	text-align: center;
}

.mishtam-theme .ms-referral__stat-value {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: var(--ms-primary);
	line-height: 1.2;
}

.mishtam-theme .ms-referral__stat-label {
	display: block;
	margin-top: var(--space-1);
	font-size: 11px;
	font-weight: 600;
	color: var(--ms-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mishtam-theme .ms-referral__share-card {
	margin-bottom: var(--space-6);
	padding: var(--space-5);
	background: var(--ms-bg);
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-sm);
}

.mishtam-theme .ms-referral__field-label {
	display: block;
	margin-bottom: var(--space-2);
	font-size: 12px;
	font-weight: 600;
	color: var(--ms-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mishtam-theme .ms-referral__code-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	margin-bottom: var(--space-5);
	flex-wrap: wrap;
}

.mishtam-theme .ms-referral__code {
	display: block;
	margin-top: var(--space-1);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--ms-text);
}

.mishtam-theme .ms-referral__link-row {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.mishtam-theme .ms-referral__link-input {
	flex: 1;
	min-width: 200px;
	padding: 12px 14px;
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	background: var(--ms-bg-soft);
	font-size: 14px;
	color: var(--ms-text);
}

.mishtam-theme .ms-referral__copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 var(--space-4);
	border: 1px solid var(--ms-border);
	border-radius: var(--ms-radius-md);
	background: var(--ms-bg);
	color: var(--ms-text);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease), background var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-referral__copy-btn:hover {
	border-color: var(--ms-primary);
	color: var(--ms-primary);
}

.mishtam-theme .ms-referral__copy-btn--primary {
	background: var(--ms-primary);
	border-color: var(--ms-primary);
	color: #fff;
}

.mishtam-theme .ms-referral__copy-btn--primary:hover {
	background: var(--ms-primary-hover);
	border-color: var(--ms-primary-hover);
	color: #fff;
}

.mishtam-theme .ms-referral__feedback {
	margin: var(--space-2) 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-success);
}

.mishtam-theme .ms-referral__rules,
.mishtam-theme .ms-referral__friends {
	margin-bottom: var(--space-5);
}

.mishtam-theme .ms-referral__rules-title,
.mishtam-theme .ms-referral__friends-title {
	margin: 0 0 var(--space-3);
	font-size: 17px;
	font-weight: 700;
	color: var(--ms-text);
}

.mishtam-theme .ms-referral__rules-list {
	margin: 0;
	padding-left: 1.2rem;
	color: var(--ms-text-muted);
	font-size: 14px;
	line-height: 1.6;
}

.mishtam-theme .ms-referral__rules-list li + li {
	margin-top: var(--space-2);
}

.mishtam-theme .ms-referral__empty {
	margin: 0;
	padding: var(--space-4);
	background: var(--ms-bg-soft);
	border: 1px dashed var(--ms-border);
	border-radius: var(--ms-radius-md);
	color: var(--ms-text-muted);
	font-size: 14px;
	text-align: center;
}

.mishtam-theme .ms-referral__friend-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-md);
	overflow: hidden;
}

.mishtam-theme .ms-referral__friend-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--ms-border-light);
	font-size: 14px;
}

.mishtam-theme .ms-referral__friend-list li:last-child {
	border-bottom: 0;
}

.mishtam-theme .ms-referral__friend-name {
	font-weight: 600;
	color: var(--ms-text);
}

.mishtam-theme .ms-referral__friend-date {
	color: var(--ms-text-muted);
	font-size: 13px;
}

/* ===== Referral genealogy tree ===== */
.mishtam-theme .ms-referral__network {
	margin-top: var(--space-6);
	padding-top: var(--space-5);
	border-top: 1px solid var(--ms-border);
}

.mishtam-theme .ms-referral__network-intro {
	margin: 0 0 var(--space-4);
	font-size: 14px;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-referral__network-legend {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-bottom: var(--space-4);
}

.mishtam-theme .ms-referral__network-legend-item {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	border-radius: var(--ms-radius-pill);
}

.mishtam-theme .ms-referral__network-legend-item--l1 {
	color: #9d174d;
	background: #fce7f3;
}

.mishtam-theme .ms-referral__network-legend-item--l2 {
	color: #6d28d9;
	background: #ede9fe;
}

.mishtam-theme .ms-referral__network-legend-item--l3 {
	color: #1d4ed8;
	background: #dbeafe;
}

.mishtam-theme .ms-referral__tree-wrap {
	overflow-x: auto;
	padding: var(--space-4);
	background: linear-gradient(135deg, #fff8fb 0%, #fff 45%, #faf5ff 100%);
	border: 1px solid rgba(227, 28, 121, 0.12);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-card);
}

.mishtam-theme .ms-referral-tree {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mishtam-theme .ms-referral-tree--nested {
	margin: 0;
	padding: 0;
}

.mishtam-theme .ms-referral-tree__item {
	position: relative;
	opacity: 0;
	transform: translateY(14px);
}

.mishtam-theme .ms-referral-tree__item.is-visible {
	animation: ms-referral-tree-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ms-referral-tree-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mishtam-theme .ms-referral-tree > .ms-referral-tree__item + .ms-referral-tree__item {
	margin-top: var(--space-3);
}

.mishtam-theme .ms-referral-tree__branch {
	position: relative;
	margin-top: var(--space-3);
	margin-left: 28px;
	padding-left: 22px;
}

.mishtam-theme .ms-referral-tree__branch::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 2px;
	height: calc(100% - 24px);
	background: linear-gradient(180deg, rgba(227, 28, 121, 0.35) 0%, rgba(124, 58, 237, 0.28) 55%, rgba(37, 99, 235, 0.2) 100%);
	border-radius: var(--ms-radius-pill);
}

.mishtam-theme .ms-referral-tree__branch > .ms-referral-tree > .ms-referral-tree__item::before {
	content: "";
	position: absolute;
	top: 28px;
	left: -22px;
	width: 18px;
	height: 2px;
	background: linear-gradient(90deg, rgba(124, 58, 237, 0.35) 0%, rgba(124, 58, 237, 0.08) 100%);
	border-radius: var(--ms-radius-pill);
}

.mishtam-theme .ms-referral-tree__card {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	width: min(100%, 420px);
	padding: var(--space-3) var(--space-4);
	background: var(--ms-bg);
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-xs);
	transition:
		transform var(--ms-duration) var(--ms-ease),
		box-shadow var(--ms-duration) var(--ms-ease),
		border-color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-referral-tree__item.is-visible .ms-referral-tree__card:hover {
	transform: translateX(4px);
	border-color: rgba(227, 28, 121, 0.18);
	box-shadow: 0 12px 28px rgba(212, 20, 106, 0.1);
}

.mishtam-theme .ms-referral-tree__avatar {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	font-size: 15px;
	font-weight: 800;
	border-radius: 14px;
}

.mishtam-theme .ms-referral-tree__card--level-1 .ms-referral-tree__avatar {
	color: var(--ms-primary);
	background: linear-gradient(135deg, #fde8f2 0%, #fff 100%);
	box-shadow: inset 0 0 0 1px rgba(227, 28, 121, 0.12);
}

.mishtam-theme .ms-referral-tree__card--level-2 .ms-referral-tree__avatar {
	color: #7c3aed;
	background: linear-gradient(135deg, #ede9fe 0%, #fff 100%);
	box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.mishtam-theme .ms-referral-tree__card--level-3 .ms-referral-tree__avatar {
	color: #2563eb;
	background: linear-gradient(135deg, #dbeafe 0%, #fff 100%);
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.mishtam-theme .ms-referral-tree__body {
	min-width: 0;
	flex: 1;
}

.mishtam-theme .ms-referral-tree__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	margin-bottom: 4px;
}

.mishtam-theme .ms-referral-tree__name {
	font-weight: 700;
	font-size: 14px;
	color: var(--ms-text);
}

.mishtam-theme .ms-referral-tree__level {
	flex-shrink: 0;
	padding: 3px 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: var(--ms-radius-pill);
}

.mishtam-theme .ms-referral-tree__card--level-1 .ms-referral-tree__level {
	color: #9d174d;
	background: #fce7f3;
}

.mishtam-theme .ms-referral-tree__card--level-2 .ms-referral-tree__level {
	color: #6d28d9;
	background: #ede9fe;
}

.mishtam-theme .ms-referral-tree__card--level-3 .ms-referral-tree__level {
	color: #1d4ed8;
	background: #dbeafe;
}

.mishtam-theme .ms-referral-tree__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-referral-tree__dot {
	opacity: 0.55;
}

.mishtam-theme .ms-referral-tree__count {
	font-weight: 600;
	color: #6b5562;
}

@media (prefers-reduced-motion: reduce) {
	.mishtam-theme .ms-referral-tree__item {
		opacity: 1;
		transform: none;
	}

	.mishtam-theme .ms-referral-tree__item.is-visible {
		animation: none;
	}

	.mishtam-theme .ms-referral-tree__card {
		transition: none;
	}
}

/* ===== Rewards progress (dashboard) ===== */
.mishtam-theme .ms-dashboard > p:first-child {
	display: none;
}

.mishtam-theme .ms-dashboard-welcome {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-4);
	margin-bottom: var(--space-5);
	padding: var(--space-5);
	background: linear-gradient(135deg, #fff8fb 0%, #fff 55%, #fdf6fa 100%);
	border: 1px solid rgba(227, 28, 121, 0.12);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-card);
}

.mishtam-theme .ms-dashboard-welcome__profile {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	min-width: 0;
}

.mishtam-theme .ms-dashboard-welcome__avatar {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	font-size: 20px;
	font-weight: 800;
	color: var(--ms-primary);
	background: linear-gradient(135deg, #fde8f2 0%, #fff 100%);
	border: 1px solid rgba(227, 28, 121, 0.16);
	border-radius: 16px;
	box-shadow: var(--ms-shadow-xs);
}

.mishtam-theme .ms-dashboard-welcome__title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--ms-text);
	letter-spacing: var(--ms-letter-tight);
}

.mishtam-theme .ms-dashboard-welcome__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ms-text-muted);
	max-width: 42ch;
}

.mishtam-theme .ms-dashboard-welcome__logout {
	flex-shrink: 0;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-text-muted);
	text-decoration: none;
	background: var(--ms-bg);
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-pill);
	transition: color var(--ms-duration) var(--ms-ease), border-color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-dashboard-welcome__logout:hover {
	color: var(--ms-primary);
	border-color: rgba(227, 28, 121, 0.25);
}

.mishtam-theme .ms-dashboard-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin-bottom: var(--space-6);
}

.mishtam-theme .ms-dashboard-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 108px;
	padding: var(--space-4);
	color: inherit;
	text-decoration: none;
	background: var(--ms-bg);
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-xs);
	transition:
		transform var(--ms-duration) var(--ms-ease),
		box-shadow var(--ms-duration) var(--ms-ease),
		border-color var(--ms-duration) var(--ms-ease),
		background-color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme.ms-account-page .woocommerce-MyAccount-content a.ms-dashboard-link,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content a.ms-dashboard-link:hover,
.mishtam-theme.ms-account-page .woocommerce-MyAccount-content a.ms-dashboard-link:focus {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
}

.mishtam-theme .ms-dashboard-link:hover {
	transform: translateY(-1px);
	background: linear-gradient(180deg, #fff 0%, #fff9fc 100%);
	border-color: rgba(227, 28, 121, 0.18);
	box-shadow: 0 10px 28px rgba(212, 20, 106, 0.08);
}

.mishtam-theme .ms-dashboard-link:active {
	transform: translateY(0);
	box-shadow: var(--ms-shadow-xs);
}

.mishtam-theme .ms-dashboard-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: 4px;
	color: var(--ms-primary);
	background: var(--ms-primary-light);
	border-radius: 12px;
	transition: transform var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-dashboard-link:hover .ms-dashboard-link__icon {
	transform: scale(1.04);
}

.mishtam-theme .ms-dashboard-link__icon svg {
	width: 20px;
	height: 20px;
}

.mishtam-theme .ms-dashboard-link__label {
	font-size: 15px;
	font-weight: 700;
	color: var(--ms-text);
}

.mishtam-theme .ms-dashboard-link__desc {
	font-size: 12px;
	line-height: 1.4;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-dashboard-link:hover .ms-dashboard-link__label,
.mishtam-theme .ms-dashboard-link:hover .ms-dashboard-link__desc {
	color: inherit;
	text-decoration: none;
}

.mishtam-theme .ms-dashboard-link--wallet .ms-dashboard-link__icon {
	color: #166534;
	background: #ecfdf3;
}

.mishtam-theme .ms-dashboard-link--referral .ms-dashboard-link__icon {
	color: #7c3aed;
	background: #f3e8ff;
}

.mishtam-theme .ms-rewards-card {
	margin: 0;
	padding: var(--space-5);
	background: linear-gradient(135deg, #fff5fa 0%, #fff 45%, #fff8fb 100%);
	border: 1px solid rgba(227, 28, 121, 0.14);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-card);
}

.mishtam-theme .ms-rewards-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.mishtam-theme .ms-rewards-card__eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	color: var(--ms-primary);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.mishtam-theme .ms-rewards-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	color: var(--ms-text);
}

.mishtam-theme .ms-rewards-card__chip {
	flex-shrink: 0;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ms-text);
	background: var(--ms-bg);
	border: 1px solid rgba(227, 28, 121, 0.12);
	border-radius: var(--ms-radius-pill);
}

.mishtam-theme .ms-rewards-card__body {
	margin-bottom: var(--space-3);
}

.mishtam-theme .ms-rewards-card__alert {
	padding: var(--space-3) var(--space-4);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	border-radius: var(--ms-radius-md);
}

.mishtam-theme .ms-rewards-card__alert--success {
	color: #166534;
	background: #ecfdf3;
	border: 1px solid rgba(22, 163, 74, 0.16);
}

.mishtam-theme .ms-rewards-card__progress-wrap {
	padding: var(--space-4);
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(236, 228, 232, 0.95);
	border-radius: var(--ms-radius-md);
}

.mishtam-theme .ms-rewards-card__progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-2);
}

.mishtam-theme .ms-rewards-card__progress-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ms-text);
}

.mishtam-theme .ms-rewards-card__progress-value {
	font-size: 13px;
	font-weight: 800;
	color: var(--ms-primary);
}

.mishtam-theme .ms-rewards-card__progress {
	height: 8px;
	overflow: hidden;
	background: rgba(236, 228, 232, 0.75);
	border-radius: var(--ms-radius-pill);
}

.mishtam-theme .ms-rewards-card__progress-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--ms-primary) 0%, #ff6b9d 100%);
	border-radius: inherit;
	transition: width 0.45s var(--ms-ease);
}

.mishtam-theme .ms-rewards-card__hint {
	margin: var(--space-3) 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-rewards-card__name-day {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: var(--space-3);
	padding: var(--space-3) var(--space-4);
	background: linear-gradient(135deg, rgba(253, 232, 242, 0.65) 0%, rgba(255, 255, 255, 0.9) 100%);
	border: 1px solid rgba(227, 28, 121, 0.14);
	border-radius: var(--ms-radius-md);
}

.mishtam-theme .ms-rewards-card__name-day-icon {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ms-primary);
}

.mishtam-theme .ms-rewards-card__name-day-text {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ms-text);
}

@media (min-width: 1025px) {
	.mishtam-theme .ms-dashboard-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.mishtam-theme .ms-dashboard-welcome {
		flex-direction: column;
	}

	.mishtam-theme .ms-dashboard-welcome__logout {
		align-self: flex-start;
	}
}

/* ===== My Account — Wishlist (WooCommerce native block) ===== */
.mishtam-theme .ms-wishlist-account {
	width: 100%;
	margin-top: var(--space-6);
	padding-top: var(--space-3);
}

.mishtam-theme .ms-wishlist-account .wc-block-wishlist {
	margin: 0;
}

.mishtam-theme .ms-wishlist-account .wc-block-wishlist__list,
.mishtam-theme .ms-wishlist-account .ms-wishlist__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	align-items: stretch;
	gap: var(--space-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item {
	display: flex;
	flex-direction: column;
	gap: 0;
	height: 100%;
	min-height: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--ms-bg);
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-lg);
	box-shadow: var(--ms-shadow-card);
	transition: transform var(--ms-duration) var(--ms-ease), box-shadow var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--ms-shadow-card-hover);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-image {
	position: relative;
	display: block;
	flex-shrink: 0;
	margin: 0;
	overflow: hidden;
	background: #fdf8fa;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-image > a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__image-slot,
.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__image-slot img {
	display: block;
	width: 100%;
	height: 100%;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__image-slot img {
	object-fit: cover;
	object-position: center;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__remove {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	color: var(--ms-text-muted);
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--ms-border-light);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(31, 31, 31, 0.1);
	cursor: pointer;
	transition: background-color var(--ms-duration) var(--ms-ease), color var(--ms-duration) var(--ms-ease), border-color var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__remove svg {
	width: 16px;
	height: 16px;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__remove:hover:not([disabled]) {
	color: #fff;
	background: var(--ms-error);
	border-color: var(--ms-error);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__remove:focus-visible:not([disabled]) {
	outline: 2px solid var(--ms-primary);
	outline-offset: 2px;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__variation {
	position: absolute;
	right: 8px;
	bottom: 8px;
	left: 8px;
	z-index: 1;
	padding: 5px 8px;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ms-text-muted);
	text-align: center;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--ms-border-light);
	border-radius: var(--ms-radius-sm);
	box-shadow: 0 1px 4px rgba(31, 31, 31, 0.06);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wp-block-post-title {
	margin: 0;
	padding: var(--space-2) var(--space-3) 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: left !important;
	min-height: calc(0.875rem * 1.35);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wp-block-post-title a {
	display: block;
	overflow: hidden;
	color: var(--ms-text) !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wp-block-post-title a:hover {
	color: var(--ms-primary) !important;
	text-decoration: none !important;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price {
	padding: var(--space-1) var(--space-3) 0;
	font-size: 0.875rem;
	line-height: 1.3;
	color: var(--ms-text);
	text-align: left !important;
	min-height: calc(0.875rem * 1.3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price .woocommerce-Price-amount {
	font-weight: 700;
	color: var(--ms-text);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price ins {
	text-decoration: none;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price ins .woocommerce-Price-amount {
	color: var(--ms-primary);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price del {
	margin-right: 5px;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--ms-text-muted);
	opacity: 1;
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price del .woocommerce-Price-amount {
	font-weight: 500;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button {
	width: 100%;
	padding: var(--space-2) var(--space-3) var(--space-3);
	margin: auto 0 0;
	min-height: calc(var(--space-2) + 36px + var(--space-3));
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button .wp-block-button__link,
.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button .wc-block-components-product-button__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 8px 12px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--ms-gradient-primary) !important;
	border: none !important;
	border-radius: var(--ms-radius-md) !important;
	box-shadow: none !important;
	transition: filter var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button .wp-block-button__link:hover,
.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button .wc-block-components-product-button__button:hover {
	color: #fff !important;
	filter: brightness(0.96);
}

.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button .wp-block-button__link:disabled,
.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button .wc-block-components-product-button__button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.mishtam-theme .ms-wishlist-account .wc-block-wishlist__notices {
	margin-bottom: var(--space-3);
}

.mishtam-theme .ms-wishlist-account .ms-wishlist__empty,
.mishtam-theme .ms-wishlist-account .wc-block-wishlist__empty {
	flex: 0 0 100%;
	width: 100%;
	padding: var(--space-8) var(--space-4);
}

.mishtam-theme .ms-wishlist-account .ms-wishlist__empty-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 28rem;
	margin: 0 auto;
	text-align: center;
}

.mishtam-theme .ms-wishlist-account .ms-wishlist__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: var(--space-3);
	font-size: 28px;
	line-height: 1;
	color: var(--ms-primary);
	background: var(--ms-primary-light);
	border-radius: 50%;
}

.mishtam-theme .ms-wishlist-account .ms-wishlist__empty-title {
	margin: 0 0 var(--space-2);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ms-text);
}

.mishtam-theme .ms-wishlist-account .ms-wishlist__empty-text {
	margin: 0 0 var(--space-4);
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ms-text-muted);
}

.mishtam-theme .ms-wishlist-account .ms-wishlist__empty-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.65rem 1.35rem;
	font-size: 14px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--ms-gradient-primary);
	border-radius: var(--ms-radius-pill);
	box-shadow: var(--ms-shadow-sm);
	transition: filter var(--ms-duration) var(--ms-ease);
}

.mishtam-theme .ms-wishlist-account .ms-wishlist__empty-cta:hover {
	color: #fff !important;
	filter: brightness(0.96);
}

@media (max-width: 1024px) {
	.mishtam-theme.ms-account-page--wishlist .woocommerce-MyAccount-content {
		overflow-x: visible;
	}

	.mishtam-theme .ms-wishlist-account {
		width: calc(100% + var(--ms-container-x));
		margin-right: calc(-1 * var(--ms-container-x));
		margin-left: 0;
		padding-right: var(--ms-container-x);
	}

	.mishtam-theme .ms-wishlist-account .wc-block-wishlist__list,
	.mishtam-theme .ms-wishlist-account .ms-wishlist__grid {
		display: flex;
		flex-wrap: nowrap;
		gap: var(--space-3);
		align-items: stretch;
		padding: 2px 0 var(--space-3);
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-wishlist__list::-webkit-scrollbar,
	.mishtam-theme .ms-wishlist-account .ms-wishlist__grid::-webkit-scrollbar {
		display: none;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item {
		flex: 0 0 200px;
		width: 200px;
		max-width: 200px;
		height: auto;
		align-self: stretch;
		scroll-snap-align: start;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item:hover {
		transform: none;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__remove {
		top: 8px;
		right: 8px;
		width: 30px;
		height: 30px;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__remove svg {
		width: 14px;
		height: 14px;
	}
}

@media (max-width: 767px) {
	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item {
		flex-basis: 148px;
		width: 148px;
		max-width: 148px;
		border-radius: var(--ms-radius-md);
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__variation {
		right: 6px;
		bottom: 6px;
		left: 6px;
		padding: 3px 6px;
		font-size: 9px;
		line-height: 1.25;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wp-block-post-title,
	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wp-block-post-title.has-medium-font-size {
		padding: 6px 8px 0;
		font-size: 11px !important;
		line-height: 1.3;
		min-height: calc(11px * 1.3);
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wp-block-post-title a {
		font-weight: 600 !important;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price,
	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price.has-small-font-size {
		padding: 4px 8px 0;
		font-size: 11px !important;
		line-height: 1.25;
		min-height: calc(11px * 1.25);
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price .woocommerce-Price-amount {
		font-weight: 700;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price del,
	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price del .woocommerce-Price-amount {
		font-size: 9px !important;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price ins .woocommerce-Price-amount {
		font-size: 11px !important;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button {
		padding: 6px 8px 8px;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button .wp-block-button__link,
	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-button .wc-block-components-product-button__button {
		min-height: 28px;
		padding: 5px 8px !important;
		font-size: 10px !important;
		border-radius: var(--ms-radius-sm) !important;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__remove {
		top: 6px;
		right: 6px;
		width: 26px;
		height: 26px;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__remove svg {
		width: 12px;
		height: 12px;
	}

	.mishtam-theme .ms-wishlist-account .ms-wishlist__empty-title {
		font-size: 1rem;
	}

	.mishtam-theme .ms-wishlist-account .ms-wishlist__empty-text {
		font-size: 0.8125rem;
	}

	.mishtam-theme .ms-wishlist-account .ms-wishlist__empty-cta {
		min-height: 38px;
		padding: 0.55rem 1.1rem;
		font-size: 13px;
	}
}

@media (max-width: 390px) {
	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item {
		flex-basis: 136px;
		width: 136px;
		max-width: 136px;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wp-block-post-title,
	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wp-block-post-title.has-medium-font-size {
		font-size: 10px !important;
		min-height: calc(10px * 1.3);
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price,
	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price.has-small-font-size,
	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item .wc-block-components-product-price ins .woocommerce-Price-amount {
		font-size: 10px !important;
	}

	.mishtam-theme .ms-wishlist-account .wc-block-shopper-list-item__variation {
		font-size: 8px;
	}
}
