/* Trang tài khoản: Login / Register / My Account */

.anvogue-account-page .woocommerce {
	max-width: 1080px;
	margin: 0 auto;
}

/* ---------- Auth (login / register) ---------- */

.anvogue-auth-page .woocommerce {
	max-width: 480px;
}

.anvogue-auth-page form.login,
.anvogue-auth-page form.register,
.anvogue-auth-page form.lost_reset_password,
.anvogue-auth-page form.woocommerce-ResetPassword {
	margin: 0;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.anvogue-auth-page form .form-row {
	margin: 0 0 18px;
	padding: 0;
}

.anvogue-auth-page form .form-row label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: var(--black);
}

.anvogue-auth-page form .form-row .required {
	color: #db4915;
}

/* Woo core nhồi chữ "Required" vào label cho screen reader — ẩn đi. */
.anvogue-auth-page .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.anvogue-auth-page form .form-row input.input-text,
.anvogue-auth-page form .form-row input[type="text"],
.anvogue-auth-page form .form-row input[type="email"],
.anvogue-auth-page form .form-row input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	color: var(--black);
	transition: border-color ease 0.3s, box-shadow ease 0.3s;
}

.anvogue-auth-page form .form-row input:focus {
	border-color: var(--black);
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.08);
}

/* Remember me */
.anvogue-auth-page .woocommerce-form__label-for-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	color: var(--secondary);
	cursor: pointer;
}

.anvogue-auth-page .woocommerce-form__label-for-checkbox input {
	width: 16px;
	height: 16px;
	accent-color: var(--black);
}

/* Hàng cuối form login: remember me ở trên, nút full width ở dưới */
.anvogue-auth-page form.login .form-row:has(button[name="login"]) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	margin-bottom: 0;
}

.anvogue-auth-page .woocommerce-button,
.anvogue-auth-page .woocommerce-Button,
.anvogue-auth-page button[name="login"],
.anvogue-auth-page button[name="register"] {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid var(--black);
	border-radius: 12px;
	background: var(--black);
	color: #fff;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: background ease 0.3s, color ease 0.3s;
}

.anvogue-auth-page .woocommerce-button:hover,
.anvogue-auth-page .woocommerce-Button:hover,
.anvogue-auth-page button[name="login"]:hover,
.anvogue-auth-page button[name="register"]:hover {
	background: var(--green);
	border-color: var(--green);
	color: var(--black);
}

.anvogue-auth-page .woocommerce-LostPassword {
	margin: 16px 0 0;
	text-align: center;
	font-size: 14px;
}

.anvogue-auth-page .woocommerce-LostPassword a,
.anvogue-auth-page .woocommerce-privacy-policy-text a {
	text-decoration: underline;
}

.anvogue-auth-page .woocommerce-privacy-policy-text {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--secondary);
}

/* Đoạn mô tả đầu form quên mật khẩu */
.anvogue-auth-page form.lost_reset_password > p:first-child,
.anvogue-auth-page form.woocommerce-ResetPassword > p:first-child {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--secondary);
}

.anvogue-auth-switch {
	font-size: 15px;
}

.anvogue-auth-switch a {
	font-weight: 600;
}

/* Thông báo Woo (lỗi đăng nhập, đăng ký thành công...) */
.anvogue-account-page .woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: 1.5rem;
}

.anvogue-account-page .woocommerce-message,
.anvogue-account-page .woocommerce-error,
.anvogue-account-page .woocommerce-info {
	margin: 0 0 1rem;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	list-style: none;
	font-size: 14px;
}

.anvogue-account-page .woocommerce-error {
	border-color: #f0b8b0;
	background: #fdf1ef;
}

.anvogue-account-page .woocommerce-message {
	border-color: #b8dfb0;
	background: #f0faee;
}

/* ---------- My Account ---------- */

/* Sidebar: menu item đang active */
.anvogue-account-page .woocommerce-MyAccount-navigation .category-item.active {
	background: #fff;
}

.anvogue-account-page .avatar img {
	object-fit: cover;
}

.anvogue-account-page address {
	font-style: normal;
}

/* Cột nội dung: flex để loại bỏ anonymous line box do whitespace tạo ra (gây lệch top với sidebar) */
.anvogue-account-page .anvogue-account-main {
	display: flex;
	flex-direction: column;
}

/* Khung nội dung chính (flex để loại bỏ anonymous line box do whitespace, tránh lệch top với sidebar) */
.anvogue-account-page .woocommerce-MyAccount-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

/* Bảng recent orders / your orders: giãn cột header và cell */
.anvogue-account-page .woocommerce-MyAccount-content .recent_order table th,
.anvogue-account-page .woocommerce-MyAccount-content .recent_order table td,
.anvogue-account-page .woocommerce-MyAccount-content .anvogue-orders-table table th,
.anvogue-account-page .woocommerce-MyAccount-content .anvogue-orders-table table td {
	padding-right: 16px;
}

.anvogue-account-page .woocommerce-MyAccount-content .recent_order table th:last-child,
.anvogue-account-page .woocommerce-MyAccount-content .recent_order table td:last-child,
.anvogue-account-page .woocommerce-MyAccount-content .anvogue-orders-table table th:last-child,
.anvogue-account-page .woocommerce-MyAccount-content .anvogue-orders-table table td:last-child {
	padding-right: 0;
}

/* Bảng trong my account: bỏ kẻ dòng của dòng cuối */
.anvogue-account-page .woocommerce-MyAccount-content table tbody tr:last-child {
	border-bottom: 0;
}

.anvogue-account-page .woocommerce-MyAccount-content .product_name {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Tag trạng thái: bg-opacity-10 chỉ tác động biến tailwind, đảm bảo nền mờ */
.anvogue-account-page .tag.bg-yellow { background: rgba(236, 176, 18, 0.1); }
.anvogue-account-page .tag.bg-purple { background: rgba(139, 92, 246, 0.1); }
.anvogue-account-page .tag.bg-success { background: rgba(61, 178, 132, 0.1); }
.anvogue-account-page .tag.bg-red { background: rgba(219, 73, 21, 0.1); }
.anvogue-account-page .tag.bg-secondary { background: rgba(31, 31, 31, 0.08); }

/* Form chung trong my account (edit account, edit address) */
.anvogue-account-page .woocommerce-MyAccount-content form .form-row {
	margin: 0;
	padding: 0;
}

.anvogue-account-page .woocommerce-MyAccount-content form .form-row label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--black);
}

.anvogue-account-page .woocommerce-MyAccount-content form .form-row .required {
	color: #db4915;
}

.anvogue-account-page .woocommerce-MyAccount-content form .form-row input.input-text,
.anvogue-account-page .woocommerce-MyAccount-content form .form-row input[type="text"],
.anvogue-account-page .woocommerce-MyAccount-content form .form-row input[type="email"],
.anvogue-account-page .woocommerce-MyAccount-content form .form-row input[type="password"],
.anvogue-account-page .woocommerce-MyAccount-content form .form-row input[type="tel"],
.anvogue-account-page .woocommerce-MyAccount-content form .form-row select,
.anvogue-account-page .woocommerce-MyAccount-content form .form-row textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	color: var(--black);
	transition: border-color ease 0.3s, box-shadow ease 0.3s;
}

.anvogue-account-page .woocommerce-MyAccount-content form .form-row input:focus,
.anvogue-account-page .woocommerce-MyAccount-content form .form-row select:focus,
.anvogue-account-page .woocommerce-MyAccount-content form .form-row textarea:focus {
	border-color: var(--black);
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 31, 31, 0.08);
}

/* Nút Add/Edit address: làm rõ dạng nút */
.anvogue-account-page .anvogue-address-edit-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--black);
	border-radius: 999px;
	background: #fff;
	color: var(--black);
	font-size: 13px;
	font-weight: 600;
	transition: background ease 0.3s, color ease 0.3s;
}

.anvogue-account-page .anvogue-address-edit-btn:hover {
	background: var(--black);
	color: #fff;
}

/* Select2 của Woo (chọn country/state) */
.anvogue-account-page .select2-container .select2-selection--single {
	height: 48px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.anvogue-account-page .select2-container .select2-selection__arrow {
	height: 46px;
}

.anvogue-account-page .select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--black);
}

/* Nút bấm trong my account */
.anvogue-account-page .woocommerce-MyAccount-content .woocommerce-Button,
.anvogue-account-page .woocommerce-MyAccount-content .woocommerce-button,
.anvogue-account-page .woocommerce-MyAccount-content button.button,
.anvogue-account-page .woocommerce-MyAccount-content a.button,
.anvogue-account-page .woocommerce-MyAccount-content .button-main {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid var(--black);
	border-radius: 12px;
	background: var(--black);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: background ease 0.3s, color ease 0.3s;
}

.anvogue-account-page .woocommerce-MyAccount-content .woocommerce-Button:hover,
.anvogue-account-page .woocommerce-MyAccount-content .woocommerce-button:hover,
.anvogue-account-page .woocommerce-MyAccount-content button.button:hover,
.anvogue-account-page .woocommerce-MyAccount-content a.button:hover,
.anvogue-account-page .woocommerce-MyAccount-content .button-main:hover {
	background: var(--green);
	border-color: var(--green);
	color: var(--black);
}

/* Form edit address mặc định của Woo: xếp 2 cột */
.anvogue-account-page .woocommerce-address-fields {
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px;
}

.anvogue-account-page .woocommerce-address-fields .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

.anvogue-account-page .woocommerce-address-fields .form-row.form-row-wide {
	grid-column: 1 / -1;
}

.anvogue-account-page .woocommerce-address-fields .button {
	margin-top: 20px;
}

/* Trang xem chi tiết đơn hàng */
.anvogue-account-page .woocommerce-order-details,
.anvogue-account-page .woocommerce-customer-details {
	margin-top: 24px;
}

.anvogue-account-page .woocommerce-order-details__title,
.anvogue-account-page .woocommerce-column__title,
.anvogue-account-page .woocommerce-order-downloads__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 600;
}

.anvogue-account-page .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.anvogue-account-page .woocommerce-MyAccount-content table.shop_table th,
.anvogue-account-page .woocommerce-MyAccount-content table.shop_table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-size: 15px;
}

.anvogue-account-page .woocommerce-MyAccount-content table.shop_table tbody tr:last-child th,
.anvogue-account-page .woocommerce-MyAccount-content table.shop_table tbody tr:last-child td,
.anvogue-account-page .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child th,
.anvogue-account-page .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child td {
	border-bottom: 0;
}

.anvogue-account-page .woocommerce-MyAccount-content a {
	text-decoration: none;
}

.anvogue-account-page .woocommerce-MyAccount-content p {
	margin-bottom: 1rem;
}

/* Downloads / payment methods: card rỗng gọn gàng */
.anvogue-account-page .woocommerce-Message.woocommerce-Message--info {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px 20px;
	background: #fff;
	font-size: 15px;
}

.anvogue-account-page .woocommerce-Message .woocommerce-Button,
.anvogue-account-page .woocommerce-Message .button {
	margin-left: 12px;
}

/* Dọn clearfix cũ */
.anvogue-account-page::after,
.anvogue-account-page .woocommerce::after {
	display: table;
	clear: both;
	content: "";
}

@media (max-width: 767.98px) {
	.anvogue-auth-page form.login,
	.anvogue-auth-page form.register,
	.anvogue-auth-page form.lost_reset_password,
	.anvogue-auth-page form.woocommerce-ResetPassword {
		padding: 20px;
	}

	.anvogue-account-page .u-columns {
		grid-template-columns: 1fr;
	}

	.anvogue-account-page .woocommerce-address-fields {
		padding: 20px;
	}

	.anvogue-account-page .woocommerce-address-fields .woocommerce-address-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	.anvogue-account-page .anvogue-addresses,
	.anvogue-account-page .anvogue-edit-account {
		padding: 20px;
	}
}
