/* ======================================================
   WooCommerce My Account
====================================================== */

body.woocommerce-account {
	background: linear-gradient(
		135deg,
		#fff5f8 0%,
		#ffffff 52%,
		#f3f5ff 100%
	);
}

/* Page width */

body.woocommerce-account .site-main {
	width: min(1180px, calc(100% - 60px));
	min-height: 650px;
	margin-inline: auto;
	padding: 55px 0 110px;
	box-sizing: border-box;
}

/* Page title */

body.woocommerce-account .entry-title {
	margin: 0 0 30px;
	color: #171b32;
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.1;
}

/* Clear WooCommerce floats */

body.woocommerce-account .woocommerce::after {
	display: table;
	clear: both;
	content: "";
}

/* ======================================================
   Left navigation
====================================================== */

body.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 24%;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 16px;
	border: 1px solid #e2e6f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 14px 40px rgba(31, 44, 99, 0.08);
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li::marker {
	content: "";
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	min-height: 45px;
	padding: 10px 14px;
	align-items: center;
	border-radius: 11px;
	color: #24377f;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account
.woocommerce-MyAccount-navigation
.is-active a {
	color: #ffffff;
	background: linear-gradient(
		90deg,
		#ef3f81,
		#7657d6
	);
}

body.woocommerce-account
.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e5e8ef;
}

body.woocommerce-account
.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #c62828;
}

body.woocommerce-account
.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	color: #ffffff;
	background: #c62828;
}

/* ======================================================
   Right account content
====================================================== */

body.woocommerce-account .woocommerce-MyAccount-content {
	width: 72%;
	min-height: 420px;
	padding: 28px;
	box-sizing: border-box;
	border: 1px solid #e2e6f0;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 14px 40px rgba(31, 44, 99, 0.08);
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
	margin-top: 0;
	color: #171b32;
}

body.woocommerce-account .woocommerce-MyAccount-content p {
	color: #5f6880;
	font-size: 15px;
	line-height: 1.7;
}

/* ======================================================
   Buttons
====================================================== */

body.woocommerce-account .button,
body.woocommerce-account button.button {
	display: inline-flex;
	min-height: 40px;
	margin: 3px;
	padding: 9px 16px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	color: #ffffff !important;
	background: #24377f;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		transform 0.2s ease;
}

body.woocommerce-account .button:hover,
body.woocommerce-account button.button:hover {
	transform: translateY(-1px);
	color: #ffffff !important;
	background: #ed417f;
}

body.woocommerce-account .button.pay {
	background: #ed417f;
}

body.woocommerce-account .button.cancel {
	background: #c62828;
}

/* ======================================================
   Orders table
====================================================== */

body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce-table {
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid #e3e6ee;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
}

body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-table th {
	padding: 14px;
	border: 0;
	border-bottom: 1px solid #e3e6ee;
	color: #171b32;
	background: #f7f8fc;
	font-size: 12px;
	font-weight: 700;
	text-align: left;
}

body.woocommerce-account .woocommerce-orders-table td,
body.woocommerce-account .woocommerce-table td {
	padding: 14px;
	border: 0;
	border-bottom: 1px solid #edf0f5;
	color: #51596f;
	font-size: 14px;
	vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table tr:last-child td,
body.woocommerce-account .woocommerce-table tr:last-child td {
	border-bottom: 0;
}

/* ======================================================
   Addresses
====================================================== */

body.woocommerce-account .woocommerce-Addresses {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 18px;
	width: 100% !important;
	margin: 24px 0 0 !important;
}

/* Remove WooCommerce column widths and floats */

body.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
body.woocommerce-account .woocommerce-Addresses .u-column1,
body.woocommerce-account .woocommerce-Addresses .u-column2,
body.woocommerce-account .woocommerce-Addresses .col-1,
body.woocommerce-account .woocommerce-Addresses .col-2 {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 24px !important;
	box-sizing: border-box;
	border: 1px solid #e3e6ee;
	border-radius: 16px;
	background: #fafbff;
}

/* Address heading */

body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	width: 100%;
	margin: 0 0 18px;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

body.woocommerce-account .woocommerce-Address-title::before,
body.woocommerce-account .woocommerce-Address-title::after {
	display: none !important;
	content: none !important;
}

body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0;
	color: #171b32;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

/* Address edit buttons */

body.woocommerce-account .woocommerce-Address-title a {
	display: inline-flex;
	flex-shrink: 0;
	min-height: 42px;
	padding: 10px 18px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: #ffffff !important;
	background: #ed417f;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

body.woocommerce-account .woocommerce-Address-title a:hover {
	color: #ffffff !important;
	background: #d92c6b;
}

/* Address text */

body.woocommerce-account .woocommerce-Address address {
	margin: 0;
	color: #59627a;
	font-size: 15px;
	font-style: normal;
	line-height: 1.75;
}

/* ======================================================
   Forms
====================================================== */

body.woocommerce-account .woocommerce-form-row {
	margin-bottom: 16px;
}

body.woocommerce-account label {
	display: block;
	margin-bottom: 7px;
	color: #2d3348;
	font-size: 13px;
	font-weight: 700;
}

body.woocommerce-account .input-text,
body.woocommerce-account select,
body.woocommerce-account textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 15px;
	box-sizing: border-box;
	border: 1px solid #dce1ec;
	border-radius: 12px;
	color: #171b32;
	background: #ffffff;
	font: inherit;
	font-size: 15px;
}

body.woocommerce-account textarea {
	min-height: 110px;
	resize: vertical;
}

body.woocommerce-account .input-text:focus,
body.woocommerce-account select:focus,
body.woocommerce-account textarea:focus {
	border-color: #7657d6;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(118, 87, 214, 0.12);
}

body.woocommerce-account fieldset {
	margin: 22px 0;
	padding: 20px;
	border: 1px solid #e3e6ee;
	border-radius: 14px;
}

body.woocommerce-account legend {
	padding: 0 8px;
	color: #171b32;
	font-weight: 700;
}

/* ======================================================
   Empty states and notices
====================================================== */

body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error {
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid #dfe3ed;
	border-radius: 14px;
	color: #51596f;
	background: #f8f9fd;
	list-style: none;
}

body.woocommerce-account .woocommerce-info::before {
	display: none;
}

/* ======================================================
   Tablet and mobile
====================================================== */

@media (max-width: 768px) {
	body.woocommerce-account .site-main {
		width: calc(100% - 30px);
		padding: 35px 0 110px;
	}

	body.woocommerce-account .entry-title {
		font-size: 32px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation,
	body.woocommerce-account .woocommerce-MyAccount-content {
		float: none !important;
		width: 100% !important;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 18px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 8px;
		padding: 11px;
		overflow-x: auto;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation a {
		white-space: nowrap;
	}

	body.woocommerce-account .woocommerce-MyAccount-content {
		min-height: 300px;
		padding: 18px;
	}

	body.woocommerce-account .woocommerce-Addresses {
		gap: 15px;
	}

	body.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
	body.woocommerce-account .woocommerce-Addresses .u-column1,
	body.woocommerce-account .woocommerce-Addresses .u-column2,
	body.woocommerce-account .woocommerce-Addresses .col-1,
	body.woocommerce-account .woocommerce-Addresses .col-2 {
		padding: 18px !important;
	}

	body.woocommerce-account .woocommerce-Address-title {
		flex-direction: column;
		align-items: flex-start;
	}

	body.woocommerce-account .woocommerce-Address-title a {
		width: 100%;
		box-sizing: border-box;
	}
}

/* ======================================================
   Reduced motion
====================================================== */

@media (prefers-reduced-motion: reduce) {
	body.woocommerce-account .button,
	body.woocommerce-account
	.woocommerce-MyAccount-navigation a {
		transition: none;
	}
}