/*
 * ABF Accounting — WooCommerce pages: Cart, Checkout, Order pay, Order received, My Account.
 *
 * Figma frames (page 01): Shop / Cart 1236:1870, Checkout 1236:1602, Order Pay 1236:2089,
 * Order Received 1227:2207, My Account 1240:1641 … 1240:2936. WooCommerce's own layout
 * stylesheets are switched off (inc/shop.php); everything the classic templates print is
 * styled here.
 */

.abf-shop,
.abf-shop *,
.abf-receipt,
.abf-receipt * {
	box-sizing: border-box;
}

/* ---------- Hero ---------- */

.wp-block-cover.abf-shop-hero {
	min-height: 305px !important;
	padding: 0;
	overflow: hidden;
	background: var(--abf-teal);
}

.abf-shop-hero > .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(13, 51, 63, 0.96) 0%, rgba(13, 51, 63, 0.86) 60%, rgba(3, 168, 78, 0.78) 100%);
	opacity: 1 !important;
}

.abf-shop-hero > .wp-block-cover__inner-container {
	width: 100%;
}

.abf-shop-hero::before,
.abf-shop-hero::after {
	content: "";
	position: absolute;
	z-index: 1;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	pointer-events: none;
}

.abf-shop-hero::before {
	right: 80px;
	top: -90px;
	width: 340px;
	height: 340px;
}

.abf-shop-hero::after {
	right: 320px;
	top: 150px;
	width: 220px;
	height: 220px;
}

.abf-shop-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding-block: 96px 72px;
	text-align: center;
}

.abf-shop-hero__kicker {
	color: var(--abf-bright);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.abf-shop-hero__title {
	color: #fff;
	font-size: 56px;
	font-weight: 800;
	line-height: 62px;
	letter-spacing: -0.02em;
}

.abf-shop-hero__text {
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 25px;
	letter-spacing: -0.01em;
}

/* ---------- Body ---------- */

.abf-shop {
	padding-block: 80px 96px;
}

.abf-shop > .abf-container {
	max-width: 1440px;
}

.abf-shop__content > .woocommerce,
.abf-shop__content .woocommerce {
	max-width: none;
	margin: 0;
	color: var(--abf-ink);
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.abf-shop p {
	margin: 0;
}

.abf-shop a {
	color: var(--abf-green);
}

.abf-shop-layout {
	display: grid;
	grid-template-columns: minmax(0, 960fr) minmax(0, 440fr);
	align-items: start;
	gap: 40px;
}

.abf-shop-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 40px;
	border: 1px solid rgba(13, 51, 63, 0.12);
	border-radius: 24px;
	background: #fff;
}

.abf-shop-card__title,
.abf-shop .woocommerce-billing-fields > h3,
.abf-shop .woocommerce-MyAccount-content h2,
.abf-shop .woocommerce-ResetPassword > p:first-child::before {
	margin: 0;
	color: var(--abf-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
	letter-spacing: -0.01em;
}

.abf-shop-card__text {
	color: var(--abf-muted);
	font-size: 16px;
	line-height: 22px;
}

/* Summary card (Cart totals, Your order, Order details). */
.abf-shop-summary {
	display: flex;
	flex-direction: column;
	padding: 32px;
	border-radius: 24px;
	background: var(--abf-mint);
}

.abf-shop-summary__title {
	margin: 0;
	color: var(--abf-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 30px;
}

.abf-shop .abf-shop-summary__edit {
	align-self: flex-start;
	font-size: 14px;
	font-weight: 700;
	line-height: 19px;
	text-decoration: none;
}

.abf-shop .abf-shop-summary__edit:hover {
	text-decoration: underline;
}

.abf-summary {
	display: flex;
	flex-direction: column;
}

.abf-summary__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-block: 14px;
	border-bottom: 1px solid rgba(13, 51, 63, 0.08);
	font-size: 16px;
	line-height: 22px;
}

.abf-summary__label {
	color: var(--abf-muted);
}

.abf-summary__value {
	flex: none;
	color: var(--abf-ink);
	font-weight: 600;
	text-align: right;
}

.abf-summary__row--detail .abf-summary__value {
	flex: 0 1 auto;
	max-width: 65%;
}

.abf-summary__row--total {
	align-items: center;
}

.abf-summary__row--total .abf-summary__label {
	color: var(--abf-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 25px;
}

.abf-summary__row--total .abf-summary__value {
	font-size: 20px;
	font-weight: 800;
	line-height: 27px;
}

.abf-summary__value strong {
	font-weight: inherit;
}

.abf-summary .wc-item-meta,
.abf-summary dl.variation {
	margin: 4px 0 0;
	font-size: 13px;
}

.abf-shop-summary__note,
.abf-shop-summary__secure {
	color: var(--abf-muted);
	font-size: 14px;
	line-height: 19px;
}

.abf-shop-summary__note {
	padding-top: 0;
}

.abf-shop-summary__secure {
	text-align: center;
}

.abf-shop-trust {
	display: grid;
	grid-template-columns: auto auto;
	justify-content: center;
	align-items: center;
	gap: 4px 6px;
	margin-top: 20px;
	text-align: center;
}

.abf-shop-trust__stars {
	width: 94px;
	height: 14px;
	background: url("../icons/tp-star.svg") 0px 0 / 14px 14px no-repeat,
		url("../icons/tp-star.svg") 20px 0 / 14px 14px no-repeat,
		url("../icons/tp-star.svg") 40px 0 / 14px 14px no-repeat,
		url("../icons/tp-star.svg") 60px 0 / 14px 14px no-repeat,
		url("../icons/tp-star.svg") 80px 0 / 14px 14px no-repeat;
}

.abf-shop-trust__rating {
	color: #27c67a;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
}

.abf-shop-trust__note {
	grid-column: 1 / -1;
	color: var(--abf-ink);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
}

/* ---------- Form fields ---------- */

.abf-shop .form-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.abf-shop .form-row label,
.abf-shop .woocommerce-form-row label,
.abf-shop fieldset legend {
	color: var(--abf-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
}

.abf-shop .form-row .required {
	color: var(--abf-green);
	text-decoration: none;
}

.abf-shop .form-row .optional {
	color: var(--abf-muted);
	font-weight: 400;
}

.abf-shop .woocommerce-input-wrapper {
	position: relative;
	display: block;
}

.abf-shop input.input-text,
.abf-shop input[type="text"],
.abf-shop input[type="email"],
.abf-shop input[type="tel"],
.abf-shop input[type="password"],
.abf-shop select,
.abf-shop textarea {
	width: 100%;
	min-height: 57px;
	padding: 15px 18px;
	border: 1px solid rgba(13, 51, 63, 0.12);
	border-radius: 12px;
	background: var(--abf-ice);
	color: var(--abf-ink);
	font: inherit;
	font-size: 16px;
	line-height: 25px;
	letter-spacing: -0.01em;
	outline: 0;
	transition: border-color var(--abf-transition), box-shadow var(--abf-transition);
}

.abf-shop input::placeholder,
.abf-shop textarea::placeholder {
	color: #94a3b8;
	opacity: 1;
}

.abf-shop input.input-text:focus,
.abf-shop input[type="password"]:focus,
.abf-shop select:focus,
.abf-shop textarea:focus {
	border-color: var(--abf-green);
	box-shadow: 0 0 0 3px rgba(3, 168, 78, 0.12);
}

.abf-shop .woocommerce-invalid input.input-text {
	border-color: #d92d20;
}

.abf-shop .woocommerce-validated input.input-text {
	border-color: rgba(13, 51, 63, 0.12);
}

.abf-shop .checkout-inline-error-message,
.abf-shop .woocommerce-invalid .woocommerce-input-wrapper + .error {
	margin: 0;
	color: #b42318;
	font-size: 13px;
	line-height: 18px;
}

/* +44 in front of the phone number. */
.abf-shop .abf-field--phone .woocommerce-input-wrapper::before {
	content: "+44";
	position: absolute;
	left: 18px;
	top: 16px;
	color: var(--abf-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 25px;
	pointer-events: none;
}

.abf-shop .abf-field--phone input {
	padding-left: 57px;
}

.abf-shop .abf-field--hidden {
	display: none !important;
}

.abf-shop .woocommerce-form__label-for-checkbox,
.abf-shop .woocommerce-form__label-for-checkbox span,
.abf-shop .woocommerce-terms-and-conditions-wrapper label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--abf-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	cursor: pointer;
}

.abf-shop input[type="checkbox"] {
	width: 20px;
	height: 20px;
	flex: none;
	margin: 0;
	border: 1.5px solid rgba(13, 51, 63, 0.4);
	border-radius: 4px;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.abf-shop input[type="checkbox"]:checked {
	border-color: var(--abf-green);
	background: var(--abf-green) url("../icons/check.svg") center / 12px no-repeat;
}

.abf-shop input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--abf-teal);
	outline-offset: 2px;
}

/* Buttons printed by WooCommerce. */
.abf-shop .button,
.abf-shop button.button,
.abf-shop #place_order,
.abf-shop .checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 55px;
	padding: 15px 28px;
	border: 0;
	border-radius: 12px;
	background: var(--abf-green);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 25px;
	letter-spacing: -0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--abf-transition), border-color var(--abf-transition), color var(--abf-transition);
}

.abf-shop .button:hover,
.abf-shop .button:focus-visible,
.abf-shop #place_order:hover {
	background: var(--abf-green-dark);
	color: #fff;
}

.abf-shop .button:disabled,
.abf-shop .button.disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.abf-shop .abf-button-outline,
.abf-shop button.abf-button-outline,
.abf-shop .woocommerce-orders-table .button,
.abf-shop .woocommerce-PaymentMethod--actions .button {
	border: 1.5px solid rgba(13, 51, 63, 0.18);
	background: #fff;
	color: var(--abf-teal);
}

.abf-shop .abf-button-outline:hover,
.abf-shop button.abf-button-outline:hover,
.abf-shop .woocommerce-orders-table .button:hover,
.abf-shop .woocommerce-PaymentMethod--actions .button:hover {
	border-color: var(--abf-teal);
	background: #fff;
	color: var(--abf-teal);
}

.abf-shop .abf-back-link {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}

.abf-shop .abf-back-link::before {
	content: "← ";
}

.abf-shop .abf-back-link:hover {
	text-decoration: underline;
}

/* Notices (classic and block-style). */
.abf-shop .woocommerce-notices-wrapper:empty {
	display: none;
}

.abf-shop .woocommerce-notices-wrapper,
.abf-shop .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

.abf-shop .woocommerce-error,
.abf-shop .woocommerce-message,
.abf-shop .woocommerce-info,
.abf-shop .wc-block-components-notice-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid rgba(13, 51, 63, 0.12);
	border-left: 4px solid var(--abf-green);
	border-radius: 12px;
	background: var(--abf-ice);
	color: var(--abf-ink);
	font-size: 15px;
	line-height: 22px;
	list-style: none;
}

.abf-shop .woocommerce-error,
.abf-shop .wc-block-components-notice-banner.is-error {
	border-left-color: #d92d20;
	background: #fef3f2;
}

.abf-shop .woocommerce-error li {
	margin: 0;
}

.abf-shop .wc-block-components-notice-banner > svg {
	width: 22px;
	height: 22px;
	flex: none;
	fill: currentColor;
}

.abf-shop .wc-block-components-notice-banner__content {
	flex: 1;
	min-width: 0;
}

.abf-shop .wc-block-components-notice-banner .button,
.abf-shop .woocommerce-message .button,
.abf-shop .woocommerce-info .button {
	min-height: 40px;
	padding: 8px 16px;
	order: 2;
}

/* ---------- Cart ---------- */

.abf-cart__items {
	gap: 0;
	padding: 32px;
}

.abf-cart__table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.abf-cart__table th {
	padding: 0 0 12px;
	border-bottom: 1px solid rgba(13, 51, 63, 0.1);
	color: var(--abf-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
}

.abf-cart__table td {
	padding: 24px 0;
	border-bottom: 1px solid rgba(13, 51, 63, 0.1);
	color: var(--abf-ink);
	font-size: 16px;
	line-height: 22px;
	vertical-align: middle;
}

.abf-cart__table .product-price,
.abf-cart__table .product-subtotal {
	width: 136px;
	padding-left: 16px;
}

.abf-cart__table td.product-subtotal {
	font-weight: 700;
}

.abf-cart__table th.product-subtotal,
.abf-cart__table td.product-subtotal {
	text-align: right;
}

.abf-cart__name {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 25px;
}

.abf-shop .abf-cart__remove {
	display: inline-block;
	margin-top: 6px;
	color: var(--abf-green);
	font-size: 14px;
	font-weight: 600;
	line-height: 19px;
	text-decoration: none;
}

.abf-shop .abf-cart__remove:hover {
	text-decoration: underline;
}

.abf-shop .abf-cart__add {
	align-self: flex-start;
	margin-top: 20px;
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}

.abf-shop .abf-cart__add:hover {
	text-decoration: underline;
}

.abf-cart .cart-collaterals {
	min-width: 0;
}

.abf-cart .wc-proceed-to-checkout {
	padding-top: 20px;
}

.abf-shop .checkout-button {
	width: 100%;
}

.abf-cart .abf-shop-summary__secure {
	margin-top: 0;
}

.abf-cart .abf-shop-trust {
	margin-top: 20px;
}

/* Empty cart. */
.abf-shop .wc-empty-cart-message,
.abf-shop .cart-empty {
	margin-bottom: 24px;
}

.abf-shop .return-to-shop {
	margin: 0;
}

/* ---------- Checkout ---------- */

.abf-checkout__main {
	gap: 20px;
}

.abf-shop .woocommerce-billing-fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.abf-shop .woocommerce-billing-fields__field-wrapper,
.abf-shop .woocommerce-address-fields__field-wrapper,
.abf-shop .woocommerce-EditAccountForm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
}

.abf-shop .form-row-wide,
.abf-shop .woocommerce-billing-fields__field-wrapper > .form-row:not(.form-row-first):not(.form-row-last),
.abf-shop .woocommerce-address-fields__field-wrapper > .form-row:not(.form-row-first):not(.form-row-last) {
	grid-column: 1 / -1;
}

.abf-checkout__payment-title {
	margin-top: 0;
}

.abf-shop #payment {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.abf-shop .wc_payment_methods {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.abf-shop .wc_payment_methods > li {
	padding: 16px 18px;
	border: 1px solid rgba(13, 51, 63, 0.12);
	border-radius: 12px;
	background: #fff;
}

.abf-shop .wc_payment_methods > li:only-child {
	padding: 0;
	border: 0;
}

.abf-shop .wc_payment_methods > li:only-child > input[type="radio"],
.abf-shop .wc_payment_methods > li:only-child > label {
	display: none;
}

.abf-shop .wc_payment_methods > li > label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 8px;
	color: var(--abf-ink);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.abf-shop .wc_payment_methods > li > label img {
	max-height: 22px;
	width: auto;
}

.abf-shop .wc_payment_methods input[type="radio"] {
	accent-color: var(--abf-green);
}

.abf-shop .payment_box {
	margin-top: 12px;
	color: var(--abf-muted);
	font-size: 14px;
	line-height: 21px;
}

.abf-shop .wc_payment_methods > li:only-child .payment_box {
	margin-top: 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--abf-ice);
}

.abf-shop .payment_box fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.abf-shop #payment > .form-row,
.abf-shop .place-order {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.abf-shop #place_order {
	width: 100%;
}

.abf-secure-note {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--abf-muted);
	font-size: 14px;
	line-height: 21px;
}

.abf-secure-note::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: url("../icons/lock.svg") center / contain no-repeat;
}

.abf-shop .woocommerce-terms-and-conditions-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.abf-shop .woocommerce-terms-and-conditions-wrapper .form-row {
	flex-direction: row;
}

.abf-shop .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox {
	align-items: flex-start;
}

.abf-shop .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text {
	display: inline;
}

.abf-shop .woocommerce-terms-and-conditions-wrapper .required {
	display: none;
}

.abf-shop .woocommerce-terms-and-conditions-checkbox-text a {
	color: var(--abf-green);
}

.abf-shop .woocommerce-privacy-policy-text:empty {
	display: none;
}

.abf-shop .abf-shop-summary .woocommerce-checkout-review-order {
	margin: 0;
}

.abf-shop .abf-shop-summary .abf-shop-summary__note {
	padding-top: 14px;
}

.abf-shop .blockUI.blockOverlay {
	border-radius: 24px;
}

/* ---------- Order received ---------- */

.abf-receipt {
	width: min(680px, 100%);
	margin: 0;
	padding: 8px 24px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.abf-receipt__row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding-block: 12px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 20px;
	line-height: 32px;
	letter-spacing: -0.01em;
}

.abf-receipt__row + .abf-receipt__row {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.abf-receipt__row dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
}

.abf-status--order .wp-block-html {
	margin: 0;
}

/* ---------- My Account ---------- */

.abf-shop .woocommerce-account .woocommerce,
.woocommerce-account .abf-shop__content > .woocommerce {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	align-items: start;
	gap: 40px;
}

.woocommerce-account:not(.logged-in) .abf-shop__content > .woocommerce,
.woocommerce-lost-password .abf-shop__content > .woocommerce {
	display: block;
}

.abf-account-sidebar {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border-radius: 24px;
	background: var(--abf-mint);
}

.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.abf-shop .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 14px 18px;
	border-radius: 12px;
	color: var(--abf-teal);
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	text-decoration: none;
	transition: background-color var(--abf-transition);
}

.abf-shop .woocommerce-MyAccount-navigation a:hover {
	background: rgba(13, 51, 63, 0.06);
}

.abf-shop .woocommerce-MyAccount-navigation .is-active a {
	background: var(--abf-teal);
	color: #fff;
	font-weight: 700;
}

.abf-account-help {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
	padding: 20px 18px;
	border-radius: 16px;
	background: #fff;
}

.abf-account-help__title {
	color: var(--abf-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
}

.abf-account-help__text {
	color: var(--abf-muted);
	font-size: 14px;
	line-height: 19px;
}

.abf-shop .abf-account-help__text a {
	color: inherit;
	text-decoration: none;
}

.abf-shop .abf-account-help__button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	margin-top: 6px;
	padding: 15px 24px;
	border: 1.5px solid rgba(13, 51, 63, 0.18);
	border-radius: 12px;
	color: var(--abf-teal);
	font-size: 16px;
	font-weight: 700;
	line-height: 25px;
	text-decoration: none;
	transition: border-color var(--abf-transition);
}

.abf-shop .abf-account-help__button:hover {
	border-color: var(--abf-teal);
}

.woocommerce-MyAccount-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 40px;
	border: 1px solid rgba(13, 51, 63, 0.12);
	border-radius: 24px;
	background: #fff;
}

.woocommerce-MyAccount-content > p:empty {
	display: none;
}

.woocommerce-MyAccount-content > p,
.woocommerce-MyAccount-content .woocommerce-Address address,
.woocommerce-MyAccount-content .woocommerce-customer-details address {
	color: var(--abf-muted);
	font-size: 16px;
	line-height: 22px;
}

.abf-account-dashboard {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.abf-account-links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.abf-shop .abf-account-links a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 24px;
	border-radius: 16px;
	background: var(--abf-mint);
	text-decoration: none;
	transition: box-shadow var(--abf-transition);
}

.abf-shop .abf-account-links a:hover {
	box-shadow: inset 0 0 0 1.5px var(--abf-green);
}

.abf-account-links__title {
	color: var(--abf-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 25px;
}

.abf-account-links__text {
	color: var(--abf-muted);
	font-size: 14px;
	line-height: 19px;
}

/* Orders table. */
.abf-shop .woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.abf-shop .woocommerce-orders-table th,
.abf-shop .woocommerce-orders-table td {
	padding: 20px 16px 20px 0;
	border-bottom: 1px solid rgba(13, 51, 63, 0.1);
	color: var(--abf-muted);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	vertical-align: middle;
}

.abf-shop .woocommerce-orders-table thead th {
	padding-top: 0;
	padding-bottom: 14px;
	color: var(--abf-ink);
	font-weight: 600;
}

.abf-shop .woocommerce-orders-table tbody tr:last-child > * {
	border-bottom: 0;
}

.abf-shop .woocommerce-orders-table__cell-order-number a {
	color: var(--abf-ink);
	font-weight: 700;
	text-decoration: none;
}

.abf-shop .woocommerce-orders-table__cell-order-actions {
	padding-right: 0 !important;
	text-align: right;
	white-space: nowrap;
}

.abf-shop .woocommerce-orders-table .button {
	min-height: 41px;
	padding: 10px 18px;
	border-width: 1px;
	border-color: rgba(13, 51, 63, 0.12);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 19px;
}

.abf-shop .woocommerce-orders-table .button + .button {
	margin-left: 8px;
}

.abf-badge {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--abf-ice);
	color: var(--abf-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	white-space: nowrap;
}

.abf-badge--completed,
.abf-badge--processing {
	background: var(--abf-mint);
	color: var(--abf-green);
}

.abf-badge--pending,
.abf-badge--on-hold {
	background: #fff4db;
	color: #8a5a00;
}

.abf-badge--failed,
.abf-badge--cancelled,
.abf-badge--refunded {
	background: #fef3f2;
	color: #b42318;
}

.abf-shop .woocommerce-pagination {
	display: flex;
	gap: 10px;
}

/* View order. */
.abf-shop .woocommerce-order-details,
.abf-shop .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.abf-shop .woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.abf-shop .woocommerce-table--order-details thead {
	display: none;
}

.abf-shop .woocommerce-table--order-details th,
.abf-shop .woocommerce-table--order-details td {
	padding: 14px 0;
	border-bottom: 1px solid rgba(13, 51, 63, 0.08);
	color: var(--abf-muted);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	vertical-align: top;
}

.abf-shop .woocommerce-table--order-details td:last-child {
	color: var(--abf-ink);
	font-weight: 600;
	text-align: right;
}

.abf-shop .woocommerce-table--order-details td.product-name a {
	color: inherit;
	text-decoration: none;
}

.abf-shop .woocommerce-table--order-details .product-quantity {
	font-weight: 400;
}

.abf-shop .woocommerce-table--order-details tfoot tr:last-child th {
	color: var(--abf-ink);
	font-weight: 700;
}

.abf-shop .woocommerce-table--order-details tfoot tr:last-child td {
	font-weight: 800;
}

.abf-shop .order-again {
	margin: 4px 0 0;
}

.abf-shop .order-again .button {
	border: 1.5px solid rgba(13, 51, 63, 0.18);
	background: #fff;
	color: var(--abf-teal);
}

.abf-shop .woocommerce-customer-details address {
	font-style: normal;
	line-height: 1.6;
}

.abf-shop .woocommerce-customer-details--phone,
.abf-shop .woocommerce-customer-details--email {
	margin: 0;
}

.abf-shop .woocommerce-OrderUpdates {
	margin: 0;
	padding-left: 18px;
	color: var(--abf-muted);
}

/* Addresses. */
.abf-shop .woocommerce-Addresses {
	display: block;
}

.abf-shop .woocommerce-Address {
	padding: 24px 28px;
	border: 1px solid rgba(13, 51, 63, 0.1);
	border-radius: 16px;
	background: var(--abf-ice);
}

.abf-shop .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.abf-shop .woocommerce-Address-title h2 {
	font-size: 18px;
	line-height: 25px;
}

.abf-shop .woocommerce-Address-title .edit {
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}

.abf-shop .woocommerce-Address address {
	font-style: normal;
	line-height: 1.6;
}

.abf-shop .woocommerce-address-fields {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.abf-shop .woocommerce-address-fields > p {
	margin: 0;
}

.woocommerce-edit-address .woocommerce-MyAccount-content > form > h2 {
	margin-bottom: 20px;
}

/* Account details. */
.abf-shop .woocommerce-EditAccountForm > .form-row:not(.form-row-first):not(.form-row-last),
.abf-shop .woocommerce-EditAccountForm > fieldset,
.abf-shop .woocommerce-EditAccountForm > p:not(.form-row),
.abf-shop .woocommerce-EditAccountForm > .clear {
	grid-column: 1 / -1;
}

.abf-shop .woocommerce-EditAccountForm > .clear {
	display: none;
}

.abf-shop .woocommerce-EditAccountForm em {
	color: var(--abf-muted);
	font-size: 13px;
	font-style: normal;
	line-height: 18px;
}

.abf-shop .woocommerce-EditAccountForm fieldset {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
	margin: 0;
	padding: 0;
	border: 0;
}

.abf-shop .woocommerce-EditAccountForm fieldset legend {
	grid-column: 1 / -1;
	margin-bottom: 20px;
	padding: 0;
	font-size: 22px;
	line-height: 30px;
}

.abf-shop .woocommerce-EditAccountForm fieldset .form-row:first-of-type {
	grid-column: 1 / -1;
}

.abf-shop .woocommerce-EditAccountForm fieldset .form-row:not(:first-of-type) {
	grid-column: auto;
}

.abf-shop .woocommerce-EditAccountForm #account_display_name + span em,
.abf-shop .woocommerce-EditAccountForm #account_display_name ~ em {
	display: none;
}

.abf-shop .woocommerce-EditAccountForm > p:last-of-type .button {
	align-self: flex-start;
}

.abf-shop .password-input {
	position: relative;
	display: block;
}

.abf-shop .show-password-input {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	padding: 0;
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px no-repeat;
	cursor: pointer;
}

.abf-shop .show-password-input.display-password {
	opacity: 0.6;
}

.abf-shop .woocommerce-password-strength {
	margin-top: 8px;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--abf-ice);
	font-size: 13px;
}

.abf-shop .woocommerce-password-hint {
	color: var(--abf-muted);
	font-size: 13px;
}

/* Payment methods. */
.abf-shop .woocommerce-MyAccount-paymentMethods {
	width: 100%;
	border-collapse: collapse;
}

.abf-shop .woocommerce-MyAccount-paymentMethods th,
.abf-shop .woocommerce-MyAccount-paymentMethods td {
	padding: 16px 12px 16px 0;
	border-bottom: 1px solid rgba(13, 51, 63, 0.1);
	text-align: left;
}

.abf-shop .woocommerce-MyAccount-content > .button,
.abf-shop .woocommerce-MyAccount-content > a.button {
	align-self: flex-start;
	border: 1.5px solid rgba(13, 51, 63, 0.18);
	background: #fff;
	color: var(--abf-teal);
}

.woocommerce-payment-methods .woocommerce-MyAccount-content::after {
	content: "Secure payments by Stripe";
	color: var(--abf-muted);
	font-size: 14px;
	line-height: 19px;
}

/* Log in and register. */
.abf-account-auth {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 40px;
}

.abf-account-auth--single {
	max-width: 700px;
	margin-inline: auto;
	grid-template-columns: minmax(0, 1fr);
}

.abf-account-auth form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
}

.abf-account-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.abf-shop .abf-account-auth__lost {
	font-size: 14px;
	font-weight: 600;
	line-height: 19px;
	text-decoration: none;
}

.abf-shop .abf-account-auth__lost:hover {
	text-decoration: underline;
}

.abf-account-auth .button {
	width: 100%;
}

.abf-shop .woocommerce-form-register button.button.abf-button-outline {
	justify-content: flex-start;
	padding-inline: 18px;
	border-width: 1px;
	border-color: rgba(13, 51, 63, 0.18);
	font-weight: 600;
}

.abf-shop .woocommerce-privacy-policy-text p {
	color: var(--abf-muted);
	font-size: 14px;
	line-height: 19px;
}

/* Lost / reset password. */
.abf-shop .woocommerce-ResetPassword {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: min(640px, 100%);
	margin: 0 auto;
	padding: 40px;
	border: 1px solid rgba(13, 51, 63, 0.12);
	border-radius: 24px;
	background: #fff;
}

.abf-shop .woocommerce-ResetPassword > p:first-child {
	display: flex;
	flex-direction: column;
	gap: 20px;
	color: var(--abf-muted);
	font-size: 16px;
	line-height: 22px;
}

.abf-shop .woocommerce-lost-password .woocommerce-ResetPassword > p:first-child::before,
.woocommerce-lost-password .abf-shop .woocommerce-ResetPassword.lost_reset_password > p:first-child::before {
	content: "Lost your password?";
}

.abf-shop .woocommerce-ResetPassword .form-row-first,
.abf-shop .woocommerce-ResetPassword .form-row-last {
	width: 100%;
}

.abf-shop .woocommerce-ResetPassword .clear {
	display: none;
}

.abf-shop .woocommerce-ResetPassword .button {
	align-self: center;
	min-width: 220px;
}

.abf-shop .woocommerce-lost-password .abf-back-link,
.woocommerce-lost-password .abf-shop .abf-back-link {
	display: block;
	width: min(640px, 100%);
	margin: 20px auto 0;
	padding-inline: 40px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1199px) {
	.abf-shop-hero::before {
		right: -60px;
	}

	.abf-shop-hero::after {
		right: 180px;
	}

	.abf-shop-hero__title {
		font-size: 44px;
		line-height: 52px;
	}

	.abf-shop {
		padding-block: 64px 80px;
	}

	.abf-shop-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.woocommerce-account .abf-shop__content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.abf-account-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
		gap: 16px;
	}

	.woocommerce-MyAccount-navigation ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.abf-account-help {
		margin-top: 0;
	}
}

@media (max-width: 991px) {
	.abf-account-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.abf-account-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.abf-account-auth {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.wp-block-cover.abf-shop-hero {
		min-height: 0 !important;
	}

	.abf-shop-hero::before {
		top: -160px;
		right: -140px;
	}

	.abf-shop-hero::after {
		display: none;
	}

	.abf-shop-hero__content {
		gap: 12px;
		padding-block: 56px 48px;
	}

	.abf-shop-hero__title {
		font-size: 34px;
		line-height: 40px;
	}

	.abf-shop {
		padding-block: 40px 64px;
	}

	.abf-shop-card,
	.woocommerce-MyAccount-content,
	.abf-shop .woocommerce-ResetPassword {
		padding: 24px 20px;
		border-radius: 20px;
	}

	.abf-shop-summary {
		padding: 24px 20px;
		border-radius: 20px;
	}

	.abf-cart__items {
		padding: 20px;
	}

	.abf-cart__table thead {
		display: none;
	}

	.abf-cart__table,
	.abf-cart__table tbody,
	.abf-cart__table tr,
	.abf-cart__table td {
		display: block;
	}

	.abf-cart__table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 16px;
		padding-block: 16px;
		border-bottom: 1px solid rgba(13, 51, 63, 0.1);
	}

	.abf-cart__table td {
		padding: 0;
		border: 0;
	}

	.abf-cart__table td.product-name {
		grid-column: 1 / -1;
	}

	.abf-cart__table .product-price,
	.abf-cart__table .product-subtotal {
		width: auto;
		padding-left: 0;
	}

	.abf-cart__table td.product-price::before,
	.abf-cart__table td.product-subtotal::before {
		content: attr(data-title) ": ";
		color: var(--abf-muted);
		font-weight: 400;
	}

	.abf-cart__table td.product-subtotal {
		text-align: right;
	}

	.abf-shop .woocommerce-billing-fields__field-wrapper,
	.abf-shop .woocommerce-address-fields__field-wrapper,
	.abf-shop .woocommerce-EditAccountForm,
	.abf-shop .woocommerce-EditAccountForm fieldset {
		grid-template-columns: minmax(0, 1fr);
	}

	.abf-shop .woocommerce-billing-fields__field-wrapper > .form-row,
	.abf-shop .woocommerce-address-fields__field-wrapper > .form-row,
	.abf-shop .woocommerce-EditAccountForm > .form-row {
		grid-column: 1 / -1;
	}

	.abf-receipt {
		padding: 4px 16px;
	}

	.abf-receipt__row {
		flex-direction: column;
		gap: 0;
		font-size: 16px;
		line-height: 25px;
	}

	.abf-receipt__row dd {
		text-align: left;
	}

	.woocommerce-MyAccount-navigation ul {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Orders become stacked cards. */
	.abf-shop .woocommerce-orders-table thead {
		display: none;
	}

	.abf-shop .woocommerce-orders-table,
	.abf-shop .woocommerce-orders-table tbody,
	.abf-shop .woocommerce-orders-table tr,
	.abf-shop .woocommerce-orders-table th,
	.abf-shop .woocommerce-orders-table td {
		display: block;
	}

	.abf-shop .woocommerce-orders-table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 12px;
		padding-block: 16px;
		border-bottom: 1px solid rgba(13, 51, 63, 0.1);
	}

	.abf-shop .woocommerce-orders-table tbody tr:last-child {
		border-bottom: 0;
	}

	.abf-shop .woocommerce-orders-table th,
	.abf-shop .woocommerce-orders-table td {
		padding: 0;
		border: 0;
	}

	.abf-shop .woocommerce-orders-table__cell-order-total,
	.abf-shop .woocommerce-orders-table__cell-order-date {
		grid-column: 1 / -1;
	}

	.abf-shop .woocommerce-orders-table__cell-order-actions {
		grid-column: 1 / -1;
		text-align: left;
	}

	.abf-account-auth__row {
		flex-wrap: wrap;
	}
}

/* ---------- Shop / account hero + body, tablet + mobile (Figma "Section / Shop|Account / Hero", "Body") ---------- */
@media (max-width: 1199px) {
	.wp-block-cover.abf-shop-hero {
		min-height: 0 !important;
	}

	.abf-shop-hero__content {
		gap: 16px;
		padding-block: 96px 72px;
	}

	.abf-shop-hero__title {
		font-size: 44px;
		line-height: 49px;
	}

	.abf-shop {
		padding-block: 80px 96px;
	}
}

@media (max-width: 767px) {
	.abf-shop-hero__content {
		gap: 16px;
		padding-block: 96px 72px;
	}

	.abf-shop-hero__title {
		font-size: 34px;
		line-height: 38px;
	}

	.abf-shop {
		padding-block: 80px 96px;
	}
}

/* ---------- My Account, tablet + mobile (Figma "My Account / ... / Tablet|Mobile") ----------
   Sidebar full width: the menu as one column with the Need help card under it; dashboard quick links 3 across
   on tablet, stacked on mobile. */
@media (max-width: 1199px) {
	.woocommerce-account .abf-shop__content > .woocommerce {
		gap: 28px;
	}

	.abf-account-sidebar {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.abf-account-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.abf-account-links {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Figma keeps 40px inside the account content card on mobile too. */
@media (max-width: 767px) {
	.woocommerce-MyAccount-content {
		padding: 40px;
	}
}
