/*
 * BrikFront theme: the cart, checkout and account pages (WooCommerce's classic
 * shortcodes and their forms). Loads next to woocommerce.css, only on those pages.
 */

:root {
	--bf-icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.6 5 2.9 9.3 1.6 12c1.3 2.7 5 7 10.4 7s9.1-4.3 10.4-7C21.1 9.3 17.4 5 12 5Zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10Zm0-8a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E");
	--bf-icon-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.3 2 2 3.3l3.2 3.2C3.5 7.9 2.3 9.9 1.6 12c1.3 2.7 5 7 10.4 7 1.8 0 3.4-.5 4.8-1.2l3.9 3.9 1.3-1.3L3.3 2Zm8.7 15a5 5 0 0 1-4.6-7l1.6 1.6a3 3 0 0 0 3.4 3.4l1.6 1.6c-.6.3-1.3.4-2 .4Zm10.4-5C21.1 9.3 17.4 5 12 5c-1.1 0-2.2.2-3.1.5l2.1 2.1A5 5 0 0 1 16.4 13l3 3c1.4-1.2 2.4-2.6 3-4Z'/%3E%3C/svg%3E");
}

/* These pages get a wider column, for the cart table and the two-column checkout. */
.woocommerce-cart .bf-main,
.woocommerce-checkout .bf-main,
.woocommerce-account .bf-main {
	--wp--style--global--content-size: 1160px;
}
.woocommerce-cart .bf-page-title,
.woocommerce-checkout .bf-page-title,
.woocommerce-account .bf-page-title {
	font-size: var(--wp--preset--font-size--bf-2-xl);
}
.woocommerce :where(h2, h3) {
	font-size: var(--wp--preset--font-size--bf-xl);
}
.woocommerce :where(input.input-text, select, textarea) {
	inline-size: 100%;
	max-inline-size: 100%;
}

/* Store tables (cart, totals, orders, order details). */
.woocommerce table.shop_table {
	inline-size: 100%;
	margin: 0 0 24px;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}
.woocommerce table.shop_table :where(th, td) {
	padding: 14px 12px;
	border-block-end: 1px solid var(--wp--preset--color--bf-line);
	text-align: start;
	vertical-align: middle;
}
.woocommerce table.shop_table thead th {
	padding-block: 10px;
	border-block-end-color: var(--wp--preset--color--bf-text);
	color: var(--wp--preset--color--bf-muted);
	font-size: var(--wp--preset--font-size--bf-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Form rows (checkout, account, shipping calculator). */
.woocommerce :where(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper, .shipping-calculator-form) {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}
.woocommerce form .form-row {
	flex: 1 1 100%;
	margin: 0 0 16px;
	padding: 0;
}
.woocommerce form .form-row:where(.form-row-first, .form-row-last) {
	flex-basis: calc(50% - 8px);
	min-inline-size: 0;
}
.woocommerce form .form-row label,
.woocommerce form .woocommerce-form-row label {
	display: block;
	margin-block-end: 6px;
	font-size: var(--wp--preset--font-size--bf-s);
	font-weight: 600;
	line-height: 1.4;
}
.woocommerce form .form-row label.checkbox,
.woocommerce form label.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 400;
	cursor: pointer;
}
.woocommerce .woocommerce-input-wrapper {
	display: block;
}
.woocommerce form .form-row.woocommerce-invalid :where(input.input-text, select, .select2-selection) {
	border-color: var(--wp--preset--color--bf-sale);
}
.woocommerce form .form-row .description {
	margin-block-start: 6px;
	color: var(--wp--preset--color--bf-muted);
	font-size: var(--wp--preset--font-size--bf-s);
}

/* Country and state pickers (WooCommerce's select2), the same shape as the other fields. */
.woocommerce .select2-container {
	inline-size: 100% !important;
}
.woocommerce .select2-container .select2-selection--single {
	block-size: auto;
	min-block-size: 46px;
	border: 1px solid #8a8a90;
	border-radius: var(--wp--preset--border-radius--bf-field);
	background-color: var(--wp--preset--color--bf-bg);
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	padding-block: 11px;
	padding-inline: 14px 36px;
	color: var(--wp--preset--color--bf-text);
	line-height: 1.4;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	block-size: 100%;
	inset-inline-end: 8px;
}
.select2-dropdown {
	border-color: #8a8a90;
	border-radius: var(--wp--preset--border-radius--bf-field);
	overflow: hidden;
}
.select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: var(--wp--preset--color--bf-text);
	color: var(--wp--preset--color--bf-bg);
}

/* Show password: an eye drawn with CSS (WooCommerce used its icon font). */
.woocommerce .password-input {
	position: relative;
	display: block;
}
.woocommerce .password-input input {
	padding-inline-end: 52px;
}
.woocommerce .show-password-input {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 2px;
	inline-size: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--bf-muted);
	cursor: pointer;
}
.woocommerce .show-password-input::after {
	content: "";
	display: block;
	inline-size: 20px;
	block-size: 20px;
	margin: auto;
	background-color: currentColor;
	mask: var(--bf-icon-eye) center / contain no-repeat;
}
.woocommerce .show-password-input.display-password::after {
	mask-image: var(--bf-icon-eye-off);
}

/* Cart. */
.woocommerce table.cart .product-thumbnail {
	inline-size: 96px;
}
.woocommerce table.cart .product-thumbnail img {
	display: block;
	inline-size: 80px;
	block-size: auto;
	border-radius: var(--wp--preset--border-radius--bf-field);
	background-color: var(--wp--preset--color--bf-surface);
}
.woocommerce table.cart .product-name a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}
.woocommerce table.cart .product-name a:hover {
	text-decoration: underline;
}
.woocommerce table.cart .product-remove {
	inline-size: 44px;
}
.woocommerce a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 32px;
	block-size: 32px;
	border-radius: 50%;
	color: var(--wp--preset--color--bf-muted);
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
}
.woocommerce a.remove:hover {
	background-color: var(--wp--preset--color--bf-surface);
	color: var(--wp--preset--color--bf-text);
}
.woocommerce table.cart :where(.product-subtotal, .product-price, .product-quantity) {
	inline-size: 1%;
	white-space: nowrap;
}
.woocommerce table.cart td.actions {
	padding-block: 20px;
	padding-inline: 0;
	border-block-end: 0;
}
.woocommerce table.cart td.actions .coupon {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.woocommerce table.cart td.actions .coupon .input-text {
	inline-size: 220px;
}
.woocommerce table.cart td.actions > .button {
	float: inline-end;
}
.woocommerce .cart-collaterals {
	display: grid;
	gap: 48px;
	margin-block-start: 24px;
}
.woocommerce .cart_totals,
.woocommerce #order_review {
	padding: 28px;
	border-radius: 16px;
	background-color: var(--wp--preset--color--bf-surface);
}
.woocommerce .cart_totals > h2 {
	margin: 0 0 12px;
}
.woocommerce .cart_totals table.shop_table :where(th, td) {
	padding-inline: 0;
	vertical-align: top;
}
.woocommerce .cart_totals table.shop_table td {
	text-align: end;
}
.woocommerce .cart_totals .order-total :where(th, td) {
	border-block-end: 0;
	font-size: var(--wp--preset--font-size--bf-l);
	font-weight: 600;
}
.woocommerce ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul#shipping_method li {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 6px;
}
.woocommerce .woocommerce-shipping-destination,
.woocommerce .shipping-calculator-button {
	display: inline-block;
	margin: 6px 0 0;
	color: var(--wp--preset--color--bf-muted);
	font-size: var(--wp--preset--font-size--bf-s);
}
.woocommerce .shipping-calculator-form {
	margin-block-start: 12px;
	text-align: start;
}
.woocommerce .wc-proceed-to-checkout {
	padding-block-start: 8px;
}
.woocommerce .wc-proceed-to-checkout .checkout-button {
	display: block;
	inline-size: 100%;
	padding-block: 16px;
	text-align: center;
}
@media (min-width: 900px) {
	.woocommerce .cart-collaterals {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	}
	.woocommerce .cart-collaterals .cart_totals {
		grid-column: 2;
	}
	.woocommerce .cart-collaterals .cross-sells {
		grid-column: 1;
		grid-row: 1;
	}
}
@media (max-width: 767.98px) {
	.woocommerce table.cart thead {
		display: none;
	}
	.woocommerce table.cart,
	.woocommerce table.cart tbody {
		display: block;
	}
	.woocommerce table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 80px minmax(0, 1fr) auto;
		grid-template-areas: "thumb name remove" "thumb price price" "thumb qty total";
		gap: 6px 16px;
		align-items: center;
		padding-block: 16px;
		border-block-end: 1px solid var(--wp--preset--color--bf-line);
	}
	.woocommerce table.cart tr.cart_item td {
		display: block;
		padding: 0;
		border: 0;
		inline-size: auto;
	}
	.woocommerce table.cart td.product-thumbnail {
		grid-area: thumb;
		align-self: start;
	}
	.woocommerce table.cart td.product-name {
		grid-area: name;
	}
	.woocommerce table.cart td.product-remove {
		grid-area: remove;
		justify-self: end;
	}
	.woocommerce table.cart td.product-price {
		grid-area: price;
		color: var(--wp--preset--color--bf-muted);
		font-size: var(--wp--preset--font-size--bf-s);
	}
	.woocommerce table.cart td.product-quantity {
		grid-area: qty;
	}
	.woocommerce table.cart td.product-subtotal {
		grid-area: total;
		font-weight: 600;
		text-align: end;
	}
	.woocommerce table.cart tr:not(.cart_item) {
		display: block;
	}
	.woocommerce table.cart td.actions {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.woocommerce table.cart td.actions > .button {
		float: none;
	}
	.woocommerce table.cart td.actions .coupon {
		display: flex;
		flex-wrap: nowrap;
	}
	.woocommerce table.cart td.actions .coupon .input-text {
		flex: 1 1 0;
		min-inline-size: 0;
		inline-size: auto;
	}
	.woocommerce table.cart td.actions .coupon .button {
		flex: none;
		white-space: nowrap;
	}
	.woocommerce .cart_totals,
	.woocommerce #order_review {
		padding: 20px;
	}
}

/* Checkout: the fields on the left, the order on the right from 1024 px. */
.woocommerce form.checkout #customer_details :where(.col-1, .col-2) {
	inline-size: 100%;
	float: none;
}
.woocommerce form.checkout h3 {
	margin: 32px 0 16px;
}
.woocommerce form.checkout .woocommerce-billing-fields > h3:first-child {
	margin-block-start: 28px;
}
.woocommerce form.checkout #order_review_heading {
	margin: 0;
	padding: 28px 28px 0;
	border-radius: 16px 16px 0 0;
	background-color: var(--wp--preset--color--bf-surface);
}
.woocommerce form.checkout #order_review {
	padding-block-start: 12px;
	border-start-start-radius: 0;
	border-start-end-radius: 0;
}
.woocommerce #ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--wp--preset--font-size--bf-l);
	cursor: pointer;
}
.woocommerce table.woocommerce-checkout-review-order-table :where(th, td) {
	padding-inline: 0;
}
.woocommerce table.woocommerce-checkout-review-order-table :where(.product-total, tfoot td) {
	text-align: end;
}
.woocommerce table.woocommerce-checkout-review-order-table .product-quantity {
	color: var(--wp--preset--color--bf-muted);
	font-weight: 400;
}
.woocommerce table.woocommerce-checkout-review-order-table .order-total :where(th, td) {
	border-block-end: 0;
	font-size: var(--wp--preset--font-size--bf-l);
	font-weight: 600;
}
.woocommerce #payment ul.payment_methods {
	margin: 0 0 20px;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--bf-line);
	border-radius: 12px;
	background-color: var(--wp--preset--color--bf-bg);
	list-style: none;
}
.woocommerce #payment ul.payment_methods > li {
	margin: 0;
	padding: 14px 16px;
}
.woocommerce #payment ul.payment_methods > li + li {
	border-block-start: 1px solid var(--wp--preset--color--bf-line);
}
.woocommerce #payment ul.payment_methods > li > label {
	display: inline;
	margin-inline-start: 8px;
	font-weight: 600;
	cursor: pointer;
}
.woocommerce #payment ul.payment_methods > li img {
	display: inline-block;
	max-block-size: 24px;
	margin-inline-start: 6px;
	vertical-align: middle;
}
.woocommerce #payment .payment_box {
	margin-block-start: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	background-color: var(--wp--preset--color--bf-surface);
	color: var(--wp--preset--color--bf-muted);
	font-size: var(--wp--preset--font-size--bf-s);
}
.woocommerce #payment .payment_box p {
	margin: 0;
}
.woocommerce #payment .place-order {
	margin: 0;
	padding: 0;
}
.woocommerce .woocommerce-terms-and-conditions-wrapper {
	margin-block-end: 16px;
	color: var(--wp--preset--color--bf-muted);
	font-size: var(--wp--preset--font-size--bf-s);
}
.woocommerce #place_order {
	inline-size: 100%;
	padding-block: 16px;
	font-size: var(--wp--preset--font-size--bf-l);
}
@media (min-width: 1024px) {
	.woocommerce form.checkout.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
		gap: 0 64px;
		align-items: start;
	}
	.woocommerce form.checkout > * {
		grid-column: 1;
	}
	.woocommerce form.checkout > .woocommerce-NoticeGroup {
		grid-column: 1 / -1;
		grid-row: 1;
	}
	.woocommerce form.checkout > #customer_details {
		grid-row: 2 / span 3;
	}
	.woocommerce form.checkout > #order_review_heading {
		grid-column: 2;
		grid-row: 2;
	}
	.woocommerce form.checkout > #order_review {
		grid-column: 2;
		grid-row: 3;
	}
}
@media (max-width: 1023.98px) {
	.woocommerce form.checkout #order_review_heading {
		margin-block-start: 32px;
	}
}

/* Account. */
.woocommerce #customer_login.col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 32px;
}
.woocommerce #customer_login :where(.col-1, .col-2) {
	inline-size: auto;
	float: none;
}
.woocommerce :where(form.woocommerce-form-login, form.woocommerce-form-register, form.lost_reset_password) {
	max-inline-size: 460px;
	margin: 0;
	padding: 28px;
	border: 1px solid var(--wp--preset--color--bf-line);
	border-radius: 16px;
}
.woocommerce form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
.woocommerce :where(.woocommerce-form-login__submit, .woocommerce-form-register__submit) {
	inline-size: 100%;
}
.woocommerce .woocommerce-LostPassword {
	margin: 16px 0 0;
	font-size: var(--wp--preset--font-size--bf-s);
}
.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce-MyAccount-navigation li {
	margin: 0;
}
.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 8px 14px;
	border-radius: var(--wp--preset--border-radius--bf-field);
	color: inherit;
	text-decoration: none;
}
.woocommerce-MyAccount-navigation a:hover {
	background-color: var(--wp--preset--color--bf-surface);
}
.woocommerce-MyAccount-navigation .is-active a {
	background-color: var(--wp--preset--color--bf-surface);
	font-weight: 600;
}
.woocommerce-MyAccount-content {
	margin-block-start: 24px;
}
.woocommerce-MyAccount-content > :first-child {
	margin-block-start: 0;
}
@media (min-width: 900px) {
	.woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 48px;
		align-items: start;
	}
	.woocommerce-MyAccount-navigation ul {
		flex-direction: column;
	}
	.woocommerce-MyAccount-content {
		margin-block-start: 0;
	}
}
.woocommerce :where(.woocommerce-Addresses, .woocommerce-columns--addresses) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 24px;
}
.woocommerce :where(.woocommerce-Address, .woocommerce-column) {
	inline-size: auto;
	float: none;
}
.woocommerce address {
	font-style: normal;
	line-height: 1.6;
}
.woocommerce .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

/* Order details (thank you page, account). */
.woocommerce ul.order_details {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.order_details li {
	color: var(--wp--preset--color--bf-muted);
	font-size: var(--wp--preset--font-size--bf-s);
}
.woocommerce ul.order_details li strong {
	display: block;
	color: var(--wp--preset--color--bf-text);
	font-size: var(--wp--preset--font-size--bf-m);
}
