/* WooCommerce Cart Block: desktop cart page only. */
@media (min-width: 1025px) {
	body.woocommerce-cart .wp-block-woocommerce-cart {
		box-sizing: border-box;
		width: 100%;
		max-width: 1240px;
		min-width: 0;
		margin: 0 auto;
		padding: 54px 24px 64px;
		font-family: Poppins, sans-serif;
	}

	body.woocommerce-cart .wp-block-woocommerce-cart::before {
		content: "Carrinho";
		display: block;
		margin: 0 0 30px;
		color: #243f25;
		font-family: Poppins, sans-serif;
		font-size: clamp(32px, 2.4vw, 38px);
		font-weight: 600;
		line-height: 1.15;
	}

	body.woocommerce-cart .wp-block-woocommerce-cart:has(.wp-block-woocommerce-empty-cart-block)::before {
		display: none;
		content: none;
	}

	body.woocommerce-cart .wc-block-cart {
		display: grid;
		grid-template-columns: minmax(0, 1.85fr) minmax(340px, 1fr);
		column-gap: 46px;
		align-items: start;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.woocommerce-cart .wc-block-cart__main,
	body.woocommerce-cart .wc-block-cart__sidebar {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0;
	}

	body.woocommerce-cart .wc-block-cart-items {
		width: 100%;
		max-width: 100%;
		table-layout: fixed;
		border-collapse: collapse;
	}

	body.woocommerce-cart .wc-block-cart-items__header {
		border-bottom: 1px solid #ded8cc;
	}

	body.woocommerce-cart .wc-block-cart-items__header th {
		padding: 0 0 14px;
		color: #667065;
		font-family: Poppins, sans-serif;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.05em;
	}

	body.woocommerce-cart .wc-block-cart .wc-block-cart-items__header-image,
	body.woocommerce-cart .wc-block-cart .wc-block-cart-item__image {
		width: 128px !important;
	}

	body.woocommerce-cart .wc-block-cart-items__header-total,
	body.woocommerce-cart .wc-block-cart-item__total {
		width: 118px;
		text-align: right;
	}

	body.woocommerce-cart .wc-block-cart-items__row {
		border-bottom: 1px solid #e8e3da;
	}

	body.woocommerce-cart .wc-block-cart-items__row:last-child {
		border-bottom-color: #ded8cc;
	}

	body.woocommerce-cart .wc-block-cart .wc-block-cart-item__image,
	body.woocommerce-cart .wc-block-cart .wc-block-cart-item__product,
	body.woocommerce-cart .wc-block-cart .wc-block-cart-item__total {
		box-sizing: border-box;
		padding-top: 31px !important;
		padding-bottom: 31px !important;
		vertical-align: top;
	}

	body.woocommerce-cart .wc-block-cart .wc-block-cart-item__image {
		padding: 31px 20px 31px 0 !important;
	}

	body.woocommerce-cart .wc-block-cart .wc-block-cart-item__image a,
	body.woocommerce-cart .wc-block-cart .wc-block-cart-item__image img {
		display: block;
		box-sizing: border-box;
		width: 108px !important;
		max-width: 100%;
		height: auto;
		aspect-ratio: 1;
		object-fit: cover;
		border-radius: 8px;
	}

	body.woocommerce-cart .wc-block-cart-item__product {
		min-width: 0;
		padding-right: 22px;
	}

	body.woocommerce-cart .wc-block-components-product-name {
		display: inline-block;
		max-width: 100%;
		margin: 0 0 8px;
		color: #243f25;
		font-family: Poppins, sans-serif;
		font-size: 17px;
		font-weight: 600;
		line-height: 1.35;
		text-decoration: none;
		white-space: normal;
		overflow-wrap: break-word;
		word-break: normal;
	}

	body.woocommerce-cart .wc-block-cart-item__prices,
	body.woocommerce-cart .wc-block-components-product-metadata {
		margin-bottom: 8px;
		color: #5f675f;
		font-size: 13px;
		line-height: 1.5;
	}

	body.woocommerce-cart .wc-block-cart-item__prices {
		color: #b98b18;
		font-size: 15px;
		font-weight: 600;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector {
		box-sizing: border-box;
		width: 108px;
		height: 44px;
		border: 1px solid #d9d4c8;
		border-radius: 6px;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector::after {
		border: 0;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector__button,
	body.woocommerce-cart .wc-block-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
		min-width: 0;
		font-family: Poppins, sans-serif;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector__button {
		display: flex;
		width: 32px;
		min-width: 32px;
		height: 42px;
		padding: 0;
		flex: 0 0 32px;
		align-items: center;
		justify-content: center;
		background: #f5f2ea;
		color: #243f25;
		font-size: 18px;
		font-weight: 600;
		line-height: 1;
		opacity: 1;
		cursor: pointer;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector__button:hover:not(:disabled),
	body.woocommerce-cart .wc-block-components-quantity-selector__button:focus-visible:not(:disabled) {
		background: #e9e4d9;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector__button:disabled {
		color: #8d958d;
		opacity: 0.65;
		cursor: not-allowed;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector__input {
		box-sizing: border-box;
		width: 44px;
		min-width: 0;
		height: 42px;
		padding: 0 !important;
		border: 0 !important;
		flex: 1 1 44px;
		text-align: center;
	}

	body.woocommerce-cart .wc-block-cart .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
		display: inline-flex !important;
		box-sizing: border-box;
		width: 36px !important;
		height: 44px !important;
		margin-left: 12px;
		padding: 0 !important;
		align-items: center;
		justify-content: center;
		color: #767c76;
		font-family: Poppins, sans-serif;
		font-size: 12px;
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
		color: #243f25;
	}

	body.woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
		justify-content: flex-end;
	}

	body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
		color: #243f25;
		font-family: Poppins, sans-serif;
		font-size: 15px;
		font-weight: 600;
	}

	body.woocommerce-cart .wc-block-cart__sidebar {
		padding: 30px;
		border: 1px solid #ded8cc;
		border-radius: 12px;
		background: #fffdf8;
	}

	body.woocommerce-cart .wc-block-cart__totals-title {
		margin: 0 0 18px;
		padding: 0;
		color: #243f25;
		font-family: Poppins, sans-serif;
		font-size: 22px;
		font-weight: 600;
		line-height: 1.25;
		text-align: left;
		text-transform: none;
	}

	body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
		padding: 16px 0;
		border-top: 1px solid #e8e3da;
	}

	body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-coupon {
		font-family: Poppins, sans-serif;
		font-size: 14px;
	}

	body.woocommerce-cart .wc-block-components-panel__button {
		color: #4f5b50;
		font-weight: 500;
	}

	body.woocommerce-cart .wc-block-components-totals-coupon__input input {
		box-sizing: border-box;
		min-height: 46px;
		border-color: #d9d4c8;
		border-radius: 6px;
		font-family: Poppins, sans-serif;
	}

	body.woocommerce-cart .wc-block-components-totals-coupon__input input:focus {
		border-color: #243f25;
		box-shadow: 0 0 0 1px #243f25;
		outline: 0;
	}

	body.woocommerce-cart .wc-block-components-totals-coupon__button {
		min-height: 46px;
		border-radius: 6px;
		font-family: Poppins, sans-serif;
		font-weight: 600;
	}

	body.woocommerce-cart .wc-block-components-totals-footer-item {
		align-items: baseline;
		color: #243f25;
		font-family: Poppins, sans-serif;
		font-size: 17px;
		font-weight: 600;
	}

	body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
		font-size: 22px;
		font-weight: 700;
	}

	body.woocommerce-cart .wc-block-cart__submit-container {
		margin-top: 8px;
	}

	body.woocommerce-cart .wc-block-cart__submit-button {
		box-sizing: border-box;
		width: 100%;
		height: 54px !important;
		min-height: 54px !important;
		border: 0;
		border-radius: 6px;
		background: #243f25;
		color: #fff;
		font-family: Poppins, sans-serif;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.2;
		transition: background-color 0.2s ease;
	}

	body.woocommerce-cart .wc-block-cart__submit-button:hover,
	body.woocommerce-cart .wc-block-cart__submit-button:focus-visible {
		background: #355b36;
		color: #fff;
	}

	/* Cross-sells and product collections rendered by the Cart Block. */
	body.woocommerce-cart :is(.wp-block-woocommerce-cart-cross-sells-block, .wc-block-cart__cross-sells, .wp-block-woocommerce-product-collection) {
		box-sizing: border-box;
		grid-column: 1 / -1;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin-top: 54px;
		padding-top: 40px;
		border-top: 1px solid #e8e3da;
	}

	body.woocommerce-cart :is(.wc-block-grid__products, .wp-block-woocommerce-product-template) {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.woocommerce-cart :is(.wc-block-grid__product, .wc-block-product) {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0;
	}

	body.woocommerce-cart :is(.wc-block-grid__product, .wc-block-product) img {
		width: 100%;
		max-width: 100%;
		height: auto;
		border-radius: 8px;
	}

	/* Empty Cart Block state. */
	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		padding: 24px 0 0;
		text-align: center;
	}

	body.woocommerce-cart .wc-block-cart__empty-cart__title {
		margin: 0 auto 20px;
		color: #243f25;
		font-family: Poppins, sans-serif;
		font-size: 24px;
		font-weight: 600;
		line-height: 1.3;
	}

	body.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
		display: block;
		width: 36px;
		height: 36px;
		margin: 0 auto 10px;
		background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23243f25' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 10.4a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L21 7H6'/%3E%3C/svg%3E");
		content: "";
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading:not(.wc-block-cart__empty-cart__title) {
		margin: 32px auto 30px;
		color: #243f25;
		font-family: Poppins, sans-serif;
		font-size: 30px;
		font-weight: 600;
		line-height: 1.2;
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block :is(.wc-block-grid__products, .wp-block-woocommerce-product-template) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px;
		max-width: 1080px;
		margin-inline: auto;
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: auto !important;
		max-width: 100% !important;
		min-width: 0;
		padding: 0;
		font-family: Poppins, sans-serif;
		font-size: 15px;
		text-align: center;
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link {
		display: flex;
		width: 100%;
		min-width: 0;
		flex-direction: column;
		align-items: center;
		color: #243f25;
		text-decoration: none;
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image {
		width: 100%;
		max-width: 220px;
		margin: 0 auto 16px;
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
		display: block;
		width: 100%;
		max-width: 220px;
		height: auto;
		aspect-ratio: 1;
		object-fit: cover;
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
		width: 100%;
		min-width: 0;
		margin: 0;
		color: #243f25;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.4;
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
		width: 100%;
		min-width: 0;
		margin: 12px 0 18px;
		color: #b98b18;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.4;
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
		margin-top: auto;
	}

	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link {
		display: inline-flex;
		box-sizing: border-box;
		width: auto;
		min-width: 140px;
		min-height: 46px;
		align-items: center;
		justify-content: center;
		padding: 10px 18px;
		border-radius: 6px;
		background: #243f25;
		color: #fff;
		font-family: Poppins, sans-serif;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.2;
		white-space: nowrap;
	}
}
