/* Cart, checkout and order confirmation: WooCommerce blocks on the company tokens. */
.an-cartpage, .an-checkoutpage, .an-thanks { padding-top: 16px !important; padding-bottom: 56px !important; }
.an-cartpage__title { font-size: var(--wp--preset--font-size--xx-large) !important; letter-spacing: -.02em; margin: 6px 0 18px !important; }

/* Shared WooCommerce block pieces */
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-select .wc-block-components-select__select, .wc-block-components-textarea, .wc-blocks-components-select__select {
	border-color: var(--wp--preset--color--border-strong) !important; border-radius: var(--wp--custom--radius--control) !important; background: #fff !important;
}
.wc-block-components-text-input input:focus, .wc-blocks-components-select__select:focus { outline: 2px solid var(--wp--preset--color--brand) !important; border-color: var(--wp--preset--color--brand) !important; }
.wc-block-components-button:not(.is-link) { border-radius: var(--wp--custom--radius--control) !important; font-weight: 590 !important; min-height: 48px; }
.wc-block-components-button.contained, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background: var(--wp--preset--color--action) !important; color: #fff !important; border: 0 !important;
}
.wc-block-components-button.contained:hover, .wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { background: var(--wp--preset--color--action-hover) !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: var(--wp--custom--radius--control); }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--wp--preset--color--brand) !important; }
.wc-block-components-radio-control__input:checked { border-color: var(--wp--preset--color--brand) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--wp--preset--color--action) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--wp--preset--color--action) !important; border-color: var(--wp--preset--color--action) !important; }
.wc-block-components-formatted-money-amount, .wc-block-components-totals-item__value, .wc-block-components-product-price { font-variant-numeric: tabular-nums; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 20px !important; font-weight: 590 !important; }
.wc-block-components-product-name { color: var(--wp--preset--color--text) !important; font-weight: 510; }
/* Lead time on cart lines (mu-plugins/acquanativa-store.php) stays; the marketing excerpt goes. */
.wc-block-cart .wc-block-components-product-metadata__description,
.wc-block-checkout .wc-block-components-product-metadata__description { display: none; }
.wc-block-components-product-details { font-size: 13.5px; color: var(--wp--preset--color--muted); }

/* Cart */
.an-cart .wc-block-cart-items { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); border-collapse: separate; }
.an-cart .wc-block-cart-items th { font-size: 12.5px; letter-spacing: .06em; color: var(--wp--preset--color--muted); }
.an-cart .wc-block-cart-item__image img { background: #fff; border-radius: var(--wp--custom--radius--tile); box-shadow: var(--wp--preset--shadow--ring); aspect-ratio: 4/3; object-fit: contain; }
.an-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
.an-cart .wc-block-cart__sidebar > div { background: #fff; }
.an-cart .wc-block-cart__sidebar { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 18px 20px !important; align-self: start; }
.an-b2b { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; padding: 16px 18px; background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); }
.an-b2b__ic { width: 40px; height: 40px; border-radius: var(--wp--custom--radius--tile); background: var(--wp--preset--color--tint); color: var(--wp--preset--color--brand); display: grid; place-items: center; flex: none; }
.an-b2b p { flex: 1 1 260px; margin: 0; font-size: 14.5px; }
.an-cart-empty { text-align: center; padding: 44px 22px; background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); }
.an-cart-empty h2 { font-size: 24px !important; margin: 0 0 8px; }
.an-cart-empty p { color: var(--wp--preset--color--muted); margin: 0 0 16px; }
.an-cart-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.an-chip-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 9999px; background: var(--wp--preset--color--bg); box-shadow: var(--wp--preset--shadow--ring); color: var(--wp--preset--color--text) !important; text-decoration: none !important; font-size: 14.5px; }

/* Checkout: short header/footer, sections as cards */
.an-cohead { background: #fff; box-shadow: 0 1px 0 var(--wp--preset--color--border); }
.an-cohead__row { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.an-cohead__secure { display: none; align-items: center; gap: 6px; color: var(--wp--preset--color--ok); font-size: 14px; font-weight: 590; margin-left: auto; }
.an-cohead__secure .an-icon { width: 18px; height: 18px; }
.an-cohead__back { margin-left: auto; font-size: 14.5px; font-weight: 510; }
.an-cofoot { background: var(--wp--preset--color--deeper); color: #AEC4C6; font-size: 13.5px; }
.an-cofoot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding-top: 18px !important; padding-bottom: 22px !important; }
.an-cofoot a, .an-cofoot .an-consent-link { color: #fff; text-decoration: underline; }
.an-checkout .wc-block-checkout__main .wc-block-components-checkout-step { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 18px 16px 8px !important; margin: 0 0 16px !important; }
.an-checkout .wc-block-components-checkout-step::after { display: none !important; }
.an-checkout .wc-block-components-checkout-step__heading { margin-top: 0 !important; }
.an-checkout .wc-block-components-checkout-step__title { font-size: 19px !important; font-weight: 590 !important; letter-spacing: -.01em; }
.an-checkout .wc-block-checkout__sidebar { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 18px 20px !important; align-self: start; }
.an-checkout .wc-block-checkout__actions { margin-top: 8px; }

/* Order confirmation */
.an-thanks { max-width: 880px; }
.an-thanks__status { margin-bottom: 18px; }
.an-thanks__status h1, .an-thanks .wc-block-order-confirmation-status h1 { font-size: var(--wp--preset--font-size--xx-large) !important; letter-spacing: -.02em; }
.an-thanks__pay:not(:empty) { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 20px; margin: 0 0 18px; }
.an-thanks__summary { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 16px 20px; margin: 0 0 18px; }
.an-thanks__block { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 18px 20px; margin: 0 0 18px !important; }
.an-thanks__block h2 { font-size: 18px !important; margin: 0 0 12px; }
.an-thanks__addr { display: grid; gap: 0 18px; }
.an-next { background: #fff; border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); padding: 18px 20px; margin: 0 0 18px; }
.an-next__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.an-next__steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; font-size: 14.5px; }
.an-next__steps li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-strong); color: var(--wp--preset--color--muted); }
.an-next__steps li.is-done::before { background: var(--wp--preset--color--action); color: #fff; box-shadow: none; }
.an-next__steps b { font-weight: 590; }
.an-next__steps span { color: var(--wp--preset--color--muted); }
.an-next__help { margin: 14px 0 0; font-size: 14.5px; color: var(--wp--preset--color--muted); }
/* Mercado Pago Pix: one QR per page (its thank-you block; the copy after the totals is for My account), phone-safe box */
.woocommerce-order-received .wc-block-order-confirmation-totals .mp-pix-image-container { display: none; }
.an-thanks__pay .mp-row-checkout-pix-container, .an-thanks__pay .mp-qr-input, .an-thanks__pay .mp-details-pix-button { box-sizing: border-box; }
.an-thanks__pay .mp-details-pix-button { background: var(--wp--preset--color--action); border: 0; border-radius: var(--wp--custom--radius--control); }
@media (max-width: 767.98px) {
	.an-thanks__pay .mp-row-checkout-pix-container { padding: 8px 0 16px; }
	.an-thanks__pay .mp-pix-left { padding: 0; }
	.an-thanks__pay .mp-qr-input { width: 100%; margin: 0 0 10px; }
}

@media (min-width: 901px) {
	.an-cart .wc-block-cart-items th { padding: 14px 16px !important; }
	.an-cart .wc-block-cart-items td { padding: 16px !important; }
	.an-cohead__secure { display: inline-flex; }
	.an-cohead__back { margin-left: 18px; }
	.an-checkout .wc-block-checkout__main .wc-block-components-checkout-step { padding: 22px 24px 10px !important; }
	.an-thanks__addr { grid-template-columns: 1fr 1fr; }
	.an-next__steps { grid-template-columns: repeat(4, 1fr); }
	.an-next__steps li { grid-template-columns: 1fr; row-gap: 4px; }
	.an-next__steps li::before { grid-row: auto; }
}
