/**
 * Carrito cotizador — OZ Cotizador / MYG.
 *
 * Maquetación de tabla clásica (Producto · Precio · Cantidad · Subtotal) con el panel de totales
 * a la derecha. Los colores salen de los tokens `--ozc-*`, que cada tema puede reescribir sobre
 * `.ozc-quote-cart` (Xtralife lo hace en `legacy-extras.css` con su verde y su dorado).
 */

/* ════════════════════════════════════════════════
   AISLAMIENTO DE LAYOUT (WooCommerce overrides)
   ════════════════════════════════════════════════ */
.woocommerce.ozc-quote-cart,
.woocommerce-page .woocommerce.ozc-quote-cart,
.woocommerce-cart .woocommerce.ozc-quote-cart,
.entry-content .woocommerce.ozc-quote-cart,
.wp-block-post-content .woocommerce.ozc-quote-cart {
	float: none;
	clear: both;
	width: 100%;
	box-sizing: border-box;
}

form.woocommerce-cart-form.ozc-quote-cart__form {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	clear: both !important;
	box-sizing: border-box;
}

/* Botones y campos heredan `content-box` de WooCommerce y del tema: con `width:100%`
   más padding se salen de la tarjeta (que recorta por `overflow:hidden`). */
.ozc-quote-cart,
.ozc-quote-cart *,
.ozc-quote-cart *::before,
.ozc-quote-cart *::after {
	box-sizing: border-box;
}

/* ════════════════════════════════════════════════
   TOKENS DE DISEÑO
   ════════════════════════════════════════════════ */
.ozc-quote-cart {
	--ozc-bg:           #ffffff;
	--ozc-surface:      #ffffff;
	--ozc-surface-alt:  #f7f8f6;
	--ozc-border:       rgba(0, 0, 0, 0.13);
	--ozc-border-soft:  rgba(0, 0, 0, 0.07);
	--ozc-text:         #1e2a22;
	--ozc-muted:        #5d6b62;
	--ozc-accent:       #bc0811;
	--ozc-accent-dark:  #970610;
	--ozc-accent-line:  #001E50;
	--ozc-yellow:       #001E50;
	--ozc-yellow-dark:  #00163b;
	--ozc-shadow:       0 1px 4px rgba(0, 0, 0, 0.07), 0 6px 20px rgba(0, 0, 0, 0.04);
	--ozc-radius:       16px;
	--ozc-radius-sm:    9px;

	max-width: 1180px;
	margin: 0 auto;
	padding: 1.5rem clamp(0.75rem, 2.5vw, 2rem) 3.5rem;
	box-sizing: border-box;
	background: var(--ozc-bg);
	color: var(--ozc-text);
}

/* ════════════════════════════════════════════════
   CABECERA
   ════════════════════════════════════════════════ */
.ozc-quote-cart__header {
	margin-bottom: 1.5rem;
	padding: 1.1rem 1.5rem;
	background: var(--ozc-accent);
	border-radius: var(--ozc-radius);
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.ozc-quote-cart__header::before {
	content: '';
	flex-shrink: 0;
	width: 0.25rem;
	height: 2.25rem;
	border-radius: 4px;
	background: var(--ozc-accent-line);
}

.ozc-quote-cart__intro {
	margin: 0;
	font-size: clamp(0.9rem, 2vw, 1rem);
	line-height: 1.55;
	font-weight: 500;
	color: #ffffff;
}

/* ════════════════════════════════════════════════
   ESTADO VACÍO
   ════════════════════════════════════════════════ */
.ozc-quote-cart__empty {
	text-align: center;
	padding: 3.5rem 1.5rem;
	background: var(--ozc-surface);
	border: 1px solid var(--ozc-border-soft);
	border-radius: var(--ozc-radius);
	box-shadow: var(--ozc-shadow);
}

.ozc-quote-cart__empty p {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	color: var(--ozc-muted);
}

/* ════════════════════════════════════════════════
   TABLA DE PRODUCTOS
   ════════════════════════════════════════════════ */
.ozc-quote-cart__table-wrap {
	background: var(--ozc-surface);
	border: 1px solid var(--ozc-border-soft);
	border-radius: var(--ozc-radius);
	box-shadow: var(--ozc-shadow);
	overflow: hidden;
}

/* Tres clases en el prefijo para ganarle a `.woocommerce table.shop_table` del core,
   que trae su propio borde, radio y padding. */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: auto;
	font-size: 0.9375rem;
	color: var(--ozc-text);
}

/* Cabecera de columnas */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table thead th {
	padding: 0.95rem 1.15rem;
	background: var(--ozc-accent);
	color: #ffffff;
	border: 0;
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	text-align: left;
	white-space: nowrap;
	line-height: 1.2;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table thead th.product-price,
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table thead th.product-subtotal {
	text-align: right;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table thead th.product-quantity {
	text-align: center;
}

/* Celdas */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td {
	padding: 1rem 1.15rem;
	border: 0;
	border-top: 1px solid var(--ozc-border-soft);
	vertical-align: middle;
	background: transparent;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table tbody tr:first-child td {
	border-top: 0;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table tbody tr.cart_item {
	transition: background 0.15s ease;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table tbody tr.cart_item:hover {
	background: var(--ozc-surface-alt);
}

/* Anchos de columna */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-remove {
	width: 3.25rem;
	padding-right: 0;
	text-align: center;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-thumbnail {
	width: 5.75rem;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-price,
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-subtotal {
	width: 7rem;
	text-align: right;
	white-space: nowrap;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-quantity {
	width: 8.5rem;
	text-align: center;
}

/* Botón eliminar */
.ozc-quote-cart .ozc-quote-cart__remove,
.ozc-quote-cart a.ozc-quote-cart__remove.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	background-color: var(--ozc-accent);
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/><line x1='10' y1='11' x2='10' y2='17'/><line x1='14' y1='11' x2='14' y2='17'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 6 21 6'/><path d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/><line x1='10' y1='11' x2='10' y2='17'/><line x1='14' y1='11' x2='14' y2='17'/></svg>");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center center;
	mask-position: center center;
	-webkit-mask-size: 18px 18px;
	mask-size: 18px 18px;
	border: none;
	border-radius: 4px;
	color: transparent;
	font-size: 0;
	text-decoration: none;
	padding: 0;
	transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
	cursor: pointer;
	opacity: 0.8;
	overflow: hidden;
}

/* Oculta cualquier SVG / IMG que el PHP haya inyectado dentro del <a> */
.ozc-quote-cart__remove svg,
.ozc-quote-cart__remove img {
	display: none !important;
}

.ozc-quote-cart .ozc-quote-cart__remove:hover,
.ozc-quote-cart .ozc-quote-cart__remove:focus,
.ozc-quote-cart a.ozc-quote-cart__remove.remove:hover,
.ozc-quote-cart a.ozc-quote-cart__remove.remove:focus {
	background-color: #dc2626;
	border: none;
	color: transparent;
	opacity: 1;
	transform: scale(1.1);
	outline: none;
	box-shadow: none;
	text-decoration: none;
}

/* Miniatura */
.ozc-quote-cart__thumb {
	width: 4.5rem;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ozc-surface-alt);
	border: 1px solid var(--ozc-border-soft);
}

.ozc-quote-cart__thumb a {
	display: block;
}

/* `table.cart img { width: 32px }` del core deja la foto diminuta dentro de la caja. */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.product-thumbnail .ozc-quote-cart__thumb img {
	width: 100%;
	height: auto;
	display: block;
	box-shadow: none;
	mix-blend-mode: multiply;
}

/* Nombre del producto */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.product-name {
	font-weight: 600;
	line-height: 1.4;
	color: var(--ozc-text);
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.product-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.product-name a:hover {
	color: var(--ozc-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Variaciones y metadatos del ítem */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.product-name .variation,
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.product-name dl.variation {
	margin: 0.3rem 0 0;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--ozc-muted);
}

/* Precio y subtotal */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.product-price {
	color: var(--ozc-muted);
	font-weight: 500;
}

.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.product-subtotal {
	font-weight: 800;
	color: var(--ozc-accent);
}

/* ════════════════════════════════════════════════
   CONTROL DE CANTIDAD
   ════════════════════════════════════════════════ */
.ozc-quote-cart__qty-wrap {
	display: flex;
	justify-content: center;
}

/* Stepper de cantidad — usa los botones nativos del tema (.qib-button).
   El wrapper .qib-button-wrapper es la caja con borde; .quantity sólo envuelve el input.
   Se neutralizan los estilos globales de qib-assets (float, border, height fija de 41px). */
.ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper {
	display: inline-flex;
	align-items: stretch;
	flex-wrap: nowrap;
	float: none;
	border: 1.5px solid var(--ozc-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--ozc-surface);
	min-height: 2.4rem;
	height: auto;
	vertical-align: middle;
	margin: 0;
	padding: 0;
	gap: 0;
	white-space: nowrap;
}

.ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper .quantity,
.ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper div.quantity.wqpmb_quantity {
	display: inline-flex;
	align-items: stretch;
	float: none;
	height: auto;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.ozc-quote-cart__qty-wrap .qty.ozc-quote-cart__qty-input,
.ozc-quote-cart__qty-wrap .qty,
.ozc-quote-cart__qty-wrap .wqpmb_input_text {
	width: 2.75rem;
	min-width: 2.25rem;
	max-width: 4rem;
	text-align: center;
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--ozc-text);
	border: 0 !important;
	border-left: 1px solid var(--ozc-border-soft) !important;
	border-right: 1px solid var(--ozc-border-soft) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 0.25rem !important;
	line-height: 1.3;
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent;
	min-height: 100%;
}

/* Ocultar spinner nativo — reemplazado por los botones del tema */
.ozc-quote-cart__qty-wrap .qty::-webkit-outer-spin-button,
.ozc-quote-cart__qty-wrap .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Botones +/- nativos del tema (Quantity Increment Buttons).
   Selectores reforzados con .ozc-quote-cart y body para ganar a qib-assets/style.css. */
.ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper button.qib-button,
body .ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper .minus.qib-button,
body .ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper .plus.qib-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.95rem;
	min-width: 1.95rem;
	height: auto;
	min-height: 100%;
	padding: 0;
	margin: 0;
	background: var(--ozc-accent);
	color: #ffffff;
	border: none;
	border-radius: 0;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	box-shadow: none;
	transition: background 0.15s ease;
}

.ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper button.qib-button:hover,
.ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper button.qib-button:focus,
body .ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper .minus.qib-button:hover,
body .ozc-quote-cart .ozc-quote-cart__qty-wrap .qib-button-wrapper .plus.qib-button:hover {
	background: var(--ozc-accent-dark);
	color: #ffffff;
	outline: none;
}

/* Stepper propio (`quote-cart.js`): sólo se inyecta si el sitio no trae los
   botones del plugin Quantity Increment Buttons, así que nunca se duplican. */
.ozc-quote-cart .ozc-quote-cart__qty-wrap .ozc-qty {
	display: inline-flex;
	align-items: stretch;
	flex-wrap: nowrap;
	border: 1.5px solid var(--ozc-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--ozc-surface);
	min-height: 2.4rem;
}

.ozc-quote-cart .ozc-quote-cart__qty-wrap .ozc-qty .quantity {
	display: inline-flex;
	align-items: stretch;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.ozc-quote-cart .ozc-quote-cart__qty-wrap .ozc-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.95rem;
	min-width: 1.95rem;
	padding: 0;
	margin: 0;
	background: var(--ozc-accent);
	color: #ffffff;
	border: 0;
	border-radius: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	transition: background 0.15s ease;
}

.ozc-quote-cart .ozc-quote-cart__qty-wrap .ozc-qty__btn:hover,
.ozc-quote-cart .ozc-quote-cart__qty-wrap .ozc-qty__btn:focus {
	background: var(--ozc-accent-dark);
	color: #ffffff;
	outline: none;
}

.ozc-quote-cart .ozc-quote-cart__qty-wrap .ozc-qty__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ════════════════════════════════════════════════
   FILA DE ACCIONES (CUPÓN + ACTUALIZAR CARRITO)
   ════════════════════════════════════════════════ */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.actions {
	padding: 1rem 1.15rem;
	background: var(--ozc-surface-alt);
	border-top: 1px solid var(--ozc-border-soft);
}

.ozc-quote-cart__actions-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.ozc-quote-cart .ozc-quote-cart__coupon.coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	float: none;
	margin: 0;
	padding: 0;
	width: auto;
}

/* Seis clases para ganarle a `.woocommerce table.cart td.actions .coupon .input-text`
   del core, que fija 100px y float:left. */
.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.actions .ozc-quote-cart__coupon input.ozc-quote-cart__coupon-input {
	width: 13rem;
	max-width: 100%;
	float: none;
	box-sizing: border-box;
	min-height: 2.6rem;
	padding: 0 0.9rem;
	border: 1.5px solid var(--ozc-border);
	border-radius: var(--ozc-radius-sm);
	background: var(--ozc-surface);
	font-size: 0.9rem;
	color: var(--ozc-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ozc-quote-cart input.ozc-quote-cart__coupon-input:focus {
	outline: none;
	border-color: var(--ozc-accent);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* ════════════════════════════════════════════════
   BOTONES — BASE
   ════════════════════════════════════════════════ */
.ozc-quote-cart a.ozc-quote-cart__btn,
.ozc-quote-cart button.ozc-quote-cart__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.6rem;
	padding: 0 1.25rem;
	border-radius: var(--ozc-radius-sm);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	line-height: 1.25;
	border: 1.5px solid transparent;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.ozc-quote-cart a.ozc-quote-cart__btn:hover,
.ozc-quote-cart button.ozc-quote-cart__btn:hover {
	transform: translateY(-1px);
}

.ozc-quote-cart a.ozc-quote-cart__btn:active,
.ozc-quote-cart button.ozc-quote-cart__btn:active {
	transform: translateY(0);
}

.ozc-quote-cart a.ozc-quote-cart__btn:disabled,
.ozc-quote-cart button.ozc-quote-cart__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
}

/* Sólido — color de marca (aplicar cupón, checkout sin totales) */
.ozc-quote-cart a.ozc-quote-cart__btn.ozc-quote-cart__btn--solid,
.ozc-quote-cart button.ozc-quote-cart__btn.ozc-quote-cart__btn--solid {
	background: var(--ozc-accent);
	color: #ffffff;
	border-color: var(--ozc-accent);
}

.ozc-quote-cart a.ozc-quote-cart__btn.ozc-quote-cart__btn--solid:hover,
.ozc-quote-cart button.ozc-quote-cart__btn.ozc-quote-cart__btn--solid:hover {
	background: var(--ozc-accent-dark);
	border-color: var(--ozc-accent-dark);
	color: #ffffff;
}

/* Ghost — volver a la tienda (selectores dobles para ganar al .button del tema) */
.ozc-quote-cart a.ozc-quote-cart__btn.ozc-quote-cart__btn--ghost,
.ozc-quote-cart a.ozc-quote-cart__btn--ghost,
.ozc-quote-cart button.ozc-quote-cart__btn.ozc-quote-cart__btn--ghost,
.ozc-quote-cart button.ozc-quote-cart__btn--ghost {
	background: transparent;
	color: var(--ozc-text);
	border: 1.5px solid var(--ozc-border);
	font-weight: 600;
}

.ozc-quote-cart a.ozc-quote-cart__btn.ozc-quote-cart__btn--ghost:hover,
.ozc-quote-cart a.ozc-quote-cart__btn--ghost:hover,
.ozc-quote-cart button.ozc-quote-cart__btn.ozc-quote-cart__btn--ghost:hover,
.ozc-quote-cart button.ozc-quote-cart__btn--ghost:hover {
	background: rgba(0, 0, 0, 0.04);
	border-color: var(--ozc-accent);
	color: var(--ozc-accent);
}

/* Outline — actualizar carrito (ídem, selectores reforzados) */
.ozc-quote-cart a.ozc-quote-cart__btn.ozc-quote-cart__btn--outline,
.ozc-quote-cart a.ozc-quote-cart__btn--outline,
.ozc-quote-cart button.ozc-quote-cart__btn.ozc-quote-cart__btn--outline,
.ozc-quote-cart button.ozc-quote-cart__btn--outline {
	background: var(--ozc-surface);
	color: var(--ozc-text);
	border: 1.5px solid var(--ozc-border);
	font-weight: 600;
}

.ozc-quote-cart a.ozc-quote-cart__btn.ozc-quote-cart__btn--outline:hover,
.ozc-quote-cart a.ozc-quote-cart__btn--outline:hover,
.ozc-quote-cart button.ozc-quote-cart__btn.ozc-quote-cart__btn--outline:hover,
.ozc-quote-cart button.ozc-quote-cart__btn--outline:hover {
	background: rgba(0, 0, 0, 0.04);
	border-color: var(--ozc-accent);
	color: var(--ozc-accent);
}

/* ════════════════════════════════════════════════
   PIE: VOLVER A LA TIENDA + TOTALES
   ════════════════════════════════════════════════ */
.ozc-quote-cart__collaterals {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	margin-top: 1.75rem;
	clear: both;
}

@media (min-width: 900px) {
	.ozc-quote-cart__collaterals {
		grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
		align-items: start;
	}
}

.ozc-quote-cart__collaterals-aside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
}

.ozc-quote-cart__totals-wrap {
	float: none;
	width: 100%;
	margin: 0;
	background: var(--ozc-surface);
	border: 1px solid var(--ozc-border-soft);
	border-radius: var(--ozc-radius);
	box-shadow: var(--ozc-shadow);
	overflow: hidden;
}

/* Cuatro clases para ganarle a `.woocommerce .cart-collaterals .cart_totals`
   (float:right; width:48%) de woocommerce-layout.css, que si no deja los
   totales en una columna estrecha flotada que se sale de la caja. */
.ozc-quote-cart .ozc-quote-cart__totals-wrap .ozc-quote-cart__totals-inner.cart-collaterals,
.ozc-quote-cart .ozc-quote-cart__totals-wrap .ozc-quote-cart__totals-inner.cart-collaterals .cart_totals {
	width: 100%;
	max-width: 100%;
	float: none;
	margin: 0;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
}

/* Título «Cart totals» como cabecera de la tarjeta */
.ozc-quote-cart .ozc-quote-cart__totals-inner .cart_totals h2 {
	margin: 0;
	padding: 0.95rem 1.25rem;
	background: var(--ozc-accent);
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	line-height: 1.2;
}

.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table th,
.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table td {
	padding: 0.85rem 1.25rem;
	border: 0;
	border-top: 1px solid var(--ozc-border-soft);
	background: transparent;
	vertical-align: top;
}

.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table tr:first-child th,
.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table tr:first-child td {
	border-top: 0;
}

.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table th {
	width: 40%;
	text-align: left;
	font-weight: 600;
	color: var(--ozc-muted);
}

.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table td {
	text-align: right;
	color: var(--ozc-text);
}

/* Opciones de envío: la lista nativa trae viñetas y márgenes */
.ozc-quote-cart .ozc-quote-cart__totals-inner .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ozc-quote-cart .ozc-quote-cart__totals-inner .woocommerce-shipping-destination,
.ozc-quote-cart .ozc-quote-cart__totals-inner .shipping-calculator-button {
	font-size: 0.8125rem;
	color: var(--ozc-muted);
}

/* Total final destacado */
.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table tr.order-total th,
.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table tr.order-total td {
	padding-top: 1rem;
	padding-bottom: 1rem;
	background: var(--ozc-surface-alt);
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--ozc-text);
}

.ozc-quote-cart .ozc-quote-cart__totals-inner .shop_table tr.order-total td {
	color: var(--ozc-accent);
}

/* Botón «Proceed to checkout» — ancho completo dentro de la tarjeta */
.ozc-quote-cart .ozc-quote-cart__totals-inner .wc-proceed-to-checkout {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin: 0;
	padding: 1.25rem;
}

.ozc-quote-cart .ozc-quote-cart__totals-inner .wc-proceed-to-checkout a.checkout-button,
.ozc-quote-cart .ozc-quote-cart__totals-inner .wc-proceed-to-checkout a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.1rem;
	margin: 0;
	padding: 0 1.25rem;
	background: var(--ozc-accent);
	color: #ffffff;
	border: 1.5px solid var(--ozc-accent-dark);
	border-radius: var(--ozc-radius-sm);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ozc-quote-cart .ozc-quote-cart__totals-inner .wc-proceed-to-checkout a.checkout-button:hover,
.ozc-quote-cart .ozc-quote-cart__totals-inner .wc-proceed-to-checkout a.button:hover {
	background: var(--ozc-accent-dark);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	transform: translateY(-1px);
}

/* ════════════════════════════════════════════════
   RESPONSIVE — LA TABLA PASA A TARJETAS
   ════════════════════════════════════════════════ */
@media (max-width: 782px) {
	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table thead {
		display: none;
	}

	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table,
	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table tbody,
	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table tr,
	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td {
		display: block;
		width: auto;
	}

	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table tbody tr.cart_item {
		position: relative;
		display: grid;
		/* La primera columna la marca el stepper (≈7rem), no la miniatura. */
		grid-template-columns: 7.5rem minmax(0, 1fr);
		grid-template-areas:
			"thumb name"
			"thumb price"
			"qty   subtotal";
		gap: 0.5rem 0.9rem;
		align-items: center;
		padding: 1rem 2.75rem 1rem 1rem;
		border-top: 1px solid var(--ozc-border-soft);
	}

	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table tbody tr.cart_item td {
		padding: 0;
		border: 0;
	}

	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-thumbnail {
		grid-area: thumb;
		align-self: start;
	}

	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-name {
		grid-area: name;
	}

	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-price {
		grid-area: price;
		width: auto;
		text-align: left;
	}

	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-quantity {
		grid-area: qty;
		width: auto;
	}

	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-subtotal {
		grid-area: subtotal;
		width: auto;
		text-align: right;
	}

	/* Etiqueta de columna delante del valor */
	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-price::before,
	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-subtotal::before {
		content: attr(data-title) ": ";
		font-size: 0.6875rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: var(--ozc-muted);
	}

	/* El botón de borrar flota en la esquina de la tarjeta */
	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table .product-remove {
		position: absolute;
		top: 0.75rem;
		right: 0.75rem;
		width: auto;
		padding: 0;
	}

	.ozc-quote-cart__qty-wrap {
		justify-content: flex-start;
	}

	.ozc-quote-cart__actions-row {
		flex-direction: column;
		align-items: stretch;
	}

	/* Sin anchura fija, la caja del cupón crece hasta la suma de campo + botón y
	   se sale de la tarjeta en vez de encoger el campo. */
	.ozc-quote-cart .ozc-quote-cart__coupon.coupon {
		flex-wrap: nowrap;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	/* Misma especificidad que la regla de escritorio, que fija 13rem. */
	.woocommerce.ozc-quote-cart table.ozc-quote-cart__table td.actions .ozc-quote-cart__coupon input.ozc-quote-cart__coupon-input {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	.ozc-quote-cart .ozc-quote-cart__coupon .ozc-quote-cart__btn,
	.ozc-quote-cart__actions-row > .ozc-quote-cart__btn {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.ozc-quote-cart__collaterals-aside .ozc-quote-cart__btn {
		flex: 1 1 auto;
	}
}
