/* Kits — carrinho (Shoptimizer clássico) e checkout do Rishi.
 * Moldura: cabeçalho do kit (linha .ah-kit-cab, criada pelo kits-carrinho.js) + as peças (.ah-kit … .ah-kit-fim).
 * Cores da marca: laranja #F66900 / #D55600, creme #FFF6EF / #FDE7D7, tinta #2A1E1A, verde #2e7d32. */

/* ---------- preço de/por da peça ---------- */
.ah-kit-pr { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.ah-kit-pr del { color: #8A6F62; font-size: .78em; font-weight: 400; opacity: .85; }
.ah-kit-pr ins { text-decoration: none; font-weight: 700; color: #2A1E1A; }
.ah-kit-qtd { font-weight: 600; }
tr.ah-kit-cab ~ tr.ah-kit .ah-kit-qtd { display: none; } /* com o cabeçalho (JS), a quantidade do kit fica só lá */

/* ---------- cabeçalho do kit ---------- */
.ah-kcab { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 8px; font-size: .85rem; line-height: 1.3; color: #2A1E1A; }
.ah-kcab__t { display: inline-flex; align-items: center; gap: 6px; }
.ah-kcab__t i { color: #F66900; }
.ah-kcab__p { font-weight: 800; color: #D55600; }
.ah-kcab__p .amount { color: inherit; }
.ah-kcab__e { color: #2e7d32; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.ah-kcab__e .amount { color: inherit; }
.ah-kcab__e.is-cupom { white-space: normal; overflow-wrap: anywhere; } /* código de cupom pode ser comprido */
.ah-kcab__a { display: inline-flex; align-items: center; gap: 14px; font-size: .75rem; white-space: nowrap; }
.ah-kcab__a a { color: #8A6F62; text-decoration: underline; text-underline-offset: 2px; }
.ah-kcab__a a:hover { color: #D55600; }
.ah-kcab.is-linha { margin: 0; }
.ah-kcab.is-linha .ah-kcab__rm { display: none; } /* com JS, quem remove é o × da linha */
.ah-kcab__q { display: inline-flex; align-items: center; gap: 6px; }
.ah-kcab__q::before { content: "Kits"; font-size: .75rem; color: #8A6F62; }
/* o tema só desenha o +/− dentro de td.product-quantity: aqui o mesmo controle, em pílula */
.ah-kcab__q .quantity { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 32px; margin: 0; background: #fff; border: 1px solid #F2D6C1; border-radius: 999px; }
.ah-kcab__q .quantity .qty { position: relative; z-index: 1; width: 30px; height: 30px !important; min-height: 0; margin: 0; padding: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; text-align: center; font-size: .85rem; font-weight: 700; color: #2A1E1A; -moz-appearance: textfield; }
.ah-kcab__q .quantity .qty::-webkit-outer-spin-button,
.ah-kcab__q .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ah-kcab__q .quantity .quantity-nav { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: auto; height: auto; padding: 0 4px; border: 0; background: transparent; pointer-events: none; }
.ah-kcab__q .quantity .quantity-button { position: relative; left: auto; right: auto; top: auto; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; pointer-events: auto; }
.ah-kcab__q .quantity .quantity-down { order: -1; }
.ah-kcab__q .quantity .quantity-button::before { width: 13px; height: 13px; }

/* ---------- moldura (computador) ---------- */
table.cart tr.ah-kit-cab td { background: #FFF6EF; border-top: 1px solid #FDE7D7; padding-top: 12px; padding-bottom: 12px; }
table.cart tr.ah-kit-cab .ah-kcab__a { margin-left: auto; }
table.cart tr.ah-kit td { background: #FFFCF9; }
table.cart tr.ah-kit td.product-quantity { color: #8A6F62; }
table.cart tr.ah-kit.ah-kit-fim td { border-bottom: 1px solid #FDE7D7; }

/* ---------- celular (layout de cartões do Shoptimizer) ---------- */
@media (max-width: 768px) {
	.woocommerce-cart table.cart tr.ah-kit-cab {
		display: block; position: relative; margin: 0; padding: 12px 44px 10px 12px;
		background: #FFF6EF; border: 1px solid #FDE7D7; border-bottom: 0; border-radius: 14px 14px 0 0;
	}
	.woocommerce-cart table.cart tr.ah-kit-cab td { display: block; padding: 0; border: 0; background: none; }
	.woocommerce-cart table.cart tr.ah-kit-cab td::before { display: none !important; content: none !important; }
	.woocommerce-cart table.cart tr.ah-kit-cab td.product-remove { position: absolute; top: 10px; right: 12px; }
	.woocommerce-cart table.cart tr.ah-kit-cab .ah-kcab { gap: 6px 10px; }
	.woocommerce-cart table.cart tr.ah-kit-cab .ah-kcab__t { flex: 1 1 auto; font-size: .9rem; }
	.woocommerce-cart table.cart tr.ah-kit-cab .ah-kcab__p { font-size: .95rem; }
	.woocommerce-cart table.cart tr.ah-kit-cab .ah-kcab__e { flex-basis: 100%; }
	.woocommerce-cart table.cart tr.ah-kit-cab .ah-kcab__q { margin-right: auto; }
	.woocommerce-cart table.cart tr.ah-kit-cab .ah-kcab__a { margin-left: 0; }

	.woocommerce-cart table.cart tr.ah-kit {
		margin: 0 !important; padding: 10px 12px 10px 86px !important; min-height: 0 !important;
		background: #fff; border: 1px solid #FDE7D7; border-top: 0; border-bottom: 1px dashed #F2D6C1;
	}
	.woocommerce-cart table.cart tr.ah-kit td { background: none; border: 0 !important; }
	.woocommerce-cart table.cart tr.ah-kit.ah-kit-fim { border-bottom: 1px solid #FDE7D7; border-radius: 0 0 14px 14px; margin-bottom: 16px !important; }
	.woocommerce-cart table.cart tr.ah-kit td.product-thumbnail { top: 10px; left: 12px; width: 64px; max-height: 64px; padding: 0; }
	.woocommerce-cart table.cart tr.ah-kit td.product-thumbnail img { width: 64px; max-width: 64px; border-radius: 10px; }
	.woocommerce-cart table.cart tr.ah-kit td.product-name { padding-right: 0; }
	.woocommerce-cart table.cart tr.ah-kit td.product-name a { padding-right: 0; font-size: .82rem; line-height: 1.35; }
	.woocommerce-cart table.cart tr.ah-kit td.product-name dl.variation { margin: 2px 0 0; font-size: .75rem; }
	.woocommerce-cart table.cart tr.ah-kit td.product-quantity,
	.woocommerce-cart table.cart tr.ah-kit td.product-subtotal { display: none; } /* quantidade e total ficam no cabeçalho */
	.woocommerce-cart table.cart tr.ah-kit td.product-price { font-size: .85rem; }
}

/* ---------- cupom que não entra no kit (totais do carrinho e do checkout) ---------- */
.ah-kit-cupom { display: block; margin-top: 2px; font-size: .72rem; font-weight: 400; color: #8A6F62; white-space: nowrap; }

/* ---------- checkout do Rishi ---------- */
.ah-kit .variation-Kit,
.ah-kit dd.variation-Kit p { color: #D55600; font-weight: 600; }
