/* Escopo exclusivo do shortcode. Não alcança mini-cart, checkout ou blocos. */
.wb-cart {
	--wb-cart-ink: #12182a;
	--wb-cart-muted: #6d7485;
	--wb-cart-line: #e5e8f0;
	--wb-cart-brand: #5c4df5;
	--wb-cart-brand-dark: #4436df;
	--wb-cart-soft: #f6f7fb;
	--wb-cart-accent: #ff5fa2;
	color: var(--wb-cart-ink);
	max-width: 1320px;
	width: 100%;
	margin: 0 auto;
	padding: clamp(20px, 3vw, 36px) clamp(12px, 2vw, 28px) 72px;
	font-size: 15px;
	line-height: 1.6;
}
.wb-cart, .wb-cart *, .wb-cart *::before, .wb-cart *::after { box-sizing: border-box; }
.wb-cart input, .wb-cart button, .wb-cart select { font-family: inherit; }
.wb-cart .wb-cart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid #e3e0ff;
	border-radius: 24px;
	background:
		radial-gradient(circle at 86% -40%, rgb(113 94 255 / 22%), transparent 42%),
		linear-gradient(135deg, #f9f8ff 0%, #f2f0ff 100%);
	box-shadow: 0 16px 40px rgb(40 32 112 / 7%);
}
.wb-cart .wb-cart__heading { display: flex; align-items: center; gap: 18px; min-width: 0; }
.wb-cart .wb-cart__bag { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(145deg, #6d5fff, #4d3ee9); box-shadow: 0 10px 24px rgb(91 77 247 / 25%); color: #fff; }
.wb-cart .wb-cart__bag svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wb-cart .wb-cart__eyebrow { color: var(--wb-cart-brand); font-size: 10px; font-weight: 800; letter-spacing: .14em; margin: 0 0 4px; }
.wb-cart .wb-cart__title { color: var(--wb-cart-ink); font-size: clamp(28px, 4vw, 38px); font-weight: 780; letter-spacing: -.04em; line-height: 1.12; margin: 0 0 6px; }
.wb-cart .wb-cart__intro { color: var(--wb-cart-muted); margin: 0; }
.wb-cart .wb-cart__continue { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 44px; padding: 10px 15px; border: 1px solid #dcd8ff; border-radius: 13px; background: rgb(255 255 255 / 76%); color: var(--wb-cart-ink); font-size: 13px; font-weight: 650; text-decoration: none; }
.wb-cart .wb-cart__steps { display: grid; grid-template-columns: auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto; align-items: center; gap: 12px; max-width: 600px; margin: 0 auto 30px; padding: 0 12px; }
.wb-cart .wb-cart__step { display: flex; align-items: center; gap: 8px; color: #969bab; font-size: 12px; }
.wb-cart .wb-cart__step span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d8dbe4; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 750; }
.wb-cart .wb-cart__step strong { color: inherit; font-size: inherit; font-weight: 650; }
.wb-cart .wb-cart__step.is-current { color: var(--wb-cart-brand); }
.wb-cart .wb-cart__step.is-current span { border-color: var(--wb-cart-brand); background: var(--wb-cart-brand); color: #fff; box-shadow: 0 4px 12px rgb(91 77 247 / 24%); }
.wb-cart .wb-cart__steps > i { height: 1px; background: #dfe2ea; }
.wb-cart > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); gap: 24px; align-items: start; }
.wb-cart > .woocommerce > * { grid-column: 1 / -1; min-width: 0; }
.wb-cart > .woocommerce > .woocommerce-cart-form { grid-column: 1; margin: 0; min-width: 0; }
.wb-cart > .woocommerce > .cart-collaterals { grid-column: 2; width: 100%; min-width: 0; }
.wb-cart .woocommerce::before, .wb-cart .woocommerce::after,
.wb-cart .cart-collaterals::before, .wb-cart .cart-collaterals::after { display: none; }
.wb-cart .woocommerce-notices-wrapper:empty { display: none; }
.wb-cart .woocommerce table.shop_table { border: 1px solid var(--wb-cart-line); border-radius: 20px; border-collapse: separate; border-spacing: 0; background: #fff; margin: 0; width: 100%; }
.wb-cart .woocommerce table.shop_table th { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--wb-cart-muted); font-weight: 700; padding: 14px 12px; }
.wb-cart .woocommerce table.shop_table td { padding: 20px 12px; border-top: 1px solid var(--wb-cart-line); vertical-align: middle; background: transparent; }
.wb-cart .woocommerce table.cart { border: 1px solid var(--wb-cart-line); border-radius: 20px; border-spacing: 0; background: #fff; box-shadow: 0 10px 30px rgb(23 32 51 / 5%); overflow: hidden; }
.wb-cart .woocommerce table.cart thead th { border: 0; padding: 15px 12px; background: #f7f6ff; color: #626175; }
.wb-cart .woocommerce table.cart tr.cart_item td { border-top: 1px solid var(--wb-cart-line); border-bottom: 0; background: #fff; }
.wb-cart .woocommerce table.cart tr.cart_item td:first-child,
.wb-cart .woocommerce table.cart tr.cart_item td:last-child { border-radius: 0; }
.wb-cart .woocommerce table.cart .product-thumbnail { width: 96px; }
.wb-cart .woocommerce table.cart .product-thumbnail img { width: 76px; height: 84px; max-width: none; padding: 6px; object-fit: contain; border-radius: 14px; background: var(--wb-cart-soft); }
.wb-cart .woocommerce table.cart .product-name { overflow-wrap: anywhere; }
.wb-cart .woocommerce table.cart .product-name > a { color: var(--wb-cart-ink); font-size: 15px; font-weight: 700; text-decoration: none; line-height: 1.45; }
.wb-cart .woocommerce table.cart .variation { font-size: 12px; color: var(--wb-cart-muted); margin-top: 8px; }
.wb-cart .woocommerce table.cart .variation p { margin: 0; }
.wb-cart .woocommerce table.cart .product-price { font-size: 13px; }
.wb-cart .woocommerce table.cart .product-subtotal { font-weight: 700; }
.wb-cart .woocommerce a.remove { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: 22px; border: 1px solid transparent; border-radius: 11px; color: #7f8697 !important; background: var(--wb-cart-soft); text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.wb-cart .woocommerce a.remove:hover, .wb-cart .woocommerce a.remove:focus-visible { background: var(--wb-cart-accent); color: #fff !important; transform: rotate(90deg); }
.wb-cart .woocommerce .quantity .qty { width: 66px; min-height: 44px; padding: 8px 4px; border: 1px solid #d4d8e2; border-radius: 12px; background: #fff; color: var(--wb-cart-ink); font-size: 14px; box-shadow: inset 0 1px 2px rgb(23 32 51 / 4%); }
/* Faixa de ações (cupom + atualizar). A <td> tem colspan e NAO pode virar
   flex/grid: no Chrome uma celula com display diferente de table-cell perde o
   colspan e encolhe para a largura da 1a coluna. Por isso o alinhamento aqui
   e feito com o float nativo do tema mais um clearfix. */
.wb-cart .woocommerce table.cart td.actions { padding: 18px; border-top: 10px solid var(--wb-cart-soft); background: #fbfbfe; text-align: right; }
.wb-cart .woocommerce table.cart td.actions::after { content: ""; display: block; clear: both; }
.wb-cart .woocommerce table.cart td.actions .coupon { float: left; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; max-width: 100%; margin: 0; padding: 0; text-align: left; }
.wb-cart .woocommerce table.cart td.actions .coupon .input-text { flex: 1 1 190px; width: auto; min-width: 0; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px dashed #c9c3ff; border-radius: 12px; background: #fbfaff; color: var(--wb-cart-ink); font-size: 13px; }
.wb-cart .woocommerce table.cart td.actions .coupon .input-text:focus { border-style: solid; border-color: var(--wb-cart-brand); background: #fff; }
.wb-cart .woocommerce table.cart td.actions .coupon .button { flex: 0 0 auto; margin: 0; border-color: transparent; background: linear-gradient(135deg, #6657ff, #4d3ee9); color: #fff; }
.wb-cart .woocommerce table.cart td.actions > .button { float: right; margin: 0; }
.wb-cart .woocommerce .button { min-height: 44px; padding: 12px 16px; border: 1px solid var(--wb-cart-line); border-radius: 12px; background: #fff; color: var(--wb-cart-ink); font-size: 13px; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; white-space: normal; }
.wb-cart .woocommerce .button:disabled { opacity: .5; cursor: not-allowed; }
.wb-cart .woocommerce .cart-collaterals { display: flex; flex-direction: column; gap: 24px; }
.wb-cart .woocommerce .cart-collaterals .cart_totals { position: sticky; top: 24px; float: none; width: 100%; padding: 24px; border: 1px solid #dfdcff; border-radius: 22px; background: linear-gradient(160deg, #fbfaff 0%, #f4f2ff 100%); box-shadow: 0 16px 42px rgb(45 37 116 / 9%); order: -1; }
.wb-cart .woocommerce .cart_totals h2 { margin: 0 0 20px; font-size: 21px; font-weight: 700; letter-spacing: -.025em; color: var(--wb-cart-ink); }
.wb-cart .woocommerce .cart_totals table.shop_table { border: 0; background: transparent; }
.wb-cart .woocommerce .cart_totals table.shop_table th,
.wb-cart .woocommerce .cart_totals table.shop_table td { padding: 14px 0; vertical-align: top; font-size: 13px; }
.wb-cart .woocommerce .cart_totals table.shop_table th { width: 34%; padding-right: 12px; }
.wb-cart .woocommerce .cart_totals table.shop_table td { text-align: right; overflow-wrap: anywhere; }
.wb-cart .woocommerce .cart_totals table.shop_table .order-total th,
.wb-cart .woocommerce .cart_totals table.shop_table .order-total td { font-size: 19px; color: var(--wb-cart-ink); }
.wb-cart .woocommerce .cart_totals .includes_tax { display: block; font-size: 11px; font-weight: 400; }
.wb-cart .woocommerce ul#shipping_method { margin: 0; padding: 0; list-style: none; }
.wb-cart .woocommerce ul#shipping_method li { padding: 0; margin: 0 0 10px; }
.wb-cart .woocommerce ul#shipping_method input { accent-color: var(--wb-cart-brand); }
.wb-cart .woocommerce .woocommerce-shipping-destination { font-size: 12px; color: var(--wb-cart-muted); }
.wb-cart .woocommerce .shipping-calculator-button { color: #4033d9; font-weight: 600; font-size: 13px; }
.wb-cart .woocommerce .shipping-calculator-form { text-align: left; }
.wb-cart .woocommerce .shipping-calculator-form input,
.wb-cart .woocommerce .shipping-calculator-form select { max-width: 100%; min-height: 44px; padding: 8px; border: 1px solid #d4d8e2; border-radius: 8px; background: #fff; color: var(--wb-cart-ink); }
.wb-cart .woocommerce .wc-proceed-to-checkout { padding: 20px 0 0; }
.wb-cart .woocommerce .wc-proceed-to-checkout a.checkout-button,
.wb-cart .woocommerce .return-to-shop .button { display: block; width: 100%; margin: 0; padding: 17px 20px; border: 0; background: linear-gradient(135deg, #6657ff, #4d3ee9); color: #fff; font-size: 16px; border-radius: 14px; box-shadow: 0 10px 22px rgb(91 77 247 / 25%); }
.wb-cart .woocommerce .wc-proceed-to-checkout a.checkout-button { position: relative; overflow: hidden; font-weight: 700; letter-spacing: .02em; transition: transform .2s ease, box-shadow .2s ease; }
.wb-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgb(91 77 247 / 34%); }
.wb-cart .woocommerce .wc-proceed-to-checkout a.checkout-button::after { content: ""; position: absolute; inset: 0 auto 0 -75%; width: 45%; background: linear-gradient(120deg, transparent, rgb(255 255 255 / 45%), transparent); transform: skewX(-20deg); animation: wb-cart-shine 3s ease-in-out infinite; pointer-events: none; }
@keyframes wb-cart-shine { 0% { left: -75%; } 45%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
	.wb-cart .woocommerce .wc-proceed-to-checkout a.checkout-button::after { animation: none; opacity: 0; }
	.wb-cart .woocommerce a.remove { transition: none; }
	.wb-cart .woocommerce a.remove:hover { transform: none; }
}
.wb-cart .woocommerce .cart-collaterals .cross-sells { float: none; width: 100%; }
.wb-cart .woocommerce .cross-sells h2 { font-size: 19px; }
.wb-cart .woocommerce .cart-empty { margin: 0; padding: 54px 24px; border: 1px solid var(--wb-cart-line); border-top: 3px solid var(--wb-cart-brand); border-radius: 18px; background: #f8f9fc; color: var(--wb-cart-ink); text-align: center; font-size: 20px; }
.wb-cart .woocommerce .cart-empty::before { display: none; }
.wb-cart .woocommerce .return-to-shop { max-width: 280px; width: 100%; margin: 0 auto; }
.wb-cart :is(a, button, input, select):focus-visible { outline: 3px solid var(--wb-cart-brand); outline-offset: 3px; }

@media (max-width: 1100px) {
	.wb-cart > .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.wb-cart > .woocommerce > .cart-collaterals { grid-column: 1; }
	.wb-cart .woocommerce .cart-collaterals .cart_totals { position: static; }
}
@media (max-width: 768px) {
	.wb-cart { padding: 20px 8px 40px; }
	.wb-cart .wb-cart__header { align-items: stretch; flex-direction: column; gap: 18px; border-radius: 20px; }
	.wb-cart .wb-cart__heading { align-items: flex-start; }
	.wb-cart .wb-cart__bag { flex-basis: 48px; width: 48px; height: 48px; border-radius: 15px; }
	.wb-cart .wb-cart__bag svg { width: 23px; height: 23px; }
	.wb-cart .wb-cart__continue { align-self: flex-start; }
	.wb-cart .wb-cart__steps { gap: 7px; margin-bottom: 24px; padding: 0 4px; }
	.wb-cart .wb-cart__step { gap: 5px; }
	.wb-cart .wb-cart__step strong { font-size: 10px; }
	.wb-cart .wb-cart__step span { width: 24px; height: 24px; }
	.wb-cart .woocommerce table.cart { display: block; border: 0; background: transparent; }
	.wb-cart .woocommerce table.cart thead { display: none; }
	.wb-cart .woocommerce table.cart tbody { display: block; }
	.wb-cart .woocommerce table.cart tr.cart_item { display: grid; grid-template-columns: 76px minmax(0, 1fr) 36px; gap: 12px; padding: 18px 14px; margin-bottom: 14px; border: 1px solid var(--wb-cart-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgb(23 32 51 / 6%); filter: none; }
	.wb-cart .woocommerce table.cart tr.cart_item td { display: block; padding: 0; border: 0; width: auto; text-align: left !important; min-width: 0; }
	.wb-cart .woocommerce table.cart tr.cart_item td:first-child,
	.wb-cart .woocommerce table.cart tr.cart_item td:last-child { border: 0; border-radius: 0; }
	.wb-cart .woocommerce table.cart tr.cart_item td::before { display: none; }
	.wb-cart .woocommerce table.cart tr.cart_item .product-thumbnail { grid-column: 1; grid-row: 1 / 3; }
	.wb-cart .woocommerce table.cart tr.cart_item .product-name { grid-column: 2; grid-row: 1; }
	.wb-cart .woocommerce table.cart tr.cart_item .product-remove { grid-column: 3; grid-row: 1; }
	.wb-cart .woocommerce table.cart tr.cart_item .product-price { grid-column: 2 / 4; grid-row: 2; color: var(--wb-cart-muted); }
	.wb-cart .woocommerce table.cart tr.cart_item .product-quantity { grid-column: 1; grid-row: 3; align-self: center; }
	.wb-cart .woocommerce table.cart tr.cart_item .product-subtotal { grid-column: 2 / 4; grid-row: 3; align-self: center; text-align: right !important; }
	.wb-cart .woocommerce table.cart tr.cart_item .product-subtotal::before { display: inline; content: attr(data-title) ': '; float: none; font-size: 12px; font-weight: 400; color: var(--wb-cart-muted); }
	.wb-cart .woocommerce table.cart tr:not(.cart_item) { display: block; }
	.wb-cart .woocommerce table.cart tr:not(.cart_item) > td { display: block; width: auto; max-width: 100%; }
	.wb-cart .woocommerce table.cart td.actions { display: block; padding: 16px; border: 1px solid var(--wb-cart-line); border-radius: 18px; background: #fff; text-align: left; }
	.wb-cart .woocommerce table.cart td.actions::before { display: none; }
	.wb-cart .woocommerce table.cart td.actions::after { display: none; }
	.wb-cart .woocommerce table.cart td.actions .coupon { float: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 0 12px; }
	.wb-cart .woocommerce table.cart td.actions .coupon .input-text,
	.wb-cart .woocommerce table.cart td.actions .coupon .button { width: 100%; float: none; min-width: 0; }
	.wb-cart .woocommerce table.cart td.actions > .button { float: none; display: block; width: 100%; }
	.wb-cart .woocommerce .quantity .qty,
	.wb-cart .woocommerce table.cart td.actions .coupon .input-text,
	.wb-cart .woocommerce .shipping-calculator-form input,
	.wb-cart .woocommerce .shipping-calculator-form select { font-size: 16px; }
	.wb-cart .woocommerce .cart-collaterals .cart_totals { padding: 20px; border-radius: 20px; }
	.wb-cart .woocommerce .cart_totals table.shop_table_responsive tr { display: table-row; }
	.wb-cart .woocommerce .cart_totals table.shop_table_responsive tr th,
	.wb-cart .woocommerce .cart_totals table.shop_table_responsive tr td { display: table-cell; }
	.wb-cart .woocommerce .cart_totals table.shop_table_responsive tr td::before { display: none; }
}

@media (max-width: 390px) {
	.wb-cart .wb-cart__step strong { display: none; }
	.wb-cart .wb-cart__steps { grid-template-columns: 24px 1fr 24px 1fr 24px; }
}
