/* ==========================================================================
   SebasPeru — página de carrito, checkout, pedido recibido y bloques de pedido.
   Medidas y colores de producción (.cart-*, .co-*, .co2-*). Solo se carga en
   carrito, checkout y Mi cuenta.
   ========================================================================== */

.sp-cartpage, .sp-checkoutpage { padding-top: 22px; padding-bottom: 10px; }
.sp-cartpage .woocommerce-notices-wrapper:not(:empty), .sp-checkoutpage .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 4px; }

/* ---------------- Página de carrito ---------------- */
.sp-cart__title, .sp-co__pagetitle { font-size: 26px; font-weight: 800; color: #0f172a; letter-spacing: -.4px; margin: 0 0 4px; line-height: 1.45; }
.sp-co__pagetitle { margin-bottom: 16px; }
.sp-cart__grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.sp-cart__items { margin: 0; min-width: 0; }
.sp-cart__list { display: flex; flex-direction: column; gap: 12px; }
.sp-cart__row {
	display: grid; grid-template-columns: 78px 1fr auto auto auto; align-items: center; gap: 16px;
	background: #fff; border: 1px solid #e9edf3; border-radius: 12px; padding: 14px;
}
.sp-cart__thumb { width: 78px; height: 70px; background: #f6f8fb; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-cart__thumb a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sp-cart__thumb img { max-width: 100%; max-height: 100%; width: auto !important; height: auto; object-fit: contain; margin: 0 !important; }
.sp-cart__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-cart__name, .sp-cart__name a { font-size: 14px; font-weight: 700; color: #1e293b; }
.sp-cart__name a:hover { color: var(--sp-primary); }
.sp-cart__name dl.variation { margin: 2px 0 0; font-size: 12px; color: #64748b; font-weight: 400; }
.sp-cart__sku { font-size: 12px; color: #64748b; }
.sp-cart__price { font-size: 12.5px; color: #64748b; }
.sp-cart__price .amount { color: inherit; font-weight: 400; }
.sp-cart__qty .quantity, .sp-cart__qty div.quantity {
	display: inline-flex !important; align-items: stretch; border: 1.5px solid #e9edf3; border-radius: 9px; overflow: hidden; background: #fff; width: auto;
}
.sp-cart__qty .sp-qty-btn { width: 38px; height: 44px; font-size: 18px; font-weight: 400; color: #334155; background: #f6f8fb; border: 0; padding: 0; cursor: pointer; }
.sp-cart__qty .sp-qty-btn:hover { color: #334155; background: #eef1f6; }
.sp-cart__qty .quantity .qty { width: 46px !important; height: 44px; flex: none; padding: 0 !important; font-size: 14px; font-weight: 600; color: #000; background: #fff; }
.sp-cart__subtotal { font-weight: 800; color: #0f172a; min-width: 90px; text-align: right; }
.sp-cart__subtotal .amount { font-weight: inherit; color: inherit; }
.sp-cart .product-remove a.remove {
	display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px;
	font-size: 14px; font-weight: 400; line-height: 1; color: #94a3b8 !important; background: transparent; text-decoration: none;
}
.sp-cart .product-remove a.remove:hover { color: #ef4444 !important; background: #fef2f2 !important; }
.sp-cart__actions { height: 0; overflow: hidden; }
.sp-cart__items.processing, .sp-cart__items .blockUI.blockOverlay { border-radius: 12px; }

.sp-cart__summary { min-width: 0; position: sticky; top: 16px; }
.sp-cart__summary .cart_totals, .woocommerce .cart-collaterals .cart_totals.sp-totals {
	float: none; width: 100%; background: #fff; border: 1px solid #e9edf3; border-radius: 14px; padding: 20px;
}
.sp-totals h2, .woocommerce .cart-collaterals .cart_totals.sp-totals h2 { font-size: 16px; font-weight: 800; color: #0f172a; margin: 0 0 14px; line-height: 1.45; }
.sp-totals__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #475569; padding: 8px 0; }
.sp-totals__row b, .sp-totals__row b .amount { font-weight: 700; color: inherit; }
.sp-totals__muted { color: #64748b; }
.sp-totals__row--discount { color: #16a34a; }
.sp-totals__row--total { border-top: 1px solid #e9edf3; margin-top: 6px; padding-top: 14px; font-size: 16px; color: #0f172a; }
.sp-totals__row--total b { font-size: 19px; }
.sp-totals__note { margin: 6px 0 0; font-size: 12px; color: #64748b; }
.sp-totals .wc-proceed-to-checkout { padding: 0; margin: 0; }
.sp-totals a.sp-cart__checkout, .woocommerce .sp-totals a.checkout-button.sp-cart__checkout {
	display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 12px 22px;
	background: var(--sp-primary); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.45; border-radius: 9px;
}
.sp-totals a.sp-cart__checkout:hover { background: var(--sp-primary-hover); color: #fff; }
.sp-cart__continue {
	display: flex; width: 100%; align-items: center; justify-content: center; margin-top: 10px; padding: 11px 16px;
	border: 1.5px solid var(--sp-primary); border-radius: 10px; background: #fff; color: var(--sp-primary); font-weight: 700; font-size: 14px; line-height: 1.45;
}
.sp-cart__continue:hover { color: var(--sp-primary-hover); border-color: var(--sp-primary-hover); }
.sp-totals .sp-freebar { margin: -20px -20px 16px; border-radius: 14px 14px 0 0; }

.sp-cart-suggest { margin-top: 32px; }
.sp-cart-suggest__title { font-size: 20px; font-weight: 800; color: #0f1c2e; margin-bottom: 16px; }
.sp-cart-suggest__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }

/* Carrito vacío (como .empty-state) */
.sp-cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 60px 20px; }
.sp-cart-empty .sp-icon { color: #94a3b8; margin-bottom: 6px; }
.sp-cart-empty__title { font-size: 22px; color: #0f172a; font-weight: 700; line-height: 1.45; }
.sp-cart-empty__text { margin: 0; color: #64748b; }
.sp-cart-empty__btn.sp-btn { margin-top: 12px; padding: 12px 22px; font-weight: 600; border-radius: 9px; line-height: 1.45; }

/* ---------------- Checkout ---------------- */
.sp-checkout { padding-top: 24px; margin: 0; }
.sp-checkout .woocommerce-NoticeGroup-checkout { margin-bottom: 16px; }
.sp-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.sp-co__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sp-co__sec { background: #fff; border: 1px solid #e9edf3; border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.sp-co__title { font-size: 16px; font-weight: 800; color: #0f1c2e; line-height: 1.45; margin: 0 0 12px; }
.sp-co__sub { font-size: 13px; color: #5a7090; margin: -8px 0 16px; line-height: 1.45; }
.sp-co__sub--after { margin-bottom: 0; }

.sp-checkout .sp-field, .woocommerce .sp-checkout form .sp-field, .woocommerce-checkout .sp-checkout .form-row.sp-field { display: block; padding: 0; margin: 0 0 12px; width: auto; float: none; }
.sp-checkout .sp-field__label, .woocommerce .sp-checkout form .form-row label.sp-field__label, .woocommerce form.sp-checkout .form-row label.sp-field__label { display: block; font-size: 13px; font-weight: 400; color: #5a7090; line-height: 1.45; margin: -8px 0 16px; padding: 0; }
.sp-checkout .sp-field input.input-text, .woocommerce .sp-checkout .sp-field input.input-text {
	width: 100%; height: 52px; min-height: 0; border: 1.5px solid #e9edf3; border-radius: 12px; padding: 0 16px; margin: 0 0 10px;
	font-size: 14px; font-family: inherit; color: #0f1c2e; background: #fff; outline: none; line-height: normal; box-shadow: none;
}
.sp-checkout .sp-field input.input-text::placeholder { color: #8a97ab; opacity: 1; }
.sp-checkout .sp-field input.input-text:focus, .sp-checkout .sp-field select:focus { border-color: var(--sp-primary); }
.sp-checkout .sp-field select, .woocommerce .sp-checkout .sp-field select {
	width: 100%; height: 52px; min-height: 0; border: 1.5px solid #e9edf3; border-radius: 12px; padding: 0 38px 0 14px; font-size: 14px;
	color: #0f1c2e; outline: none; background-color: #fff; font-family: inherit; -webkit-appearance: none; -moz-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238a97ab' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 15px center; line-height: normal;
}
.sp-checkout .sp-field select:disabled { background-color: #f1f4f9; color: #9aa7ba; cursor: not-allowed; }
.sp-checkout .sp-field textarea { width: 100%; border: 1.5px solid #e9edf3; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-family: inherit; color: #0f1c2e; outline: none; min-height: 90px; }
.sp-checkout [aria-invalid="true"], .sp-checkout .woocommerce-invalid input.input-text, .sp-checkout .woocommerce-invalid select { border-color: #dc2626 !important; }
.sp-checkout .checkout-inline-error-message { display: block; margin: -4px 0 0; font-size: 12px; color: #dc2626; line-height: 1.45; }
.sp-checkout .sp-field select + .checkout-inline-error-message { margin-top: 6px; }

.sp-co__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.sp-co__grid2 .sp-field, .woocommerce .sp-checkout .sp-co__grid2 .sp-field { margin-bottom: 0; }
.sp-co__grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.sp-co__grid3 .sp-field, .woocommerce .sp-checkout .sp-co__grid3 .sp-field { margin-bottom: 0; }
.sp-co__grid-doc { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.sp-co__grid-doc .sp-field select { margin-bottom: 10px; }
[hidden] { display: none !important; }

/* Selector segmentado (.co-seg) */
.sp-seg { display: flex; gap: 6px; background: #eef2f8; border-radius: 12px; padding: 5px; margin-bottom: 16px; }
.sp-seg__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sp-seg__btn {
	flex: 1 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 9px;
	font-size: 14px; font-weight: 700; color: #5a7090; line-height: normal; cursor: pointer; margin: 0; text-align: center;
}
.sp-seg__input:checked + .sp-seg__btn { background: #fff; color: #0f1c2e; box-shadow: 0 1px 4px rgba(15, 28, 46, .12); }
.sp-seg__input:focus-visible + .sp-seg__btn { outline: 2px solid var(--sp-primary); outline-offset: 2px; }

/* Retiro en tienda (.co-note) */
.sp-ship__pickup { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e9edf3; border-radius: 12px; padding: 14px 16px; font-size: 13px; color: #45536b; }
.sp-ship__pickup .sp-icon { flex-shrink: 0; }

/* Métodos de envío (.co-ship) */
.sp-ship__hint { margin: 0; background: #f1f5f9; border-radius: 12px; padding: 16px; font-size: 13.5px; color: #5a7090; line-height: 1.45; }
.sp-ship__list { display: flex; flex-direction: column; gap: 10px; }
.sp-ship__opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid #e9edf3; border-radius: 12px; padding: 14px 16px; cursor: pointer; margin: 0; line-height: 1.45; }
.sp-ship__opt.is-selected, .sp-ship__opt:has(input:checked) { border-color: var(--sp-primary); background: #f5f8ff; }
.sp-ship__opt input { accent-color: var(--sp-primary); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.sp-ship__txt { flex: 1 1; }
.sp-ship__txt b { display: block; font-size: 14px; color: #0f1c2e; }
.sp-ship__txt small { font-size: 12px; color: #5a7090; }
.sp-ship__price { font-weight: 800; color: #0f1c2e; }
.sp-ship__price .amount { font-weight: inherit; color: inherit; }

/* Métodos de pago (.co2-pay) */
.woocommerce-checkout .sp-checkout #payment, .sp-checkout #payment { background: transparent; border-radius: 0; padding: 0; margin: 0; }
.sp-checkout #payment ul.sp-pay, .woocommerce-checkout #payment ul.payment_methods.sp-pay { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; border: 0; list-style: none; }
.sp-checkout #payment ul.sp-pay li.sp-pay__opt, .woocommerce-checkout #payment ul.payment_methods li.sp-pay__opt {
	display: flex; align-items: center; gap: 14px; border: 1.5px solid #e9edf3; border-radius: 10px; padding: 14px 16px; margin: 0;
	cursor: pointer; line-height: 1.45; font-weight: 400; text-align: left; background: #fff;
}
.sp-checkout #payment li.sp-pay__opt.is-selected, .sp-checkout #payment li.sp-pay__opt:has(> input:checked) { border-color: var(--sp-primary); background: #f5f8ff; }
.sp-checkout #payment li.sp-pay__opt > input, .woocommerce-checkout #payment ul.payment_methods li.sp-pay__opt > input { accent-color: var(--sp-primary); width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.sp-checkout #payment li.sp-pay__opt label.sp-pay__label { display: contents; cursor: pointer; }
/* Sin el clearfix ::before/::after de WooCommerce: en flex serían ítems vacíos con 2 × 14px de gap que estrechan el texto. */
.woocommerce-checkout .sp-checkout #payment ul.payment_methods li.sp-pay__opt::before,
.woocommerce-checkout .sp-checkout #payment ul.payment_methods li.sp-pay__opt::after { display: none; }
.sp-pay__icwrap { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-pay__icwrap img { max-height: 24px; width: auto; margin: 0 !important; }
.sp-pay__ic { width: 38px; height: 38px; border-radius: 8px; background: #f1f4f9; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1.45; }
.sp-pay__txt { flex: 1 1; min-width: 0; font-size: 14px; line-height: 1.45; }
.sp-pay__desc { display: inline; }
/* Gateways de otros plugins: descripción en una sola línea (alto de línea de 14px × 1.45) para medir lo mismo
   que los del tema; la completa va en .payment_box. Los del tema hacen el salto de línea de producción a 375. */
.sp-pay__opt:not([class*="payment_method_sebas_"]) .sp-pay__desc { display: block; line-height: 20.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-pay__txt b { display: block; font-size: 14px; font-weight: 700; color: #1e293b; }
.sp-pay__txt small, .sp-pay__boxdesc { color: #64748b; font-size: 12.5px; margin: 0; }
.sp-pay__opt.is-selected .sp-pay__desc { display: none; }
.sp-checkout #payment div.payment_box, .woocommerce-checkout .sp-checkout #payment div.payment_box {
	background: none; padding: 0; margin: 0; border-radius: 0; color: inherit; font-size: inherit; line-height: 1.45; width: auto;
}
.sp-checkout #payment div.payment_box::before { display: none; }
.sp-checkout #payment div.payment_box p { margin: 0; }
.sp-pay__wallet { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
/* img.sp-pay__qr: más específico que .woocommerce-page img { max-width: 100% } de WooCommerce. */
.sp-pay__wallet img.sp-pay__qr { max-width: 160px; height: auto; border-radius: 8px; border: 1px solid #e9edf3; background: #fff; }
.sp-pay__data { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #45536b; }
.sp-pay__data b { color: #0f1c2e; }
.sp-co__paynote { display: flex; align-items: center; gap: 12px; background: #eef3ff; border-radius: 10px; padding: 14px 16px; margin-top: 16px; }
.sp-co__paynote .sp-icon { color: var(--sp-primary); flex-shrink: 0; }
.sp-co__paynote b { display: block; font-size: 13.5px; color: #1e293b; }
.sp-co__paynote span { font-size: 12.5px; color: #64748b; }

/* Resumen (.co2-summary) */
.sp-co__summary { position: sticky; top: 16px; min-width: 0; }
.sp-co__sumcard { background: #fff; border: 1px solid #e9edf3; border-radius: 14px; padding: 20px; }
.sp-co__sumtitle { font-size: 16px; font-weight: 800; color: #0f172a; margin: 0 0 16px; line-height: 1.45; }
.sp-checkout #order_review { margin: 0; padding: 0; }
.sp-review__item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #e9edf3; margin-bottom: 14px; }
.sp-review__thumb { width: 64px; height: 56px; background: #f6f8fb; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-review__thumb img { max-width: 100%; max-height: 100%; width: auto !important; height: auto; object-fit: contain; margin: 0 !important; }
.sp-review__info { min-width: 0; }
.sp-review__info b { display: block; font-size: 13.5px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.sp-review__meta { font-size: 12px; color: #64748b; }
.sp-review__info dl.variation { margin: 0; font-size: 12px; color: #64748b; }
.sp-review__price { font-weight: 800; color: #0f172a; font-size: 14px; white-space: nowrap; }
.sp-review__price .amount { font-weight: inherit; color: inherit; }
.sp-co__coupon { display: flex; gap: 8px; margin-bottom: 14px; }
.sp-co__coupon input.input-text {
	flex: 1 1; min-width: 0; border: 2px inset #767676; border-radius: 0; padding: 1px 2px; font-size: 13.3333px; font-family: Arial, sans-serif;
	background: #fff; color: #000; height: auto; margin: 0;
}
.sp-co__coupon-btn {
	border: 1.5px solid var(--sp-primary); color: var(--sp-primary); background: #fff; font-weight: 700; font-size: 14px; padding: 11px 16px;
	border-radius: 10px; cursor: pointer; text-align: center; font-family: inherit; line-height: normal;
}
.sp-co__coupon.processing { opacity: .6; pointer-events: none; }
.sp-co__coupon-msg { margin: -6px 0 12px; font-size: 12.5px; }
.sp-co__coupon-msg .woocommerce-error, .sp-co__coupon-msg .woocommerce-message, .sp-co__coupon-msg .woocommerce-info { margin: 0 !important; padding: 10px 12px 10px 36px !important; font-size: 12.5px; }
.sp-review__sum .sp-totals__row { padding: 7px 0; }
.sp-review__sum .is-free { color: #16a34a; }
.sp-review__sum .is-discount, .sp-review__sum .is-discount .amount { color: #ef3e3e; }
.sp-review__coupon { font-size: 11.5px; color: #64748b; margin-left: 4px; }
.sp-review__coupon a { color: var(--sp-primary); }
.sp-review__total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e9edf3; padding-top: 14px; margin-top: 6px; }
.sp-review__total b { font-size: 16px; color: #0f172a; }
.sp-review__total small { display: block; color: #64748b; font-size: 12px; }
.sp-review__total-val, .sp-review__total-val .amount { color: var(--sp-primary); font-size: 24px; font-weight: 800; line-height: 1.45; }
.sp-co__terms, .woocommerce .sp-checkout .sp-co__terms.form-row { margin: 14px 0 4px; padding: 0; }
.sp-co__terms label, .woocommerce .sp-checkout .sp-co__terms label, .woocommerce form.sp-checkout .form-row.sp-co__terms label { font-weight: 400; color: #0f1c2e; display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; margin: 0; }
.sp-co__terms input { margin-top: 3px; flex: none; }
.sp-co__terms a { color: inherit; }
.sp-co__terms a:hover { color: var(--sp-primary); }
.sp-co__terms .checkout-inline-error-message { margin-top: 6px; }
.sp-checkout button#place_order.sp-co__place, .woocommerce .sp-checkout button.button.alt.sp-co__place {
	width: 100%; height: 52px; border-radius: 10px; background: var(--sp-primary); color: #fff; font-weight: 700; font-size: 15px;
	display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 0; border: 0; float: none; line-height: normal;
}
.sp-checkout button#place_order.sp-co__place::after {
	content: ''; width: 16px; height: 16px; background: currentColor; flex-shrink: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sp-checkout button#place_order.sp-co__place:hover { background: var(--sp-primary-hover); }
.sp-co__safe { display: flex; align-items: center; gap: 12px; background: #e9f8ef; border-radius: 12px; padding: 16px; margin-top: 12px; }
.sp-co__safe-ic { color: #16a34a; flex-shrink: 0; display: flex; }
.sp-co__safe b { display: block; font-size: 13.5px; color: #14532d; }
.sp-co__safe span { font-size: 12.5px; color: #3f6b4f; }

/* Beneficios bajo el checkout (.pd2-features.co2-features) */
.sp-co__features { display: grid; grid-template-columns: repeat(4, 1fr); background: #f6f8fb; border: 1px solid #e9edf3; border-radius: 12px; margin-top: 36px; }
.sp-co__feat { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-right: 1px solid #e9edf3; }
.sp-co__feat:last-child { border-right: 0; }
.sp-co__feat-ic { width: 40px; height: 40px; border-radius: 10px; background: #eaf1ff; color: var(--sp-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-co__feat b { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }
.sp-co__feat span { font-size: 12px; color: #64748b; }

.sp-checkout .blockUI.blockOverlay { border-radius: 14px; }

/* ---------------- Pedido recibido ---------------- */
.sp-thanks { padding-top: 24px; }
.sp-thanks__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px 28px; }
.sp-thanks__ok { width: 76px; height: 76px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.sp-thanks__title { font-size: 22px; color: #0f172a; font-weight: 700; }
.sp-thanks__text { color: #64748b; margin: 0; max-width: 560px; }
.sp-thanks .woocommerce-notice { background: none !important; border: 0 !important; box-shadow: none; padding: 0 !important; }
.sp-thanks__overview { list-style: none; margin: 0 0 16px; padding: 18px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; background: #fff; border: 1px solid #e9edf3; border-radius: 14px; }
.sp-thanks__overview li, .woocommerce .sp-thanks ul.order_details.sp-thanks__overview li { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #64748b; margin: 0; padding: 0; border: 0; text-transform: none; float: none; }
.sp-thanks__overview li b, .woocommerce .sp-thanks ul.order_details.sp-thanks__overview li b { font-size: 14px; color: #0f172a; font-weight: 800; }
.woocommerce ul.order_details.sp-thanks__overview::before, .woocommerce ul.order_details.sp-thanks__overview::after { display: none; }
.sp-thanks__pay { background: #fff; border: 1px solid #e9edf3; border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.sp-thanks__pay h3, .sp-thanks__receipt h3, .sp-thanks__delivery h3 { font-size: 16px; font-weight: 800; color: #0f172a; margin: 0 0 12px; }
.sp-thanks__wallet { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-thanks__qr { max-width: 160px; height: auto; border: 1px solid #e9edf3; border-radius: 10px; }
.sp-thanks__data, .sp-thanks__receipt dl, .sp-thanks__delivery dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.sp-thanks__data dt, .sp-thanks__receipt dt, .sp-thanks__delivery dt { color: #64748b; font-weight: 400; }
.sp-thanks__data dd, .sp-thanks__receipt dd, .sp-thanks__delivery dd { margin: 0; color: #0f172a; font-weight: 700; }
.sp-thanks__amount, .sp-thanks__amount .amount { color: var(--sp-primary); font-size: 18px; font-weight: 800; }
.sp-thanks__banks { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.sp-thanks__banks th, .sp-thanks__banks td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e9edf3; }
.sp-thanks__banks th { color: #64748b; font-weight: 700; font-size: 12px; background: #f6f8fb; }
.sp-thanks__instructions { margin: 0 0 12px; font-size: 13.5px; color: #45536b; }
.sp-thanks__wa { display: inline-flex; align-items: center; gap: 8px; background: var(--sp-wa); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 10px; }
.sp-thanks__wa:hover { color: #fff; filter: brightness(.95); }
.sp-thanks__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sp-thanks__receipt, .sp-thanks__delivery { background: #fff; border: 1px solid #e9edf3; border-radius: 14px; padding: 20px; }
.sp-thanks .woocommerce-order-details, .sp-thanks .woocommerce-customer-details { background: #fff; border: 1px solid #e9edf3; border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.sp-thanks .woocommerce-order-details__title, .sp-thanks .woocommerce-column__title { font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.sp-thanks table.shop_table { border: 0; margin: 0; border-radius: 0; font-size: 13.5px; }
.sp-thanks table.shop_table th, .sp-thanks table.shop_table td { padding: 9px 4px; border-top: 1px solid #e9edf3; }
.sp-thanks__actions { text-align: center; margin: 8px 0 0; }
.sp-thanks__failed { padding: 24px 0; }

/* Bloques de comprobante/entrega en Mi cuenta */
.sp-order-blocks--account { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.sp-order-blocks--account .sp-order-block { background: #fff; border: 1px solid #e9edf3; border-radius: 14px; padding: 18px 20px; }
.sp-order-blocks--account h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.sp-order-blocks--account table { font-size: 13.5px; }
.sp-order-blocks--account th { color: #64748b; font-weight: 400; }

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
	.sp-cart__grid { grid-template-columns: 1fr; }
	.sp-cart__summary { position: static; }
	.sp-cart-suggest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.sp-co__grid { grid-template-columns: minmax(0, 1fr); }
	.sp-co__features { grid-template-columns: repeat(2, 1fr); }
	.sp-co__feat:nth-child(2) { border-right: 0; }
}
@media (max-width: 820px) {
	.sp-co__summary { position: static; }
}
@media (max-width: 640px) {
	.sp-cartpage, .sp-checkoutpage { padding-top: 0; }
	.sp-cart__title, .sp-co__pagetitle { font-size: 22px; }
	.sp-cart__row { grid-template-columns: 64px 1fr auto; }
	.sp-co__grid3 { grid-template-columns: 1fr; }
	.sp-thanks__cols, .sp-order-blocks--account { grid-template-columns: 1fr; }
	.sp-thanks__banks thead { display: none; }
	.sp-thanks__banks tr { display: block; border-bottom: 1px solid #e9edf3; padding: 6px 0; }
	.sp-thanks__banks td { display: flex; justify-content: space-between; border: 0; padding: 3px 0; }
	.sp-thanks__banks td::before { content: attr(data-title); color: #64748b; font-size: 12px; }
}
/* La descripción dentro del recuadro ocupa la misma línea que el <small> de producción. */
.sp-checkout #payment div.payment_box p.sp-pay__boxdesc { display: inline; }
.sp-checkout .sp-ship__err { margin-top: 8px; }
