/**
 * Account screens wearing the checkout's card.
 *
 * The fields themselves are styled by bizsiz-forms.css, the sheet the
 * checkout shares. This file only lays out the account cards: the
 * login/register card with its tab strip, and the dashboard panels.
 */

/* ---------- the login / register card ---------- */

.woocommerce-account .woocommerce #customer_login.wcsms-auth-ui-tabbed {
	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	margin: 0 auto 1.3rem;
	padding: 0;
	border: 1px solid rgba(61, 71, 55, 0.13);
	border-radius: 22px;
	background: #fffdf8;
	box-shadow: 0 24px 48px -34px rgba(61, 71, 55, 0.55);
	direction: rtl;
	overflow: hidden;
}

/* Header strip: the tab bar sits on a tinted band, like the checkout card. */
.woocommerce-account .woocommerce #customer_login .wcsms-auth-ui-tabs {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.8rem 1.1rem;
	border-bottom: 1px solid rgba(61, 71, 55, 0.09);
	background: rgba(244, 235, 220, 0.66);
}

.woocommerce-account .woocommerce #customer_login .wcsms-auth-ui-tabs__bar {
	max-width: 320px;
	margin-inline: auto;
	padding: 4px;
	border: 1px solid rgba(61, 71, 55, 0.1);
	border-radius: 999px;
	background: #fffdf8;
	box-shadow: inset 0 1px 3px rgba(61, 71, 55, 0.08);
}

.woocommerce-account .woocommerce #customer_login .wcsms-auth-ui-tabs__tab {
	min-height: 42px;
	color: #6c6055;
	font-size: 0.95rem;
	font-weight: 700;
}

.woocommerce-account .woocommerce #customer_login .wcsms-auth-ui-tabs__tab.is-active {
	background: #9d4f39;
	color: #fff;
	box-shadow: 0 4px 14px rgba(157, 79, 57, 0.3);
}

/* The panels inside the card no longer need their own column metrics. */
.woocommerce-account .woocommerce #customer_login .u-column1,
.woocommerce-account .woocommerce #customer_login .u-column2 {
	width: 100% !important;
	max-width: none;
	margin: 0;
	padding: 1.15rem 1.1rem 1.25rem;
}

.woocommerce-account .woocommerce #customer_login .woocommerce-form-login,
.woocommerce-account .woocommerce #customer_login .woocommerce-form-register {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* Secondary switch: پیامک / ایمیل stays quieter than the primary tabs. */
.woocommerce-account .woocommerce #customer_login .wcsms-auth-ui-switch {
	max-width: 300px;
	margin: 0 auto 0.9rem;
	padding: 4px;
	border: 1px solid rgba(61, 71, 55, 0.1);
	border-radius: 999px;
	background: #fffdf8;
	box-shadow: inset 0 1px 3px rgba(61, 71, 55, 0.08);
}

.woocommerce-account .woocommerce #customer_login .wcsms-auth-ui-switch__btn {
	min-height: 40px;
	color: #6c6055;
	font-size: 0.9rem;
	font-weight: 700;
}

.woocommerce-account .woocommerce #customer_login .wcsms-auth-ui-switch__btn.is-active {
	background: #3d4737;
	color: #fff;
	box-shadow: 0 4px 14px rgba(61, 71, 55, 0.28);
}

.woocommerce-account .woocommerce #customer_login .wcsms-auth-ui-helpbar {
	margin: 0 0 1rem;
}

/* The one-time-code panel is a sub-panel of the card, not a second box. */
.woocommerce-account .woocommerce #customer_login .wcsmspro-auth {
	box-sizing: border-box;
	margin: 0.2rem 0 0;
	padding: 1rem;
	border: 1px solid rgba(61, 71, 55, 0.1);
	border-radius: 18px;
	background: rgba(244, 235, 220, 0.5);
}

/* ---------- the standalone password forms ---------- */

/* Lost-password and reset-password have no tabs, so the card is theirs alone. */
.woocommerce-account .woocommerce form.woocommerce-ResetPassword {
	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	margin: 0 auto 1.3rem;
	padding: 1.2rem 1.3rem 1.4rem;
	border: 1px solid rgba(61, 71, 55, 0.13);
	border-radius: 22px;
	background: #fffdf8;
	box-shadow: 0 24px 48px -34px rgba(61, 71, 55, 0.55);
	direction: rtl;
}

/* ---------- the dashboard ---------- */

/* Only the screens with the side navigation are laid out as two columns. */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.3rem;
	direction: rtl;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	box-sizing: border-box;
	margin: 0 0 1.3rem;
	padding: 0;
	border: 1px solid rgba(61, 71, 55, 0.13);
	border-radius: 22px;
	background: #fffdf8;
	box-shadow: 0 24px 48px -34px rgba(61, 71, 55, 0.55);
	direction: rtl;
	overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	flex: 0 0 250px;
	padding: 0.85rem;
}

.woocommerce-account .woocommerce-MyAccount-content {
	flex: 1 1 420px;
	padding: 1.2rem 1.3rem 1.4rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* WooCommerce pads each nav row by an em; the card only needs a hairline gap. */
.woocommerce-account .woocommerce-MyAccount-navigation li {
	list-style: none;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li + li {
	margin-top: 0.2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: 12px;
	color: #6c6055;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: rgba(244, 235, 220, 0.8);
	color: #3d4737;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: rgba(157, 79, 57, 0.1);
	color: #8a4530;
}

.woocommerce-account .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-Addresses .title h3 {
	margin: 0 0 0.8rem;
	color: #3d4737;
	font-size: 1.05rem;
	font-weight: 700;
}

.woocommerce-account table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	font-size: 0.9rem;
}

.woocommerce-account table.shop_table th {
	padding: 0.55rem 0.6rem;
	border-bottom: 1px solid rgba(61, 71, 55, 0.16);
	color: #6c6055;
	font-weight: 700;
	text-align: right;
}

.woocommerce-account table.shop_table td {
	padding: 0.65rem 0.6rem;
	border-bottom: 1px solid rgba(61, 71, 55, 0.08);
}

.woocommerce-account .woocommerce-Addresses {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.woocommerce-account .woocommerce-Address {
	box-sizing: border-box;
	flex: 1 1 280px;
	width: auto;
	margin: 0;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(61, 71, 55, 0.12);
	border-radius: 18px;
	background: rgba(244, 235, 220, 0.45);
}

.woocommerce-account .woocommerce-Address .title {
	display: block;
	margin: 0 0 0.7rem;
	padding: 0;
	border: 0;
}

.woocommerce-account .woocommerce-Address h3 {
	margin: 0 0 0.5rem;
	color: #3d4737;
	font-size: 0.95rem;
}

/* ---------- narrow screens ---------- */

@media (max-width: 782px) {
	.woocommerce-account .woocommerce #customer_login.wcsms-auth-ui-tabbed,
	.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
	.woocommerce-account .woocommerce-MyAccount-content,
	.woocommerce-account .woocommerce-MyAccount-navigation {
		border-radius: 18px;
	}

	.woocommerce-account .woocommerce #customer_login .wcsms-auth-ui-tabs {
		padding: 0.7rem 0.85rem;
	}

	.woocommerce-account .woocommerce #customer_login .u-column1,
	.woocommerce-account .woocommerce #customer_login .u-column2 {
		padding: 0.95rem 0.85rem 1.05rem;
	}

	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		flex-direction: column;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		flex: 1 1 auto;
		width: 100%;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		flex: 1 1 auto;
		width: 100%;
		padding: 1rem;
	}
}
