/**
 * My Account page — dashboard + endpoint (orders, addresses, ...) wrapper.
 */

/* Higher specificity than products.css's `body.woocommerce-page .site-main`
   (also loaded here, for the wishlist endpoint's product grid, and after
   this file) — same specificity would let source order pick it and paint
   this white, so this stacks a second body class already present here. */
body.page-my-account.woocommerce-account .site-main {
	background-color: #f7f7f7;
}

.oten-account {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 40px;
}

/* Endpoint pages (orders, wishlist, ...) render below the header with no
   profile card above them, so they need more breathing room than the
   dashboard's default top padding. */
.oten-account--endpoint {
	padding-top: 40px;
}

/* The single-order page holds two cards side by side, so it gets a wider
   container than the other endpoint pages. */
.oten-account--wide {
	max-width: 1200px;
}

/* WooCommerce's own layout CSS floats this to sit beside the nav sidebar
   we removed; left unset, the float collapses our card's height. */
.oten-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.oten-account__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.oten-account__profile {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #fff;
	border: 1px solid #e5e5e5;
	padding: 32px 20px;
	text-align: center;
}

.oten-account__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: #efefef;
	margin-bottom: 16px;
}

.oten-account__avatar-icon {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.oten-account__phone {
	display: block;
	unicode-bidi: isolate;
	margin: 0 0 16px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--oten-ink);
}

.oten-account__complete-profile {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--oten-brand);
	background: #fff;
	padding: 10px 20px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--oten-brand);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.oten-account__complete-profile:hover,
.oten-account__complete-profile:focus-visible {
	background-color: #f7eef0;
}

.oten-account__complete-profile-icon {
	display: block;
	width: 15px;
	height: 15px;
}

.oten-account__menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.oten-account__row {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border: 1px solid #e5e5e5;
	padding: 18px 20px;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.oten-account__row:hover,
.oten-account__row:focus-visible {
	border-color: var(--oten-brand);
}

.oten-account__row--danger:hover,
.oten-account__row--danger:focus-visible {
	border-color: #e72626;
}

.oten-account__row-main {
	display: flex;
	align-items: center;
	gap: 10px;
}

.oten-account__row-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.oten-account__row-label {
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--oten-ink);
}

.oten-account__row--danger .oten-account__row-label {
	color: #e72626;
}

.oten-account__row-arrow {
	display: block;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.oten-account__empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 24px 16px;
}

.oten-account__empty-state-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: #fbe9ec;
	margin-bottom: 24px;
}

.oten-account__empty-state-icon {
	display: block;
	width: 44px;
	height: 44px;
}

.oten-account__empty-state-text {
	margin: 0 0 24px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: var(--oten-ink);
}

.oten-account__empty-state-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--oten-brand);
	padding: 13px 28px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.oten-account__empty-state-button:hover,
.oten-account__empty-state-button:focus-visible {
	background-color: var(--oten-brand-dark);
}

/**
 * Orders list — status filter tabs + order cards.
 */

/* Halve the endpoint wrapper's top padding on this page only, so the
   filter tabs sit closer to the header (20px mobile / 60px desktop). */
.oten-account--endpoint .oten-orders {
	margin-top: -20px;
}

.oten-orders__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.oten-orders__tab {
	box-sizing: border-box;
	flex: 1 1 0;
	min-width: 0;
	border: 1px solid #ddd;
	background: #fff;
	padding: 10px 6px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: var(--oten-ink);
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.oten-orders__tab:hover,
.oten-orders__tab:focus-visible {
	border-color: var(--oten-brand);
	color: var(--oten-brand);
}

.oten-orders__tab.is-active {
	border-color: var(--oten-brand);
	background: var(--oten-brand);
	color: #fff;
}

.oten-orders__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.oten-order {
	background: #fff;
	border: 1px solid #eee;
}

.oten-order__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	row-gap: 6px;
	gap: 12px;
	background: var(--oten-black);
	padding: 10px 14px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	color: #fff;
}

.oten-order__tracking {
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
}

.oten-order__status {
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
}

.oten-order__status::before {
	content: '·';
	margin-inline: 8px;
	color: rgba(255, 255, 255, 0.55);
}

.oten-order__date {
	color: #eee;
	white-space: nowrap;
}

.oten-order__body {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	padding: 14px;
}

.oten-order__label {
	margin: 0 0 10px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--oten-ink);
}

.oten-order__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oten-order__thumb {
	position: relative;
	width: 64px;
	height: 80px;
	flex-shrink: 0;
	background: #f7f7f7;
}

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

.oten-order__thumb-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.oten-order__qty {
	position: absolute;
	right: 4px;
	bottom: 4px;
	min-width: 18px;
	box-sizing: border-box;
	border: 1px solid #ddd;
	background: #fff;
	padding: 1px 5px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 11px;
	line-height: 1.5;
	color: var(--oten-ink);
	text-align: center;
}

.oten-order__side {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-end;
	gap: 12px;
	text-align: left;
}

.oten-order__total {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: var(--oten-ink);
	white-space: nowrap;
}

.oten-order__total-currency {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.oten-order__details {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--oten-brand);
	text-decoration: none;
	white-space: nowrap;
}

.oten-order__details:hover,
.oten-order__details:focus-visible {
	text-decoration: underline;
}

.oten-order__details-icon {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* Single order details — summary + factor cards. */
.oten-account--endpoint .oten-order-detail {
	margin-top: -20px;
}

.oten-order-detail {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.oten-summary__rows {
	margin: 0;
	padding: 6px 14px 10px;
}

.oten-summary__row,
.oten-factor__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 13px;
}

.oten-summary__row dt,
.oten-factor__row dt {
	margin: 0;
	font-weight: 500;
	color: var(--oten-ink);
	flex-shrink: 0;
}

.oten-summary__row dd,
.oten-factor__row dd {
	margin: 0;
	color: var(--oten-ink);
	text-align: left;
	min-width: 0;
}

.oten-summary__divider {
	border: 0;
	border-top: 1px solid #eee;
	margin: 4px 14px;
}

.oten-money {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.oten-money__currency {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.oten-factor__item {
	padding: 14px;
}

.oten-factor__item:nth-child(even) {
	background: #f7f7f7;
}

.oten-factor__item-head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}

.oten-factor__item-title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.8;
	color: var(--oten-ink);
}

.oten-factor__item-title a {
	color: inherit;
	text-decoration: none;
}

.oten-factor__item-title a:hover,
.oten-factor__item-title a:focus-visible {
	color: var(--oten-brand);
}

.oten-factor__item-thumb {
	display: block;
	width: 56px;
	height: 70px;
	flex-shrink: 0;
	background: #fff;
}

.oten-factor__item-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.oten-factor__rows {
	margin: 0;
}

.oten-factor__label-short {
	display: none;
}

@media (max-width: 767px) {
	.oten-factor__label-full {
		display: none;
	}

	.oten-factor__label-short {
		display: inline;
	}
}
@media (max-width: 400px) {
	.oten-orders__tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.oten-orders__tab {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		font-size: 12px;
		line-height: 1.6;
		padding: 10px 8px;
	}

	.oten-order__head {
		flex-wrap: wrap;
		row-gap: 6px;
		font-size: 11px;
		padding: 10px 12px;
	}

	.oten-order__body {
		grid-template-columns: 1fr;
		padding: 12px;
	}

	.oten-order__side {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.oten-order__total {
		font-size: 13px;
	}

	.oten-order__total-currency {
		width: 18px;
		height: 18px;
	}

	.oten-order__details {
		font-size: 12px;
	}

	.oten-order__thumb {
		width: 56px;
		height: 70px;
	}
}

@media (min-width: 768px) {
	.oten-account {
		padding: 64px 24px 96px;
	}

	.oten-account--endpoint {
		padding-top: 120px;
	}

	.oten-account__grid {
		grid-template-columns: 380px 1fr;
		align-items: start;
		gap: 24px;
	}

	.oten-account__profile {
		padding: 40px 24px;
	}

	.oten-account__avatar {
		width: 104px;
		height: 104px;
		margin-bottom: 20px;
	}

	.oten-account__phone {
		font-size: 17px;
	}

	.oten-account__menu {
		gap: 16px;
	}

	.oten-account__row {
		padding: 14px 28px;
	}

	.oten-account__row-label {
		font-size: 15px;
	}

	.oten-account__empty-state {
		padding: 48px 16px;
	}

	.oten-account__empty-state-icon-wrap {
		width: 132px;
		height: 132px;
		margin-bottom: 32px;
	}

	.oten-account__empty-state-icon {
		width: 58px;
		height: 58px;
	}

	.oten-account__empty-state-text {
		font-size: 17px;
	}

	.oten-account__empty-state-button {
		min-width: 320px;
		padding: 16px 32px;
		font-size: 15px;
	}

	.oten-orders__tabs {
		justify-content: flex-start;
		margin-bottom: 24px;
	}

	.oten-account--endpoint .oten-orders {
		margin-top: -60px;
	}

	.oten-account--endpoint .oten-order-detail {
		margin-top: -60px;
	}

	.oten-order-detail {
		grid-template-columns: 1fr 1fr;
		align-items: start;
		gap: 24px;
	}

	.oten-summary__rows {
		padding: 10px 20px 14px;
	}

	.oten-summary__row,
	.oten-factor__row {
		font-size: 14px;
		padding: 6px 0;
	}

	.oten-summary__divider {
		margin: 4px 20px;
	}

	.oten-money__currency {
		width: 18px;
		height: 18px;
	}

	.oten-factor__item {
		padding: 20px;
	}

	.oten-factor__item-title {
		font-size: 14px;
	}

	.oten-orders__tab {
		flex: 0 0 auto;
		padding: 10px 28px;
		font-size: 14px;
	}

	.oten-orders__list {
		gap: 24px;
	}

	.oten-order__head {
		padding: 12px 20px;
		font-size: 13px;
	}

	.oten-order__body {
		gap: 24px;
		padding: 20px 24px;
	}

	.oten-order__label {
		font-size: 15px;
		margin-bottom: 12px;
	}

	.oten-order__thumb {
		width: 100px;
		height: 125px;
	}

	.oten-order__qty {
		font-size: 12px;
	}

	.oten-order__total {
		font-size: 16px;
	}

	.oten-order__total-currency {
		width: 22px;
		height: 22px;
	}

	.oten-order__details {
		font-size: 14px;
	}
}