/* Scoped to WooCommerce account pages; keep the rest of the theme untouched. */
body.woocommerce-account {
	--kas-account-ink: #24364b;
	--kas-account-muted: #718096;
	--kas-account-border: #e3e9f0;
	--kas-account-accent: #ffcc00;
	--kas-account-soft: #f5f7fa;
	background: var(--kas-account-soft);
}

body.woocommerce-account .main-wrapper.container-fluid {
	min-height: 70vh;
	background: var(--kas-account-soft);
}

body.woocommerce-account .container-page {
	max-width: 1200px;
	padding-top: 112px;
	padding-bottom: 64px;
}

body.woocommerce-account .blog-post {
	margin: 0;
	padding: clamp(22px, 4vw, 42px);
	border: 1px solid var(--kas-account-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(36, 54, 75, 0.07);
}

body.woocommerce-account .blog-post-title {
	margin: 0 0 28px;
	color: var(--kas-account-ink);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.2;
}

body.woocommerce-account .blog-post-meta,
body.woocommerce-account .entry > p.blog-post-meta {
	display: none;
}

body.woocommerce-account .entry {
	margin: 0;
	padding: 0;
}

body.woocommerce-account .woocommerce {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none;
	flex: 0 0 238px;
	width: 238px;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--kas-account-border);
	border-radius: 14px;
	background: #f9fafc;
}

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

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li + li {
	margin-top: 3px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 11px 13px;
	border-radius: 9px;
	color: var(--kas-account-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: #fff2b8;
	color: #18283a;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	box-shadow: inset 3px 0 0 #e5ad00;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--kas-account-border);
	border-radius: 14px;
	background: #fff;
}

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

body.woocommerce-account .woocommerce-MyAccount-content > :last-child {
	margin-bottom: 0;
}

body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error {
	position: relative;
	margin: 0 0 14px;
	padding: 16px 18px 16px 48px;
	border: 1px solid #f0e3ad;
	border-left: 4px solid #e5ad00;
	border-radius: 10px;
	background: #fffaf0;
	color: var(--kas-account-ink);
	font-size: 15px;
	line-height: 1.55;
}

body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-error::before {
	left: 17px;
	color: #a77900;
}

body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce > .button,
body.woocommerce-account .woocommerce form .button {
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid #e5b800;
	border-radius: 8px;
	background: var(--kas-account-accent);
	color: #202a36;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	text-shadow: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce > .button:hover,
body.woocommerce-account .woocommerce form .button:hover {
	border-color: #d6a900;
	background: #f2bd00;
	color: #172536;
}

body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	margin: 0;
	border: 1px solid var(--kas-account-border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 10px;
	overflow: hidden;
}

body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
	padding: 13px 14px;
	border: 0;
	background: #f3f6f9;
	color: var(--kas-account-ink);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.035em;
}

body.woocommerce-account .woocommerce-orders-table td,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
	padding: 14px;
	border: 0;
	border-top: 1px solid var(--kas-account-border);
	vertical-align: middle;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
	color: #1764a0;
	font-weight: 600;
}

body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register {
	max-width: 560px;
	margin: 0 auto;
	padding: 24px;
	border: 1px solid var(--kas-account-border);
	border-radius: 14px;
	background: #fff;
}

body.woocommerce-account .woocommerce form .input-text {
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #cfd8e3;
	border-radius: 7px;
	box-shadow: none;
}

body.woocommerce-account .woocommerce form .input-text:focus {
	border-color: #7aa7c9;
	box-shadow: 0 0 0 3px rgba(23, 100, 160, 0.12);
	outline: 0;
}

@media (max-width: 767px) {
	body.woocommerce-account .container-page {
		padding: 94px 15px 36px;
	}

	body.woocommerce-account .blog-post {
		padding: 22px 16px;
		border-radius: 13px;
	}

	body.woocommerce-account .blog-post-title {
		margin-bottom: 20px;
	}

	body.woocommerce-account .woocommerce {
		flex-direction: column;
		gap: 16px;
	}

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

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li + li {
		margin-top: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation a {
		padding: 10px;
		font-size: 14px;
	}

	body.woocommerce-account .woocommerce-MyAccount-content {
		width: 100%;
		padding: 17px 14px;
	}

	body.woocommerce-account .woocommerce-orders-table,
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
		font-size: 13px;
	}

	body.woocommerce-account .woocommerce-orders-table th,
	body.woocommerce-account .woocommerce-orders-table td,
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
	body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
		padding: 10px 8px;
	}

	body.woocommerce-account .woocommerce-info,
	body.woocommerce-account .woocommerce-message,
	body.woocommerce-account .woocommerce-error {
		padding: 14px 12px 14px 40px;
	}
}
