/**
 * Ofcore My Account redesign.
 */

.ofcore-account {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 40px;
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

.ofcore-account-sidebar {
	border-right: 1px solid #eee;
	padding-right: 20px;
}

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

.woocommerce-MyAccount-navigation li {
	margin-bottom: 4px;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 12px 16px;
	text-decoration: none;
	color: #746c63;
	border-radius: 6px;
	font-size: 14px;
	transition: background 0.15s, color 0.15s;
}

.woocommerce-MyAccount-navigation a:hover {
	background: #f9f6f1;
	color: #1b1815;
}

.woocommerce-MyAccount-navigation .is-active a {
	background: #1b1815;
	color: #fff;
}

.ofcore-account-welcome h2 {
	margin: 0 0 8px;
	font-size: 24px;
	color: #1b1815;
}

.ofcore-account-welcome p {
	margin: 0 0 8px;
	color: #746c63;
	font-size: 14px;
}

.ofcore-account-welcome a {
	color: #ae895c;
}

.ofcore-account-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.ofcore-account-card {
	background: #f9f6f1;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
}

.ofcore-account-card-num {
	display: block;
	font-size: 32px;
	font-weight: 700;
	color: #1b1815;
}

.ofcore-account-card-label {
	display: block;
	font-size: 12px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 4px 0 8px;
}

.ofcore-account-card a {
	font-size: 12px;
	color: #ae895c;
	text-decoration: none;
}

.ofcore-account-card a:hover {
	text-decoration: underline;
}

.ofcore-order-card {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	background: #fff;
}

.ofcore-order-card-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	min-width: 0;
}

.ofcore-order-card-num a {
	color: #1b1815;
	text-decoration: none;
	font-size: 15px;
}

.ofcore-order-card-date {
	font-size: 13px;
	color: #999;
}

.ofcore-order-status {
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #e9f0eb;
	color: #52705c;
}

.ofcore-order-card-total {
	font-size: 13px;
	color: #1b1815;
	font-weight: 600;
}

.ofcore-order-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ofcore-order-action {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	background: #f5f5f5;
	color: #1b1815;
}

.ofcore-order-action--view {
	background: #1b1815;
	color: #fff;
}

.ofcore-order-action--track {
	background: #ae895c;
	color: #fff;
}

.ofcore-order-action:hover {
	opacity: 0.9;
	color: inherit;
}

.ofcore-order-action--view:hover,
.ofcore-order-action--track:hover {
	color: #fff;
}

.ofcore-orders-pagination {
	margin-top: 20px;
	display: flex;
	gap: 12px;
}

.ofcore-account-auth {
	max-width: 900px;
	margin: 40px auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding: 0 20px;
}

.ofcore-account-auth h2 {
	margin: 0 0 20px;
	font-size: 22px;
	color: #1b1815;
}

.ofcore-account-auth .woocommerce-form-row label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
	color: #555;
}

.ofcore-account-auth .woocommerce-Input,
.ofcore-account-auth input.input-text {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

.ofcore-account-auth .button,
.ofcore-account-auth button[type="submit"] {
	background: #1b1815;
	color: #fff;
	border: none;
	padding: 12px 20px;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 8px;
}

.ofcore-account-auth .button:hover,
.ofcore-account-auth button[type="submit"]:hover {
	background: #ae895c;
}

.ofcore-account-auth .lost_password a {
	color: #ae895c;
	font-size: 13px;
}

/* Forms inside account content */
.ofcore-account-content .woocommerce-Input,
.ofcore-account-content input.input-text,
.ofcore-account-content select,
.ofcore-account-content textarea {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px 12px;
}

.ofcore-account-content .button {
	background: #1b1815;
	color: #fff;
	border-radius: 4px;
}

@media (max-width: 768px) {
	.ofcore-account {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ofcore-account-sidebar {
		border-right: none;
		border-bottom: 1px solid #eee;
		padding-right: 0;
		padding-bottom: 16px;
		margin-bottom: 4px;
	}

	.woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	.woocommerce-MyAccount-navigation li {
		margin: 0;
	}

	.woocommerce-MyAccount-navigation a {
		padding: 10px 12px;
		font-size: 13px;
	}

	.ofcore-account-auth {
		grid-template-columns: 1fr;
	}
}
