/*
 * My Account + Track your order (finch-site includes/my-account.php).
 * Mobile first: base styles are for phones; @media (min-width: 690px) adds the
 * desktop layout (Blocksy's breakpoint).
 *
 * Colors are the Blocksy palette: 1 Petal Pink, 2 Petal Pink Deep, 3 Espresso
 * Soft, 4 Espresso, 5 Warm Border, 7 Silk, 9 Blush Paper.
 * Icons are Lucide (ISC license) at stroke 1.5, like the rest of the site,
 * drawn as CSS masks so they take the text color.
 */

.finch-account {
	--finch-pink: var(--theme-palette-color-1, #e0628a);
	--finch-pink-deep: var(--theme-palette-color-2, #b83e68);
	--finch-text: var(--theme-palette-color-3, #5e4e49);
	--finch-ink: var(--theme-palette-color-4, #392b27);
	--finch-border: var(--theme-palette-color-5, #eadfd8);
	--finch-silk: var(--theme-palette-color-7, #fcf5ee);
	--finch-blush: var(--theme-palette-color-9, #fff3f4);
	--finch-radius: 12px;
}

/* ---------- Page chrome ---------- */

/* The section title is printed in the content (with the back link above it). */
.finch-account.woocommerce-account.logged-in .hero-section,
.finch-return-page .hero-section {
	display: none;
}

/* Trust bar ("Secure checkout...") is sales copy; keep account pages calm. */
.finch-account [data-block="hook:421"] {
	display: none;
}

.finch-account :is(a, button, .button, input, select, textarea):focus-visible {
	outline: 2px solid var(--finch-pink-deep);
	outline-offset: 2px;
}

.finch-account .woocommerce .button {
	--theme-button-min-height: 44px;
}

.woocommerce-MyAccount-content h1.finch-page-title,
.finch-return-page h1.finch-page-title {
	margin: 0 0 20px;
	font-size: 32px;
	line-height: 1.15;
}

.finch-back {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	min-height: 44px;
	margin: -8px 0 4px -6px;
	padding-right: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--finch-ink);
}

.finch-back::before {
	content: "";
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.finch-back:hover {
	color: var(--finch-pink-deep);
}

/* Phones: no sidebar; the account home is the menu. */
.finch-account.logged-in :is(.ct-acount-nav, .woocommerce-MyAccount-navigation) {
	display: none;
}

/* ---------- Desktop sidebar icons ---------- */

/* Fallback for menu items added later by plugins. */
:where(.woocommerce-MyAccount-navigation) li a {
	--finch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--dashboard a,
.finch-hub__item--dashboard a {
	--finch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='9' x='3' y='3' rx='1'/%3E%3Crect width='7' height='5' x='14' y='3' rx='1'/%3E%3Crect width='7' height='9' x='14' y='12' rx='1'/%3E%3Crect width='7' height='5' x='3' y='16' rx='1'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--orders a,
.finch-hub__item--orders a {
	--finch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z'/%3E%3Cpath d='M12 22V12'/%3E%3Cpath d='m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7'/%3E%3Cpath d='m7.5 4.27 9 5.15'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-address a,
.finch-hub__item--edit-address a {
	--finch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--payment-methods a,
.finch-hub__item--payment-methods a {
	--finch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Cline x1='2' x2='22' y1='10' y2='10'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--edit-account a,
.finch-hub__item--edit-account a {
	--finch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--woo-wish-list a,
.finch-hub__item--woo-wish-list a {
	--finch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}

.woocommerce-MyAccount-navigation-link--customer-logout a,
.finch-hub__item--customer-logout a {
	--finch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3C/svg%3E");
}


.finch-account .woocommerce-MyAccount-navigation ul li a::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	font-family: inherit;
	background-color: currentColor;
	-webkit-mask: var(--finch-icon) center / contain no-repeat;
	mask: var(--finch-icon) center / contain no-repeat;
}

/* ---------- Status badges ---------- */

.finch-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	background: #f5f5f6;
	color: var(--finch-text);
}

.finch-status--pending,
.finch-status--failed {
	background: var(--finch-blush);
	color: var(--finch-pink-deep);
	box-shadow: inset 0 0 0 1px #f4c9d6;
}

.finch-status--processing {
	background: #fbe8ee;
	color: var(--finch-pink-deep);
}

.finch-status--on-hold {
	background: var(--finch-silk);
	color: #8a5a1f;
	box-shadow: inset 0 0 0 1px var(--finch-border);
}

.finch-status--completed {
	background: #e9f3ec;
	color: #2f6b45;
}

.finch-badges {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.finch-status--return {
	background: #fff;
	color: var(--finch-ink);
	box-shadow: inset 0 0 0 1px var(--finch-ink);
}

/* ---------- Buttons ---------- */

.finch-account .finch-button--outline,
.ct-woocommerce-wishlist-table .add_to_cart_button,
.ct-woocommerce-wishlist-table .product_type_simple {
	--theme-button-background-initial-color: transparent;
	--theme-button-text-initial-color: var(--finch-ink);
	--theme-button-background-hover-color: var(--finch-ink);
	--theme-button-text-hover-color: #fff;
	box-shadow: inset 0 0 0 1px var(--finch-ink);
}

/* ---------- Notices (incl. "Confirm your email address") ---------- */

.woocommerce-MyAccount-content :is(.woocommerce-info, .woocommerce-message) {
	--background-color: var(--finch-blush);
	border: 1px solid #f4dbe2;
	border-radius: var(--finch-radius);
	gap: 12px;
	font-size: 14px;
}

.woocommerce-MyAccount-content :is(.woocommerce-info, .woocommerce-message) svg {
	color: var(--finch-pink);
	fill: currentColor;
}

.woocommerce-MyAccount-content :is(.woocommerce-info, .woocommerce-message) .button {
	--theme-button-padding: 0 16px;
	font-size: 14px;
	margin-inline-start: auto;
	white-space: nowrap;
}

/* ---------- Progress: Ordered, Preparing, Shipped ---------- */

.finch-progress {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.finch-progress__step {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	text-align: center;
}

/* Connector line to the previous step. */
.finch-progress__step + .finch-progress__step::before {
	content: "";
	position: absolute;
	top: 5px;
	right: 50%;
	left: -50%;
	height: 2px;
	background: var(--finch-border);
}

.finch-progress__step:is(.is-done, .is-current) + .finch-progress__step:is(.is-done, .is-current)::before {
	background: var(--finch-ink);
}

.finch-progress__dot {
	position: relative;
	z-index: 1;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 2px var(--finch-border);
}

.finch-progress__step.is-done .finch-progress__dot {
	background: var(--finch-ink);
	box-shadow: none;
}

.finch-progress__step.is-current .finch-progress__dot {
	background: var(--finch-pink);
	box-shadow: 0 0 0 4px #fbe8ee;
}

.finch-progress__label {
	font-size: 12px;
	line-height: 1.3;
	color: var(--finch-text);
}

.finch-progress__step.is-current .finch-progress__label {
	font-weight: 600;
	color: var(--finch-ink);
}

/* Single order / tracking page: a little more room. */
.woocommerce-order-details .finch-progress,
.woocommerce-MyAccount-content > .finch-progress,
.finch-order-progress {
	margin: 4px 0 24px;
}

/* ---------- Thumbnails ---------- */

.finch-thumbs {
	display: flex;
	gap: 6px;
}

.finch-thumb {
	flex: 0 0 auto;
	display: block;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--finch-silk);
}

.finch-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.finch-thumb--more {
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--finch-text);
}

/* ---------- Order cards (orders list + account home) ---------- */

.finch-order-list {
	display: grid;
	gap: 12px;
}

.finch-order-card {
	position: relative;
	display: grid;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--finch-border);
	border-radius: var(--finch-radius);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.finch-order-card:hover {
	border-color: #d9c7bd;
	box-shadow: 0 2px 10px rgba(57, 43, 39, 0.06);
}

.finch-order-card.is-open {
	background: var(--finch-silk);
}

.finch-order-card__main {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"thumbs badge"
		"text text";
	gap: 12px;
	align-items: start;
}

.finch-order-card__main .finch-thumbs {
	grid-area: thumbs;
}

.finch-order-card__main > .finch-status,
.finch-order-card__main > .finch-badges {
	grid-area: badge;
}

.finch-order-card__text {
	grid-area: text;
	min-width: 0;
}

.woocommerce-MyAccount-content h3.finch-order-card__title {
	margin: 0 0 2px;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
}

/* The whole card opens the order. */
.finch-order-card__link {
	color: var(--finch-ink);
}

.finch-order-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.finch-order-card__link:focus-visible {
	outline: none;
}

.finch-order-card__link:focus-visible::after {
	outline: 2px solid var(--finch-pink-deep);
	outline-offset: 2px;
}

.finch-order-card__meta {
	margin: 0;
	font-size: 14px;
	color: var(--finch-text);
}

.finch-order-card__meta del {
	opacity: 0.7;
}

.finch-order-card__actions {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}

.finch-order-card__actions .button {
	flex: 1 1 100%;
	--theme-button-padding: 0 20px;
}

.finch-order-card__secondary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: -6px auto;
	font-size: 14px;
	font-weight: 500;
	color: var(--finch-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.finch-order-card .finch-progress {
	position: relative;
	z-index: 0;
}

/* ---------- Account home ---------- */

.finch-dash__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.woocommerce-MyAccount-content .finch-dash__head h2 {
	margin: 0;
	font-size: 20px;
}

.finch-dash__all {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 14px;
	font-weight: 600;
	color: var(--finch-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.finch-dash__open {
	margin-bottom: 28px;
}

/* Hub rows (phones). */
.finch-hub ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--finch-border);
	border-radius: var(--finch-radius);
	overflow: hidden;
	background: #fff;
}

.finch-hub__item + .finch-hub__item {
	border-top: 1px solid var(--finch-border);
}

.finch-hub__item a {
	--has-link-decoration: var(--false);
	text-decoration: none;
	display: grid;
	grid-template-columns: 22px 1fr 20px;
	grid-template-areas: "icon label chevron" "icon sub chevron";
	column-gap: 14px;
	align-items: center;
	min-height: 64px;
	padding: 10px 16px;
	color: var(--finch-ink);
}

.finch-hub__item a:hover {
	background: var(--finch-silk);
}

.finch-hub__item a::before {
	content: "";
	grid-area: icon;
	width: 22px;
	height: 22px;
	background-color: currentColor;
	-webkit-mask: var(--finch-icon) center / contain no-repeat;
	mask: var(--finch-icon) center / contain no-repeat;
}

.finch-hub__item a::after {
	content: "";
	grid-area: chevron;
	width: 20px;
	height: 20px;
	background-color: #b7a69f;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.finch-hub__item--customer-logout a::after {
	display: none;
}

.finch-hub__label {
	grid-area: label;
	font-size: 16px;
	font-weight: 600;
}

.finch-hub__item a:not(:has(.finch-hub__sub)) .finch-hub__label {
	grid-row: 1 / span 2;
}

.finch-hub__sub {
	grid-area: sub;
	font-size: 14px;
	color: var(--finch-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Address / account cards (desktop). */
.finch-dash__cards {
	display: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.finch-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 24px;
	border: 1px solid var(--finch-border);
	border-radius: var(--finch-radius);
	background: #fff;
}

.woocommerce-MyAccount-content .finch-card .finch-card__label {
	margin: 0 0 4px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--finch-text);
}

.finch-card p,
.finch-card address {
	margin: 0;
}

.finch-card__meta {
	color: var(--finch-text);
	font-style: normal;
	line-height: 1.6;
}

.finch-card__link {
	margin-top: auto;
	font-weight: 600;
	color: var(--finch-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.finch-card__link:hover {
	color: var(--finch-pink-deep);
}

/* ---------- Empty states ---------- */

.finch-empty {
	padding: 28px 20px;
	border: 1px dashed var(--finch-border);
	border-radius: var(--finch-radius);
	text-align: center;
	color: var(--finch-text);
}

.finch-empty p {
	margin: 0 0 14px;
}

.finch-empty .finch-empty__title {
	margin-bottom: 4px;
	font-size: 17px;
	font-weight: 600;
	color: var(--finch-ink);
}

.finch-empty--compact {
	padding: 22px 18px;
}

/* ---------- Pagination ---------- */

.finch-pagination {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
}

/* ---------- Help box ---------- */

.finch-account-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 20px;
	margin-top: 28px;
	padding: 14px 18px;
	border-radius: var(--finch-radius);
	background: var(--finch-blush);
}

.finch-account-help p {
	margin: 0;
}

.finch-account-help__title {
	font-weight: 600;
	color: var(--finch-ink);
}

.finch-account-help__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

.finch-account-help__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	color: var(--finch-pink-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Single order ---------- */

.finch-order-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-bottom: 16px;
}

.finch-order-head__title {
	font-family: var(--theme-headings-font-family, inherit);
	font-size: 24px;
	color: var(--finch-ink);
}

.finch-order-head__date {
	color: var(--finch-text);
}

.finch-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.finch-item .finch-thumb {
	width: 56px;
	height: 56px;
}

.finch-item__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.finch-item__qty {
	font-size: 13px;
	color: var(--finch-text);
}

.woocommerce-order-details .order-again,
.finch-return {
	display: inline-block;
	margin: 0 10px 10px 0;
}

/* Shipment tracking box. */
.finch-shipments {
	margin: 0 0 28px;
	padding: 18px;
	border: 1px solid var(--finch-border);
	border-radius: var(--finch-radius);
	background: var(--finch-silk);
}

.woocommerce .finch-shipments h2.finch-shipments__title {
	margin: 0 0 10px;
	font-size: 20px;
}

.finch-shipment {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.finch-shipment + .finch-shipment {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--finch-border);
}

.finch-shipment p {
	margin: 0;
}

.finch-shipment__service {
	font-weight: 600;
	color: var(--finch-ink);
}

.finch-shipment__eta {
	font-size: 14px;
	font-weight: 600;
	color: var(--finch-pink-deep);
}

.finch-shipment__number {
	margin-top: 4px !important;
	font-size: 13px;
	color: var(--finch-text);
}

.finch-shipment__number span {
	display: block;
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--finch-ink);
	overflow-wrap: anywhere;
}

.finch-shipment .button {
	width: 100%;
	--theme-button-padding: 0 22px;
}

/* ---------- Addresses ---------- */

.woocommerce-Addresses .woocommerce-Address-title a.edit {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	color: var(--finch-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-Addresses .woocommerce-Address-title a.edit:hover {
	color: var(--finch-pink-deep);
}

/* ---------- Account details ---------- */

/* Display name is WordPress jargon for shoppers (reviews are off). The field
   stays in the form, hidden, so saving keeps the current value. */
.woocommerce-EditAccountForm .form-row:has(#account_display_name) {
	display: none;
}

/* ---------- Wishlist ---------- */

.ct-woocommerce-wishlist-table .button {
	white-space: nowrap;
	--theme-button-padding: 0 18px;
}

.ct-woocommerce-wishlist-table a.remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	min-height: 44px;
	font-size: 14px;
	font-weight: 500;
	color: var(--finch-text);
}

.ct-woocommerce-wishlist-table a.remove:hover {
	color: var(--finch-pink-deep);
}

.ct-woocommerce-wishlist-table a.remove .ct-icon-container > svg:not(.ct-button-loader) {
	display: none;
}

.ct-woocommerce-wishlist-table a.remove .ct-icon-container::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cline x1='10' x2='10' y1='11' y2='17'/%3E%3Cline x1='14' x2='14' y1='11' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ct-woocommerce-wishlist-table a.remove[data-button-state="loading"] .ct-icon-container::before {
	display: none;
}

.ct-woocommerce-wishlist-table a.remove::after {
	content: "Remove";
}

/* ---------- Start a return ---------- */

.finch-rf-order {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid var(--finch-border);
	border-radius: var(--finch-radius);
	background: var(--finch-silk);
}

.finch-rf-order p {
	margin: 0;
}

.finch-rf-order__title {
	font-size: 17px;
	font-weight: 600;
	color: var(--finch-ink);
}

.finch-rf-order__meta {
	font-size: 14px;
	color: var(--finch-text);
}

.finch-account .gform_wrapper .gfield {
	margin-bottom: 8px;
}

.finch-account .gform_wrapper .gfield_label,
.finch-account .gform_wrapper legend.gfield_label {
	margin-bottom: 10px;
	font-size: 17px;
	font-weight: 600;
	color: var(--finch-ink);
}

/* Choices as full-width tappable cards. */
.finch-account .gform_wrapper :is(.finch-rf-items, .finch-rf-choices, .finch-rf-policy) .gfield_checkbox,
.finch-account .gform_wrapper :is(.finch-rf-items, .finch-rf-choices) .gfield_radio {
	display: grid;
	gap: 8px;
}

.finch-account .gform_wrapper :is(.finch-rf-items, .finch-rf-choices, .finch-rf-policy) .gchoice {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--finch-border);
	border-radius: var(--finch-radius);
	background: #fff;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.finch-account .gform_wrapper :is(.finch-rf-items, .finch-rf-choices, .finch-rf-policy) .gchoice:has(input:checked) {
	border-color: var(--finch-pink);
	background: var(--finch-blush);
	box-shadow: inset 0 0 0 1px var(--finch-pink);
}

.finch-account .gform_wrapper :is(.finch-rf-items, .finch-rf-choices, .finch-rf-policy) .gchoice input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--finch-pink-deep);
	position: relative;
	z-index: 1;
}

.finch-account .gform_wrapper :is(.finch-rf-items, .finch-rf-choices, .finch-rf-policy) .gchoice label {
	flex: 1;
	margin: 0;
	font-size: 15px;
	color: var(--finch-ink);
	cursor: pointer;
}

/* The whole card toggles the choice. */
.finch-account .gform_wrapper :is(.finch-rf-items, .finch-rf-choices, .finch-rf-policy) .gchoice label::after {
	content: "";
	position: absolute;
	inset: 0;
}

.finch-rf-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.finch-rf-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	background: #f5f5f6;
	color: var(--finch-text);
	vertical-align: 1px;
}

.finch-account .gform_wrapper .finch-rf-policy .gchoice {
	background: var(--finch-silk);
}

.finch-account .gform_wrapper .finch-rf-policy .gchoice label {
	font-size: 14px;
}

/* Our photo descriptions already say what's allowed. */
.finch-account .gform_wrapper .gform_fileupload_rules {
	display: none;
}

.finch-account .gform_wrapper textarea {
	min-height: 96px;
}

.finch-account .gform_wrapper .gform_footer {
	margin-top: 8px;
}

.finch-account .gform_wrapper .gform_footer input[type="submit"],
.finch-account .gform_wrapper .gform_footer .gform_button {
	width: 100%;
	min-height: 52px;
	font-size: 16px;
}

.finch-rf-done {
	padding: 24px 20px;
	border: 1px solid var(--finch-border);
	border-radius: var(--finch-radius);
	background: var(--finch-silk);
}

.finch-rf-done__title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 600;
	color: var(--finch-ink);
}

.finch-rf-steps {
	margin: 0 0 16px;
	padding-left: 20px;
	color: var(--finch-ink);
}

.finch-rf-steps li + li {
	margin-top: 8px;
}

.finch-rf-done__note {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--finch-text);
}

.finch-account .finch-empty .finch-empty__title + p a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Track your order page + guest link ---------- */

.woocommerce-form-track-order {
	max-width: 640px;
}

.finch-guest-track {
	margin: 18px 0 0;
	font-size: 14px;
}

.finch-guest-track a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* =========================================================================
   Desktop (690px and up)
   ========================================================================= */

@media (min-width: 690px) {
	.finch-account.logged-in :is(.ct-acount-nav, .woocommerce-MyAccount-navigation) {
		display: block;
	}

	.finch-back:not(.finch-back--always) {
		display: none;
	}

	.woocommerce-MyAccount-content h1.finch-page-title,
	.finch-return-page h1.finch-page-title {
		font-size: 40px;
		margin-bottom: 24px;
	}

	/* Hub rows are the phone menu; desktop has the sidebar + cards. */
	.finch-hub {
		display: none;
	}

	.finch-dash__cards {
		display: grid;
	}

	.finch-order-card {
		padding: 18px 20px;
	}

	.finch-order-card__main {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "thumbs text badge";
		align-items: center;
		gap: 16px;
	}

	.finch-order-card:has(.finch-order-card__actions) .finch-order-card__main {
		grid-template-columns: auto 1fr auto;
	}

	.finch-order-card__actions .button {
		flex: 0 0 auto;
	}

	.finch-order-card__secondary {
		margin: 0;
	}

	.finch-order-card .finch-progress {
		max-width: 420px;
	}

	.woocommerce-order-details .finch-progress,
	.woocommerce-MyAccount-content .finch-progress:not(.finch-order-card .finch-progress) {
		max-width: 520px;
	}

	.finch-shipments {
		padding: 20px 24px;
	}

	.finch-shipment .button {
		width: auto;
	}

	.finch-account-help {
		padding: 10px 24px;
	}

	.finch-account .gform_wrapper .gform_footer input[type="submit"],
	.finch-account .gform_wrapper .gform_footer .gform_button {
		width: auto;
		padding: 0 32px;
	}
}
