:root {
	--wc-red: #ff0000 !important;
}

html,
body {
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

.woocommerce div.product a.reset_variations {
	display: none !important;
}

.woocommerce div.product .single_variation_wrap,
.woocommerce .single_variation_wrap .woocommerce-variation {
	margin: 0 !important;
}

.woocommerce-custom-field {
	display: flex;
	align-items: center;
	padding-bottom: var(--wp--style--block-gap);
}

.woocommerce-custom-field__label {
	font-weight: 700;
	padding-right: 1em;
	margin-bottom: 0 !important;
}

.woocommerce-custom-field__input {
	font-size: var(--wp--preset--font-size--small);
	height: 3em;
	padding: .9em 0 .9em 1.1em;
	box-sizing: border-box;
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
	background: none !important;
}

/* .woocommerce-checkout main .woocommerce, */
.woocommerce-page main {
	max-width: none !important;
	margin: 0 !important;
}

.woocommerce-checkout main .woocommerce {
	max-width: 680px !important;
	margin: 0 auto;
}

.woocommerce-checkout #customer_details {
	float: none !important;
	width: 100% !important;
}

.woocommerce-billing-fields__field-wrapper {
	margin: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.woocommerce-billing-fields__field-wrapper>p {
	float: none !important;
	flex: 1 1 calc(50% - 1.5rem);
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout-review-order-table tfoot,
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-payment,
.woocommerce-checkout-payment .wc_payment_methods {
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block;
}

.woocommerce-checkout-payment .form-row {
	padding: 0 !important;
	margin: 2rem 0 0 !important;
}

.woocommerce-checkout-payment .form-row .button,
.single-product .single_add_to_cart_button {
	background: var(--wp--preset--color--primary) !important;
	transition: .2s;
}

.woocommerce-checkout-payment .form-row .button:hover,
.single-product .single_add_to_cart_button:hover {
	opacity: .7;
}

.woocommerce-checkout-review-order-table tfoot {
	display: flex;
	flex-direction: column;
}

.woocommerce-checkout-review-order-table .woocommerce-shipping-totals {
	display: flex;
	order: 99;
	flex-direction: column;
}

.woocommerce-checkout-review-order-table .woocommerce-shipping-totals th,
.woocommerce-page .woocommerce-checkout h3 {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700 !important;
	margin: 2rem 0 1.25rem;
	border: none !important;
	padding: 0 !important;
}

.wp-block-search__input {
	padding: 0 .5rem;
}

.woocommerce-checkout .woocommerce-error {
	border: 2px solid var(--wc-red);
	background: none;
	border-radius: var(--wc-form-border-radius);
	padding: 1px 1.5rem;
	font-size: 1rem;
}

.woocommerce-checkout .woocommerce-error li {
	margin: 1rem 0;
}

.wp-block-cover .wp-block-cover__inner-container {
	position: static;
	align-items: inherit;
	justify-content: inherit;
}

.wp-block-cover .wp-block-cover__inner-container p {
	align-items: inherit;
	justify-content: inherit;
}

.wp-block-cover .wp-block-cover__inner-container a {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	display: flex;
	align-items: inherit;
	justify-content: inherit;
	padding: var(--wp--preset--spacing--50);
}

.wp-block-woocommerce-cart-order-summary-shipping-block {
	display: none !important;
}

/* custom category filter */
.custom-wc-category-filter-block {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.custom-wc-category-filter-block__item,
.wc-block-product-filter-chips__item {
	display: inline-flex;
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
	border-radius: 2px;
	color: inherit;
	cursor: pointer;
	font-family: inherit;
	font-size: .8em;
	padding: 5px .75em;
	text-decoration: none;
	min-height: 32px;
	line-height: normal;
	text-align: left;
}

.custom-wc-category-filter-block__item:hover {
	background: #e9e6ed;
}

.custom-wc-category-filter-block__item:focus {
	outline: 1px solid currentColor;
	outline-offset: 1px;
}

.custom-wc-category-filter-block__item.active {
	background-color: rgb(59, 59, 59);
	color: rgb(255, 255, 255);
	border-color: rgb(59, 59, 59);
}

.wc-block-product-filter-chips__show-more {
	font-size: 12px;
}

.wc-block-product-filter-chips__show-more[hidden] {
	display: none !important;
}

/* checkout */
.woocommerce-checkout .woocommerce-privacy-policy-text {
	display: none !important;
}

/* Products Container */
.wc-products-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wc-products-container.wc-grouped-products {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.wc-grouped-products .wc-product-item {
	padding-bottom: 32px;
	border-bottom: 1px solid #e9e6ed;
}

.wc-product-description {
	font-size: 16px;
}

.wc-grouped-products .wc-product-description {
	font-size: 14px;
	margin-top: 16px;
}

/* Single Product Item */
.wc-product-item {
	display: flex;
	gap: 20px;
}

.wc-product-item__action {
	flex: 0 1 calc(100% - 33.33%);
}

/* Image */
.wc-product-image {
	display: none;
}

.wc-grouped-products .wc-product-image {
	display: block;
	flex: 0 1 33.33%;
}

.wc-grouped-products .wc-product-image a {
	transition: .2s;
}

.wc-grouped-products .wc-product-image a:hover {
	opacity: .9;
}

.wc-product-image img {
	width: 100%;
	height: auto;
}

/* Title */
.wc-product-title {
	display: none;
}

.wc-grouped-products .wc-product-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.wc-grouped-products .wc-product-title a {
	text-decoration: none;
}

/* Price */
.wc-product-price {
	display: none;
}

.wc-grouped-products .wc-product-price {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #111;
	margin-top: 8px;
}

.wc-product-price .woocommerce-Price-amount {
	display: inline;
}

.wc-product-custom-price {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
}

/* Attributes */
.wc-grouped-products .wc-product-attributes {
	margin-top: 32px;
}

.wc-product-attributes__label {
	font-size: 14px;
	font-weight: 700;
	margin-top: 18px;
	line-height: 1;
}

.wc-product-attributes__radio-wrap {
	display: inline-block;
	max-width: 100%;
}

.wc-product-attributes__radio {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 8px;
}

.wc-radio-attribute {
	position: relative;
	overflow: hidden;
	margin: 0 !important;
}

.wc-radio-attribute__input {
	position: absolute;
	left: -9999px;
}

.wc-radio-attribute__label {
	display: flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	background: transparent;
	border: 1px solid #adadad;
	border-radius: 2px;
	color: inherit;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	padding: 0 1.3em;
	height: 2.5em;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
}

.wc-radio-attribute:hover .wc-radio-attribute__label {
	background: #e9e6ed;
}

.wc-radio-attribute__input:checked+.wc-radio-attribute__label {
	background-color: rgb(59, 59, 59);
	color: rgb(255, 255, 255);
	border-color: rgb(59, 59, 59);
}

.wc-radio-attribute__input:disabled+.wc-radio-attribute__label {
	opacity: .35;
	cursor: not-allowed;
}

/* Quantity */
.wc-product-qty-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
}

.wc-product-qty-wrap__qty {
	flex: 0 0 40px;
}

.wc-product-qty-wrap__add {
	flex: 1 1 auto;
}

.wc-product-qty {
	width: 60px;
	padding: 6px 3px 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
	text-align: center;
	height: 48px;
	font-size: 16px;
	outline: none;
	appearance: initial;
}

/* Add to Cart Button */
.wc-product-add-to-cart {
	margin: 0 !important;
	color: #fff !important;
	padding: 0 32px !important;
	height: 48px;
}

.wc-product-add-to-cart:disabled {
	opacity: .5;
}

.wc-grouped-products__general {
	text-align: center;
}

.wc-grouped-products__general .wc-product-add-to-cart {
	width: 100%;
	margin-top: 16px !important;
}

.wc-product-alert {
	display: none;
	color: #cc1818;
	margin-top: 16px;
}

/* pagination */
.wp-block-query-pagination-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #adadad;
	line-height: normal;
}

.wp-block-query-pagination-numbers a.page-numbers:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background-color: rgb(59, 59, 59);
	color: rgb(255, 255, 255);
	border-color: rgb(59, 59, 59);
}

.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .wp-block-query-pagination-previous {
	font-size: 0;
	display: flex;
	justify-content: center;
	text-align: center;
	width: 32px;
	height: 32px;
	border: 1px solid #adadad;
	line-height: normal;
}

.wp-block-query-pagination .wp-block-query-pagination-next:hover,
.wp-block-query-pagination .wp-block-query-pagination-previous:hover {
	background: #e9e6ed;
}

.wp-block-query-pagination {
	gap: 4px;
}

.wp-block-query-pagination .wp-block-query-pagination-next .is-arrow-chevron,
.wp-block-query-pagination .wp-block-query-pagination-previous .is-arrow-chevron {
	font-size: 18px;
	margin: 0;
	line-height: 27px;
}

/* WC Product Tabs */
.wc-product-tabs {
	margin-top: 40px;
	max-width: var(--wp--style--global--wide-size) !important;
}

/* Nav */
.wc-product-tabs__nav {
	display: flex;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wc-product-tabs__nav-item {
	margin: 0;
	display: flex;
}

.wc-product-tabs__nav-btn {
	display: block;
	width: 100%;
	padding: 12px 24px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	color: #666;
	transition: color 0.2s, border-color 0.2s;
}

.wc-product-tabs__nav-btn:hover {
	color: #111;
}

.wc-product-tabs__nav-btn.is-active {
	color: #111;
	border-bottom-color: #111;
}

/* Panels */
.wc-product-tabs__panel {
	display: none;
	padding: 28px 0;
}

.wc-product-tabs__panel.is-active {
	display: block;
}

/* Description */
.wc-product-tabs__description p {
	margin: 0 0 12px;
	line-height: 1.7;
	color: #333;
}

.wc-product-tabs__description p:last-child {
	margin-bottom: 0;
}

/* Attributes table */
.wc-product-tabs__attributes {
	width: 100%;
	border-collapse: collapse;
}

.wc-product-tabs__attributes tr {
	border-bottom: 1px solid #e0e0e0;
}

.wc-product-tabs__attributes tr:first-child {
	border-top: 1px solid #e0e0e0;
}

.wc-product-tabs__attributes tr:nth-child(even) th,
.wc-product-tabs__attributes tr:nth-child(even) td {
	background: rgba(0, 0, 0, .025);
}

.wc-product-tabs__attributes th,
.wc-product-tabs__attributes td {
	padding: 12px 16px;
	text-align: left;
	font-size: 14px;
	vertical-align: top;
}

.wc-product-tabs__attributes th {
	width: 180px;
	font-weight: 600;
	color: #111;
	background: #fafafa;
}

.wc-product-tabs__attributes td {
	color: #444;
}

.wc-product-tabs__attributes-values {
	font-style: italic;
}

/* Reviews */
.wc-product-tabs__panel #reviews {
	padding: 0;
}

.wc-product-tabs__panel .comment-respond {
	margin-top: 32px;
}

.custom-product-price {
	text-align: center;
	font-size: 1rem;
}

.custom-product-price+.wp-block-button {
	margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
	.wc-products-container.wc-grouped-products {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}

	.wc-grouped-products .wc-product-item {
		gap: 16px;
		padding-bottom: 20px;
		flex-direction: column;
	}

	.wc-product-item__action {
		flex: 1 1 auto;
	}

	.wc-product-title {
		font-size: 13px;
	}

	.wc-product-price {
		font-size: 16px;
	}

	.wc-product-custom-price {
		font-size: var(--wp--preset--font-size--x-large);
	}

	.wc-grouped-products .wc-product-image {
		flex: auto;
		max-width: 50%;
	}

	.wc-product-tabs__nav-btn {
		padding: 8px 16px;
		font-size: 16px;
		font-weight: 500;
	}

	.woocommerce-page main {
		max-width: 100% !important;
	}
}