/* =========================================================================
   Shayan AI Chat — My Account polish (login / registration / dashboard)
   Light, non-invasive: the Shayan Mobile Pro theme already renders the
   login/register tabs and the profile card. These rules only normalize
   forms and tables in case the theme is replaced or overridden.
   ========================================================================= */

.woocommerce-account .woocommerce {
	max-width: 100%;
}

/* ---- Login / Register forms ---- */
.woocommerce-account form.login,
.woocommerce-account form.register,
.woocommerce-form-login,
.woocommerce-form-register {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 22px 20px;
	max-width: 100%;
	box-sizing: border-box;
}

.woocommerce-account form.login input[type="text"],
.woocommerce-account form.login input[type="password"],
.woocommerce-account form.login input[type="email"],
.woocommerce-account form.register input[type="text"],
.woocommerce-account form.register input[type="password"],
.woocommerce-account form.register input[type="email"] {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #d9dde3;
	border-radius: 10px;
	background: #f8faf9;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce-account form.login input:focus,
.woocommerce-account form.register input:focus {
	outline: none;
	border-color: #0d9488;
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.13);
	background: #fff;
}

.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit {
	width: 100% !important;
	min-height: 48px;
	border: 0;
	border-radius: 12px;
	background: #0d9488 !important;
	color: #fff !important;
	font-weight: 800;
	font-family: inherit;
	font-size: 15px;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.woocommerce-account .woocommerce-form-login__submit:hover,
.woocommerce-account .woocommerce-form-register__submit:hover {
	filter: brightness(1.08);
}

.woocommerce-account .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0;
}

.woocommerce-account .woocommerce-LostPassword {
	text-align: center;
	margin-top: 10px;
}

/* Two-column login/register wrapper (classic WC u-columns) */
.woocommerce-account .u-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

.woocommerce-account .u-columns > div {
	flex: 1 1 320px;
	min-width: 0;
}

/* ---- Account navigation ---- */
.woocommerce-MyAccount-navigation {
	float: none !important;
	width: auto !important;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.woocommerce-MyAccount-navigation li a {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e5e7eb;
	color: #111827;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.15s ease;
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
	background: #0d9488;
	border-color: #0d9488;
	color: #fff;
}

.woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
}

/* ---- Orders / addresses tables ---- */
.woocommerce-account table.shop_table,
.woocommerce-account table.my_account_orders,
.woocommerce-account table.woocommerce-table--order-downloads {
	width: 100% !important;
	max-width: 100% !important;
	border-collapse: collapse;
}

/* ---- Mobile ---- */
@media screen and (max-width: 768px) {
	.woocommerce-account .u-columns {
		flex-direction: column;
	}

	.woocommerce-MyAccount-navigation ul {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce-MyAccount-navigation li {
		flex: none;
	}
}
