/**
 * My Account, login, track-order, and thank-you — cream, tan, and gold.
 */

body.am-account-page,
body.am-track-order,
body.am-order-received,
body.woocommerce-account,
body.woocommerce-order-received {
	background: var(--am-cream, #fdf8f0);
}

body.am-account-page .am-full-width,
body.am-track-order .am-full-width,
body.am-order-received .am-full-width,
body.woocommerce-account .am-full-width {
	padding-top: 1.75rem;
	padding-bottom: 4rem;
}

body.am-account-page .page-content,
body.am-track-order .page-content,
body.woocommerce-account .page-content,
body.woocommerce-account .entry-content {
	color: var(--am-ink, #2c2c2c);
}

body.am-account-page .page-content a,
body.woocommerce-account .page-content a,
body.woocommerce-account .entry-content a {
	text-decoration: none;
}

.am-account-page__head {
	margin: 0 0 1.75rem;
}

body.woocommerce-account .woocommerce > .am-account-page__head,
body.am-account-page .woocommerce > .am-account-page__head {
	grid-column: 1 / -1;
}

.am-account-page__title {
	margin: 0;
	font-family: var(--am-heading, "DM Serif Display", Georgia, serif);
	font-size: clamp(2.15rem, 4vw, 3rem);
	font-weight: 400;
	line-height: 1.15;
	color: var(--am-ink, #2c2c2c);
}

body.am-track-order .am-account-page__head {
	text-align: center;
}

body.am-track-order .am-account-page__title {
	text-align: center;
}

/* Layout */

body.woocommerce-account .woocommerce,
body.am-account-page .woocommerce {
	display: grid;
	grid-template-columns: 16.5rem minmax(0, 1fr);
	gap: 1.5rem 1.75rem;
	align-items: start;
}

body.woocommerce-account .woocommerce::before,
body.woocommerce-account .woocommerce::after,
body.am-account-page .woocommerce::before,
body.am-account-page .woocommerce::after {
	display: none;
}

body.woocommerce-account:not(.logged-in) .woocommerce,
body.am-account-page:not(.logged-in) .woocommerce {
	display: block;
	max-width: 52rem;
	margin: 0 auto;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
}

/* Navigation */

body.woocommerce-account .woocommerce-MyAccount-navigation {
	padding: 0.7rem;
	border-radius: 1.15rem;
	background: var(--am-white, #fff);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	color: var(--am-ink, #2c2c2c);
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: #f7f0e6;
	color: var(--am-ink, #2c2c2c);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a:hover {
	background: var(--am-tan, #cba98a);
	color: var(--am-white, #fff);
}

/* Content card */

body.woocommerce-account .woocommerce-MyAccount-content {
	min-width: 0;
	padding: 1.7rem 1.8rem 1.85rem;
	border-radius: 1.15rem;
	background: var(--am-white, #fff);
	color: var(--am-muted, #6b6560);
	font-size: 0.98rem;
	line-height: 1.7;
}

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-MyAccount-content p {
	margin: 0 0 1.1rem;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button) {
	color: var(--am-ink, #2c2c2c);
	text-decoration: underline;
	text-decoration-color: var(--am-cream-deep, #f0e4d1);
	text-underline-offset: 3px;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):hover {
	color: var(--am-gold, #d4a843);
	text-decoration-color: var(--am-gold, #d4a843);
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account #customer_login h2,
body.woocommerce-account .woocommerce-ResetPassword h2,
body.am-order-received .woocommerce-order-details__title,
body.am-order-received .woocommerce-column__title,
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
	margin: 0 0 1rem;
	font-family: var(--am-heading, "DM Serif Display", Georgia, serif);
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--am-ink, #2c2c2c);
	text-transform: none;
	letter-spacing: 0;
}

/* Buttons */

body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content button.button,
body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account .woocommerce-form-login .button,
body.woocommerce-account .woocommerce-form-register .button,
body.woocommerce-account .woocommerce-ResetPassword .button,
body.woocommerce-account .woocommerce-Button,
body.am-track-order .woocommerce-form-track-order .button,
body.am-order-received .button,
body.woocommerce-order-received .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 2.75rem;
	margin: 0;
	padding: 0 1.35rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--am-tan, #cba98a) !important;
	color: var(--am-white, #fff) !important;
	font-family: var(--am-body, "DM Sans", ui-sans-serif, system-ui, sans-serif) !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	line-height: 1;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content button.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
body.woocommerce-account .woocommerce-form-login .button:hover,
body.woocommerce-account .woocommerce-form-register .button:hover,
body.woocommerce-account .woocommerce-ResetPassword .button:hover,
body.am-track-order .woocommerce-form-track-order .button:hover,
body.am-order-received .button:hover,
body.woocommerce-order-received .button:hover {
	background: var(--am-gold, #d4a843) !important;
	color: var(--am-white, #fff) !important;
}

/* Forms */

body.woocommerce-account .form-row,
body.am-track-order .form-row {
	margin: 0 0 1rem;
}

body.woocommerce-account .form-row label,
body.am-track-order .form-row label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--am-ink, #2c2c2c);
}

body.woocommerce-account .form-row .required,
body.am-track-order .form-row .required {
	color: var(--am-tan, #cba98a);
	text-decoration: none;
	border: 0;
}

body.woocommerce-account .form-row input.input-text,
body.woocommerce-account .form-row input[type="text"],
body.woocommerce-account .form-row input[type="email"],
body.woocommerce-account .form-row input[type="password"],
body.woocommerce-account .form-row input[type="tel"],
body.woocommerce-account .form-row textarea,
body.woocommerce-account .form-row select,
body.woocommerce-account .form-row .select2-selection,
body.am-track-order .form-row input.input-text,
body.am-track-order .form-row input[type="text"] {
	width: 100%;
	height: 2.85rem;
	margin: 0;
	padding: 0 1.15rem;
	border: 1px solid #e4d6c4;
	border-radius: 999px;
	background: var(--am-white, #fff);
	color: var(--am-ink, #2c2c2c);
	font-size: 0.92rem;
	line-height: 2.85rem;
	box-shadow: none;
}

body.woocommerce-account .form-row textarea {
	height: auto;
	min-height: 7.5rem;
	padding: 0.9rem 1.15rem;
	border-radius: 1rem;
	line-height: 1.5;
}

body.woocommerce-account .form-row input:focus,
body.woocommerce-account .form-row textarea:focus,
body.woocommerce-account .form-row select:focus,
body.woocommerce-account .form-row .select2-selection--single:focus,
body.am-track-order .form-row input:focus {
	outline: none;
	border-color: var(--am-tan, #cba98a);
}

body.woocommerce-account .form-row-first,
body.woocommerce-account .form-row-last,
body.am-track-order .form-row-first,
body.am-track-order .form-row-last {
	width: calc(50% - 0.5rem);
}

body.woocommerce-account .form-row-first,
body.am-track-order .form-row-first {
	float: left;
	margin-right: 1rem;
}

body.woocommerce-account .form-row-last,
body.am-track-order .form-row-last {
	float: right;
}

body.woocommerce-account .form-row-wide {
	clear: both;
	width: 100%;
}

body.woocommerce-account fieldset {
	margin: 1.5rem 0 0;
	padding: 1.25rem 0 0;
	border: 0;
	border-top: 1px solid #f0e4d1;
}

body.woocommerce-account fieldset legend {
	padding: 0 0.6rem 0 0;
	font-family: var(--am-heading, "DM Serif Display", Georgia, serif);
	font-size: 1.25rem;
	color: var(--am-ink, #2c2c2c);
}

body.woocommerce-account .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	cursor: pointer;
}

body.woocommerce-account .woocommerce-form__input-checkbox {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--am-tan, #cba98a);
}

body.woocommerce-account em,
body.woocommerce-account #account_display_name_description {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.8rem;
	color: var(--am-muted, #6b6560);
}

/* Login / register */

body.woocommerce-account .col2-set::before,
body.woocommerce-account .col2-set::after,
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after,
body.woocommerce-account #customer_login::before,
body.woocommerce-account #customer_login::after {
	display: none !important;
	content: none !important;
}

body.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

body.woocommerce-account #customer_login .col-1,
body.woocommerce-account #customer_login .col-2,
body.woocommerce-account .u-columns .u-column1,
body.woocommerce-account .u-columns .u-column2 {
	float: none !important;
	width: auto !important;
}

body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register,
body.woocommerce-account .woocommerce-ResetPassword,
body.woocommerce-account .lost_reset_password {
	margin: 0;
	padding: 1.7rem 1.8rem 1.85rem;
	border: 1px solid #f0e4d1;
	border-radius: 1.15rem;
	background: var(--am-white, #fff);
}

body.woocommerce-account .woocommerce-form-login .form-row,
body.woocommerce-account .woocommerce-form-register .form-row {
	display: block;
}

body.woocommerce-account .lost_password {
	margin: 1rem 0 0;
	font-size: 0.88rem;
}

/* Addresses */

body.woocommerce-account .woocommerce-Addresses,
body.woocommerce-account .u-columns.woocommerce-Addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 1.25rem 0 0;
}

body.woocommerce-account .woocommerce-Address {
	float: none !important;
	width: auto !important;
	padding: 1.2rem 1.25rem 1.3rem;
	border-radius: 0.95rem;
	background: #fdfaf6;
}

body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
}

body.woocommerce-account .woocommerce-Address-title h2 {
	margin: 0;
	font-size: 1.25rem;
}

body.woocommerce-account .woocommerce-Address-title .edit {
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
}

body.woocommerce-account .woocommerce-Address address {
	margin: 0;
	font-style: normal;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--am-muted, #6b6560);
}

/* Tables */

body.woocommerce-account table.shop_table,
body.woocommerce-account table.woocommerce-orders-table,
body.woocommerce-account table.woocommerce-table--order-details,
body.am-order-received table.shop_table,
body.woocommerce-order-received table.shop_table {
	width: 100%;
	margin: 0 0 1.25rem;
	border: 0 !important;
	border-radius: 1rem;
	background: #fdfaf6;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td,
body.woocommerce-account table.woocommerce-orders-table th,
body.woocommerce-account table.woocommerce-orders-table td,
body.am-order-received table.shop_table th,
body.am-order-received table.shop_table td,
body.woocommerce-order-received table.shop_table th,
body.woocommerce-order-received table.shop_table td {
	padding: 0.95rem 1rem;
	border: 0 !important;
	border-bottom: 1px solid #f0e4d1 !important;
	background: transparent !important;
	color: var(--am-ink, #2c2c2c);
	font-size: 0.9rem;
	font-weight: 500;
	vertical-align: middle;
}

body.woocommerce-account table.shop_table thead th,
body.woocommerce-account table.woocommerce-orders-table thead th,
body.am-order-received table.shop_table thead th,
body.woocommerce-order-received table.shop_table thead th {
	background: #f7f0e6 !important;
	color: var(--am-muted, #6b6560) !important;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.woocommerce-account table.shop_table tbody tr:last-child td,
body.woocommerce-account table.woocommerce-orders-table tbody tr:last-child td {
	border-bottom: 0 !important;
}

body.woocommerce-account table.shop_table tfoot th,
body.woocommerce-account table.shop_table tfoot td,
body.am-order-received table.shop_table tfoot th,
body.am-order-received table.shop_table tfoot td {
	background: #f7f0e6 !important;
	border-bottom: 0 !important;
}

body.woocommerce-account mark.order-status,
body.woocommerce-account .woocommerce-orders-table__cell-order-status {
	font-weight: 600;
}

/* Payment methods */

body.woocommerce-account .woocommerce-PaymentMethods,
body.woocommerce-account .woocommerce-SavedPaymentMethods {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce-PaymentMethod,
body.woocommerce-account .woocommerce-SavedPaymentMethods-token {
	margin: 0 0 0.65rem;
	padding: 1rem 1.15rem;
	border-radius: 0.95rem;
	background: #fdfaf6;
}

body.woocommerce-account .woocommerce-PaymentMethod:last-child,
body.woocommerce-account .woocommerce-SavedPaymentMethods-token:last-child {
	margin-bottom: 0;
}

/* View order */

body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details,
body.am-order-received .woocommerce-order-details,
body.am-order-received .woocommerce-customer-details {
	margin: 1.75rem 0 0;
}

body.woocommerce-account .woocommerce-customer-details address,
body.am-order-received .woocommerce-customer-details address {
	padding: 1.15rem 1.25rem;
	border: 0;
	border-radius: 0.95rem;
	background: #fdfaf6;
	font-style: normal;
}

/* Track order */

body.am-track-order .woocommerce-form-track-order {
	max-width: 36rem;
	margin: 0 auto;
	padding: 2rem 2rem 2.1rem;
	border-radius: 1.25rem;
	background: var(--am-white, #fff);
}

body.am-track-order .woocommerce-form-track-order > p:first-of-type {
	margin: 0 0 1.25rem;
	color: var(--am-muted, #6b6560);
	font-size: 0.98rem;
	line-height: 1.65;
}

body.am-track-order .woocommerce-form-track-order::after {
	content: "";
	display: table;
	clear: both;
}

body.am-track-order .woocommerce-form-track-order .form-row:last-of-type {
	clear: both;
	width: 100%;
	padding-top: 0.35rem;
}

/* Order received */

body.am-order-received .woocommerce-order,
body.woocommerce-order-received .woocommerce-order {
	max-width: 48rem;
	margin: 0 auto;
}

body.am-order-received .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-thankyou-order-received {
	margin: 0 0 1.5rem;
	font-family: var(--am-heading, "DM Serif Display", Georgia, serif);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 400;
	line-height: 1.3;
	color: var(--am-ink, #2c2c2c);
}

body.am-order-received .woocommerce-order-overview,
body.woocommerce-order-received .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

body.am-order-received .woocommerce-order-overview li,
body.woocommerce-order-received .woocommerce-order-overview li {
	margin: 0;
	padding: 1rem 1.15rem;
	border: 0;
	border-radius: 0.95rem;
	background: var(--am-white, #fff);
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--am-muted, #6b6560);
}

body.am-order-received .woocommerce-order-overview li strong,
body.woocommerce-order-received .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--am-ink, #2c2c2c);
}

body.am-order-received .woocommerce-order-details,
body.am-order-received .woocommerce-customer-details {
	padding: 1.5rem 1.6rem;
	border-radius: 1.15rem;
	background: var(--am-white, #fff);
}

/* Pagination */

body.woocommerce-account .woocommerce-pagination {
	margin: 1.25rem 0 0;
}

body.woocommerce-account .woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.7rem;
	border-radius: 999px;
	background: #f7f0e6;
	color: var(--am-ink, #2c2c2c);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none !important;
}

body.woocommerce-account .woocommerce-pagination .page-numbers.current,
body.woocommerce-account .woocommerce-pagination a.page-numbers:hover {
	background: var(--am-tan, #cba98a);
	color: var(--am-white, #fff);
}

@media (max-width: 781px) {
	body.woocommerce-account .woocommerce,
	body.am-account-page .woocommerce {
		grid-template-columns: 1fr;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation a {
		padding: 0.5rem 0.9rem;
		font-size: 0.82rem;
	}

	body.woocommerce-account #customer_login,
	body.woocommerce-account .woocommerce-Addresses,
	body.woocommerce-account .u-columns.woocommerce-Addresses,
	body.am-order-received .woocommerce-order-overview,
	body.woocommerce-order-received .woocommerce-order-overview {
		grid-template-columns: 1fr;
	}

	body.woocommerce-account .form-row-first,
	body.woocommerce-account .form-row-last,
	body.am-track-order .form-row-first,
	body.am-track-order .form-row-last {
		float: none;
		width: 100%;
		margin-right: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-content,
	body.woocommerce-account .woocommerce-form-login,
	body.woocommerce-account .woocommerce-form-register,
	body.woocommerce-account .woocommerce-ResetPassword,
	body.woocommerce-account .lost_reset_password {
		padding: 1.35rem 1.2rem 1.45rem;
	}
}
