/* "My account" page title visibility is controlled via admin settings (class-myacst-assets.php) */

.myacst-account-nav {
	margin-bottom: 24px;
}

.myacst-account-nav-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.myacst-account-nav-item a {
	display: block;
	padding: 12px 14px;
	background: #f5f7fa;
	border-radius: 8px;
	text-decoration: none;
	color: #1a1a1a;
	font-weight: 500;
	transition:
	background 0.2s ease,
	transform 0.1s ease;
}

.myacst-account-nav-item.is-active a,
.myacst-account-nav-item a:hover {
	background: #3a7afe;
	color: #ffffff;
	transform: translateY(-1px);
}

.myacst-dashboard {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.myacst-dashboard-card {
	background: #ffffff;
	border-radius: 10px;
	padding: 18px 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.myacst-dashboard-title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
}

.myacst-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.myacst-dashboard-stat {
	background: #f5f7fa;
	border-radius: 8px;
	padding: 10px 12px;
}

.myacst-stat-label {
	display: block;
	font-size: 12px;
	color: #666;
	margin-bottom: 4px;
}

.myacst-stat-value {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
}

.myacst-recent-orders {
	list-style: none;
	padding: 0;
	margin: 0;
}

.myacst-recent-order-item {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.myacst-recent-order-item:last-child {
	border-bottom: none;
}

.myacst-recent-order-item a {
	text-decoration: none;
	color: #1a1a1a;
	font-size: 14px;
}

.myacst-recent-order-item a .status {
	color: #3a7afe;
	font-weight: 500;
}

.myacst-recent-order-item a .total {
	font-weight: 500;
}

.myacst-quick-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.myacst-quick-links li {
	margin-bottom: 6px;
}

.myacst-quick-links a {
	text-decoration: none;
	color: #3a7afe;
	font-weight: 500;
}

.myacst-support-link {
	display: inline-block;
	margin-top: 8px;
	padding: 8px 14px;
	background: #3a7afe;
	color: #ffffff;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
}

@media (min-width: 900px) {
	.myacst-dashboard {
	grid-template-columns: 2fr 1fr;
	}

	.myacst-dashboard-card:nth-child(1) {
	grid-column: 1 / -1;
	}
}

/* Make navigation stick to the left */
.myacst-account-nav {
	position: sticky;
	top: 20px;
	align-self: start;
}

.myacst-welcome-title {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 20px;
	margin-top: 0;
	color: #1a1a1a;
}

/* Expand WooCommerce My Account content area */
.woocommerce-account .woocommerce-MyAccount-content {
	max-width: 100%;
	width: 100%;
}

.myacst-account-nav-subtext {
	display: block;
	font-size: 11px;
	color: #666;
	margin-top: 2px;
}

/* Icon base */
.myacst-nav-icon {
	display: inline-block;
	vertical-align: middle;
	object-fit: contain;
}

/* Only dashicons get the dashicons font */
.myacst-nav-icon.dashicons {
	font-family: dashicons;
}

/* Image icons */
.myacst-nav-icon-image {
	display: inline-block;
	width: auto;
	height: auto;
	object-fit: contain;
}

.myacst-nav-icon {
	margin-right: 10px;
}

.woocommerce-account .woocommerce-MyAccount-content {
	padding: 24px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* MyAccount Studio layout override */
.woocommerce-account .myacst-account-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

/* Navigation column */
.woocommerce-account .myacst-account-nav {
	width: 260px;
	flex-shrink: 0;
}

/* Content column */
.woocommerce-account .woocommerce-MyAccount-content {
	flex: 1;
}

@media (max-width: 768px) {
	.woocommerce-account .myacst-account-layout {
	flex-direction: column;
	}

	.woocommerce-account .myacst-account-nav {
	width: 100%;
	}
}
