/*
 * Cart, mini-cart and transactional header (#257). WooCommerce renders the block cart and the
 * mini-cart; this file only restyles them to docs/design/mockups/Cart.dc.html, MobileCart.dc.html
 * and Components.dc.html (mini-cart drawer). Colours, fonts and radii come from theme.json
 * (--wp--preset--*, --wp--custom--*); the numbers are the artboard values.
 */

/* ---- Transactional header (cart, checkout, order received): wordmark + one link ---- */
.blk-tx-bar {
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--blk-line);
}
.blk-tx-row {
	gap: 24px;
	padding-block: 16px;
}
.blk-tx-row > * {
	margin-block: 0 !important;
}
.blk-tx-spacer {
	flex: 1 1 auto;
}
.blk-tx-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	font-weight: 600;
}
.blk-tx-secure {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--blk-muted);
}
.blk-tx-back,
.blk-tx-title {
	display: none;
}
/* Which pieces each page shows (WooCommerce body classes). */
.woocommerce-cart .blk-tx-secure,
.woocommerce-checkout .blk-tx-link,
.woocommerce-order-received .blk-tx-secure,
.woocommerce-order-received .blk-tx-link {
	display: none;
}
.blk-tx-heading {
	margin-block: 0 24px;
	font-size: var(--wp--preset--font-size--40);
	letter-spacing: -1px;
}
.wp-site-blocks > main.blk-tx-main {
	padding-top: 32px;
	padding-bottom: 64px;
}
.blk-tx-container > * {
	margin-block: 0;
}
.blk-tx-container > .blk-tx-heading,
.blk-tx-container > .blk-free-shipping {
	margin-block-end: 16px;
}
.wp-site-blocks > .blk-tx-footer {
	margin-block-start: 0;
}
.blk-tx-footer {
	border-top: 1px solid var(--blk-line);
}

/* ---- Free-shipping progress ---- */
.blk-free-shipping {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 20px;
	border: 1px solid var(--blk-line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	font-size: 15px;
}
.blk-free-shipping[hidden] {
	display: none;
}
.blk-free-shipping__text {
	margin: 0;
}
.blk-free-shipping__track {
	height: 8px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--blk-alt);
	overflow: hidden;
}
.blk-free-shipping__bar {
	height: 8px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--blk-primary);
	transition: width 0.3s ease;
}
@media (min-width: 1000px) {
	/* Same width as the line-items column (the summary column is 360 px + the 32 px gap). */
	.blk-free-shipping {
		max-width: calc(100% - 392px);
	}
}

/* ---- Cart layout: items column + summary card ---- */
.wc-block-components-sidebar-layout.wc-block-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
	margin: 0;
}
.wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-main,
.wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-sidebar {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-main {
	flex: 999 1 560px;
	width: auto;
}
.wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-sidebar {
	flex: 1 1 360px;
	width: auto;
	padding: 24px;
	border: 1px solid var(--blk-line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}

/* Line items: the table becomes a stack of cards (selectors outrank WooCommerce's cart.css) */
.wp-site-blocks .wc-block-cart table.wc-block-cart-items {
	display: block;
	width: 100%;
	border: 0;
	border-collapse: separate;
}
.wp-site-blocks .wc-block-cart table.wc-block-cart-items thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}
.wp-site-blocks .wc-block-cart table.wc-block-cart-items tbody {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.wp-site-blocks .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) auto;
	column-gap: 20px;
	row-gap: 0;
	padding: 20px;
	border: 1px solid var(--blk-line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}
.wp-site-blocks .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row > td {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
}
.wp-site-blocks .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
	grid-column: 1;
	grid-row: 1;
}
.wp-site-blocks .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product {
	grid-column: 2;
	grid-row: 1;
}
.wp-site-blocks .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total {
	grid-column: 3;
	grid-row: 1;
	display: block;
	text-align: right;
}
.wc-block-cart-item__image img:not([hidden]) {
	display: block;
	width: 120px;
	height: 148px;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--control);
	background: var(--blk-alt);
}
.wc-block-cart-item__image a {
	display: block;
}
.wp-site-blocks .wc-block-cart-item__wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
.wc-block-cart-item__wrap > * {
	margin: 0;
}
.wp-site-blocks table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name,
.wp-site-blocks table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
	max-width: none;
	color: var(--blk-text);
	font-family: var(--wp--preset--font-family--bricolage-grotesque);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}
.wp-site-blocks table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name:hover {
	color: var(--blk-primary);
	text-decoration: underline;
}
/* The unit price is not in the mockup; the line total on the right is. */
.wc-block-cart-items .wc-block-cart-item__prices {
	display: none;
}
.wp-site-blocks table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
.wp-site-blocks table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-product-price,
.wp-site-blocks table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-formatted-money-amount {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

/* Configuration details: dimensions in mono, options as a dotted run, delivery in Pino */
.wc-block-cart-items .wc-block-components-product-details,
.wc-block-mini-cart-items .wc-block-components-product-details {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--blk-muted);
}
:where(.wc-block-components-product-details) > span {
	order: 3;
	display: inline;
}
.wc-block-components-product-details > span > span[aria-hidden="true"] {
	display: none;
}
/* Labels stay for screen readers; sighted users read the values only. */
.wc-block-components-product-details__name {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.wc-block-components-product-details__ancho,
.wc-block-components-product-details__alto,
.wc-block-components-product-details__profundo {
	order: 1;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-weight: 500;
	font-size: 14px;
}
.wc-block-components-product-details__alto::before,
.wc-block-components-product-details__profundo::before {
	content: "\00a0×\00a0";
}
/* Forces the options onto their own line after the dimensions. */
.wc-block-components-product-details::before {
	content: "";
	order: 2;
	flex-basis: 100%;
	height: 0;
}
.wc-block-components-product-details > span:not([class*="__ancho"]):not([class*="__alto"]):not([class*="__profundo"]):not([class*="__entrega"]) ~ span:not([class*="__ancho"]):not([class*="__alto"]):not([class*="__profundo"]):not([class*="__entrega"])::before {
	content: "·";
	display: inline-block;
	padding-inline: 0.45em;
}
.wc-block-components-product-details > span[class*="__entrega"] {
	order: 4;
	flex-basis: 100%;
	margin-top: 6px;
	color: var(--blk-primary);
	font-weight: 600;
}
.wc-block-components-product-details > span[class*="__entrega"] .wc-block-components-product-details__name {
	position: static;
	width: auto;
	height: auto;
	clip-path: none;
	margin-right: 0.3em;
}

/* Quantity row: stepper (components.css), edit link, remove */
.wc-block-cart-item__quantity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: 8px;
}
.blk-edit-config {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	font-size: 14px;
	font-weight: 600;
}
button.wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--error);
	font: 600 14px/1 var(--wp--preset--font-family--instrument-sans);
	text-decoration: none;
	cursor: pointer;
}
button.wc-block-cart-item__remove-link:hover {
	text-decoration: underline;
}
button.wc-block-cart-item__remove-link svg {
	display: none;
}
button.wc-block-cart-item__remove-link::after {
	content: "Eliminar";
}

/* Summary card */
.wc-block-cart__sidebar .wc-block-cart__totals-title,
.wp-block-woocommerce-cart-order-summary-heading-block {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-family: var(--wp--preset--font-family--bricolage-grotesque);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
}
.wp-site-blocks .wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wp-site-blocks .wc-block-cart__sidebar .wc-block-components-panel,
.wp-site-blocks .wc-block-cart__sidebar .wc-block-components-totals-coupon,
.wp-site-blocks .wc-block-cart__sidebar .wc-block-components-totals-item {
	padding-left: 0;
	padding-right: 0;
	border: 0;
}
.wp-site-blocks .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
	padding-top: 0;
	padding-bottom: 0;
}
.wc-block-cart__sidebar .wc-block-components-totals-wrapper + .wc-block-components-totals-wrapper {
	margin-top: 14px;
}
.wc-block-components-totals-item {
	font-size: 15px;
}
.wc-block-components-totals-item__label {
	font-weight: 400;
}
.wc-block-components-totals-item__description {
	font-size: 13px;
	color: var(--blk-muted);
}
/* Coupon disclosure */
.wc-block-components-totals-coupon .wc-block-components-panel__button,
.wc-block-components-panel__button {
	min-height: var(--wp--custom--touch-target);
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--blk-primary);
	cursor: pointer;
}
.wc-block-components-totals-coupon .wc-block-components-panel__button {
	margin: 0;
}
.wc-block-components-totals-coupon__form {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}
.wc-block-components-totals-coupon__input {
	flex-grow: 1;
	min-width: 0;
}
.wc-block-components-totals-coupon__button {
	min-height: var(--wp--custom--touch-target);
	height: var(--wp--custom--touch-target);
	padding: 0 14px;
	border: 0;
	border-radius: var(--wp--custom--radius--control);
	background: var(--blk-alt);
	color: var(--blk-text);
	font: 600 15px/1 var(--wp--preset--font-family--instrument-sans);
	cursor: pointer;
}
/* Total in Cinta */
.wc-block-components-totals-footer-item {
	padding-top: 14px;
	border-top: 1px solid var(--blk-line);
	align-items: baseline;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 17px;
	font-weight: 700;
}
.wc-block-components-totals-footer-item > .wc-block-components-totals-item__value {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--bricolage-grotesque);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.5px;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__description {
	flex-basis: 100%;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__description .wc-block-formatted-money-amount {
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: 0;
}
.wc-block-cart__submit-container {
	margin-top: 14px;
}
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	box-sizing: border-box;
	min-height: 56px;
	border-radius: var(--wp--custom--radius--control);
	background: var(--blk-primary);
	color: var(--wp--preset--color--surface);
	font: 600 18px/1.2 var(--wp--preset--font-family--instrument-sans);
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--surface);
}

/* Empty cart */
.wp-block-woocommerce-empty-cart-block {
	padding: 24px;
	border: 1px solid var(--blk-line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}

/* ---- Mobile cart (≤ 600 px): compact cards, back arrow header, sticky total ---- */
@media (max-width: 599px) {
	.blk-tx-row {
		padding-block: 0;
		min-height: 56px;
		gap: 8px;
	}
	.blk-tx-row .blk-wordmark,
	.blk-tx-row .blk-tx-spacer,
	.blk-tx-row .blk-tx-link,
	.blk-tx-row .blk-tx-secure {
		display: none;
	}
	.blk-tx-back {
		display: none;
		align-items: center;
		justify-content: center;
		width: var(--wp--custom--touch-target);
		height: var(--wp--custom--touch-target);
		margin-left: -8px;
		color: var(--blk-text);
	}
	.blk-tx-title {
		display: none;
		margin: 0;
		font-family: var(--wp--preset--font-family--bricolage-grotesque);
		font-size: 20px;
		font-weight: 700;
	}
	.woocommerce-cart .blk-tx-back--shop,
	.woocommerce-cart .blk-tx-title--cart,
	.woocommerce-checkout:not(.woocommerce-order-received) .blk-tx-back--cart,
	.woocommerce-checkout:not(.woocommerce-order-received) .blk-tx-title--checkout {
		display: inline-flex;
	}
	.woocommerce-order-received .blk-tx-row .blk-wordmark {
		display: inline-flex;
	}
	.blk-tx-heading {
		display: none;
	}
	.wp-site-blocks > main.blk-tx-main {
		padding-top: 12px;
		padding-bottom: 120px;
	}
	.blk-free-shipping {
		gap: 8px;
		padding: 12px 14px;
		border-radius: 14px;
		font-size: 14px;
	}
	.blk-free-shipping__track,
	.blk-free-shipping__bar {
		height: 6px;
	}
	.wp-site-blocks .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 84px minmax(0, 1fr);
		column-gap: 12px;
		padding: 14px;
		border-radius: 14px;
	}
	.wc-block-cart-item__image img:not([hidden]) {
		width: 84px;
		height: 104px;
		border-radius: 10px;
	}
	.wp-site-blocks .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
		grid-row: 1 / span 2;
	}
	.wp-site-blocks table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name,
	.wp-site-blocks table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
		font-family: var(--wp--preset--font-family--instrument-sans);
		font-size: 17px;
		font-weight: 700;
	}
	.wp-site-blocks .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total {
		grid-column: 2;
		grid-row: 2;
		margin-top: 4px;
	}
	.wc-block-components-product-details__ancho,
	.wc-block-components-product-details__alto,
	.wc-block-components-product-details__profundo {
		font-size: 13px;
	}
	.wc-block-cart-items .wc-block-components-product-details {
		font-size: 13px;
	}
	.wc-block-cart-item__quantity {
		margin-top: 6px;
	}
	.wc-block-components-sidebar-layout.wc-block-cart > .wc-block-components-sidebar {
		padding: 16px;
		border-radius: 14px;
	}
	/* The WooCommerce sticky submit bar, with the total on top (cart.js adds .blk-sticky-total). */
	.wc-block-cart__submit-container--sticky {
		box-sizing: border-box;
		margin: 0;
		padding: 12px 16px 16px;
		border-top: 1px solid var(--blk-line);
		background: var(--wp--preset--color--surface);
	}
	.blk-sticky-total {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		margin-bottom: 10px;
		font-size: 15px;
	}
	.blk-sticky-total small {
		font-size: 12px;
		color: var(--blk-muted);
	}
	.blk-sticky-total strong {
		color: var(--wp--preset--color--accent);
		font-family: var(--wp--preset--font-family--bricolage-grotesque);
		font-size: 24px;
		font-weight: 800;
	}
	.wc-block-cart__submit-container--sticky .wc-block-cart__submit-button {
		min-height: 52px;
		font-size: 17px;
	}
}
@media (min-width: 600px) {
	.blk-sticky-total {
		display: none;
	}
}

/* ---- Header mini-cart button: 44 px, Superficie secundaria ---- */
.blk-mini-cart {
	flex: 0 0 var(--wp--custom--touch-target);
}
.blk-mini-cart .wc-block-mini-cart__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--wp--custom--touch-target);
	height: var(--wp--custom--touch-target);
	min-width: var(--wp--custom--touch-target);
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--control);
	background: var(--blk-alt);
	color: var(--blk-text);
	cursor: pointer;
}
.blk-mini-cart .wc-block-mini-cart__button:hover {
	color: var(--blk-primary);
}
.blk-mini-cart .wc-block-mini-cart__quantity-badge {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.blk-mini-cart .wc-block-mini-cart__icon {
	width: 24px;
	height: 24px;
	margin: 0;
}
.blk-mini-cart .wc-block-mini-cart__badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--surface) !important;
	font: 600 12px/20px var(--wp--preset--font-family--instrument-sans);
	text-align: center;
}

/* ---- Mini-cart drawer from the right (Components artboard): 420 px, 24 px padding ---- */
.wc-block-components-drawer__screen-overlay {
	background: var(--wp--custom--scrim);
}
.wc-block-components-drawer {
	box-sizing: border-box;
	width: min(420px, 100%);
	max-width: 100%;
	border-radius: 0;
	background: var(--wp--preset--color--surface);
	color: var(--blk-text);
	box-shadow: none;
}
.wc-block-components-drawer__content {
	box-sizing: border-box;
	padding: 24px;
}
.wc-block-components-button.wc-block-components-drawer__close {
	box-sizing: border-box;
	inset-inline-end: 20px;
	top: 20px;
	width: var(--wp--custom--touch-target);
	height: var(--wp--custom--touch-target);
	min-width: var(--wp--custom--touch-target);
	margin: 0;
	padding: 0 !important;
	border: 0;
	border-radius: var(--wp--custom--radius--control);
	background: var(--blk-alt) !important;
	color: var(--blk-text) !important;
	opacity: 1;
}
.wc-block-components-button.wc-block-components-drawer__close svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.wp-block-woocommerce-mini-cart-contents {
	background-color: var(--wp--preset--color--surface) !important;
}
.wc-block-mini-cart__title {
	margin: 0 0 16px;
	padding-right: 56px;
	font-family: var(--wp--preset--font-family--bricolage-grotesque);
	font-size: 24px;
	font-weight: 700;
}
.wc-block-mini-cart__title .wp-block-woocommerce-mini-cart-title-items-counter-block {
	font-size: 15px;
	font-weight: 500;
	color: var(--blk-muted);
}
.wc-block-mini-cart__items {
	padding: 0;
}
.wc-block-mini-cart-items {
	display: block;
	width: 100%;
	border: 0;
}
.wc-block-mini-cart-items thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}
.wc-block-mini-cart-items tbody {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-items__row {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	column-gap: 12px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-items__row > td {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
}
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-item__image {
	grid-column: 1;
	grid-row: 1;
}
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-item__product {
	grid-column: 2;
	grid-row: 1;
}
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-item__total {
	grid-column: 3;
	grid-row: 1;
	text-align: right;
}
.wc-block-mini-cart-items .wc-block-cart-item__image img:not([hidden]) {
	width: 72px;
	height: 88px;
	border-radius: 10px;
}
.wc-block-mini-cart-items .wc-block-cart-item__wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-items__row a.wc-block-components-product-name,
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
	max-width: none;
	color: var(--blk-text);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--instrument-sans);
	font-size: 16px;
	font-weight: 700;
}
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-item__total .wc-block-components-product-price,
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-item__total .wc-block-formatted-money-amount {
	font-size: 15px;
	font-weight: 700;
}
table.wc-block-cart-items.wc-block-mini-cart-items .wc-block-cart-item__prices {
	display: none;
}
.wc-block-mini-cart-items .wc-block-components-product-details__ancho,
.wc-block-mini-cart-items .wc-block-components-product-details__alto,
.wc-block-mini-cart-items .wc-block-components-product-details__profundo {
	font-size: 13px;
}
.wc-block-mini-cart-items .wc-block-components-product-details {
	font-size: 13px;
}
/* The drawer is narrow: delivery estimate stays on the cart and checkout pages. */
.wc-block-mini-cart-items .wc-block-components-product-details > span[class*="__entrega"] {
	display: none;
}
.wc-block-mini-cart__footer {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 0 0;
	border-top: 1px solid var(--blk-line);
}
.wc-block-mini-cart__footer .wc-block-components-totals-item {
	font-size: 17px;
}
.wc-block-mini-cart__footer .wc-block-components-totals-item__label {
	font-weight: 700;
}
.wc-block-mini-cart__footer .wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--bricolage-grotesque);
	font-size: 22px;
	font-weight: 800;
	color: var(--wp--preset--color--accent);
}
.wc-block-mini-cart__footer-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.wc-block-mini-cart__footer-actions .wc-block-components-button {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--wp--custom--control-height);
	margin: 0;
	border-radius: var(--wp--custom--radius--control);
	font: 600 16px/1.2 var(--wp--preset--font-family--instrument-sans);
	text-decoration: none;
}
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart {
	border: var(--wp--custom--border-width) solid var(--blk-text);
	background: transparent;
	color: var(--blk-text);
	order: 1;
}
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart:hover {
	background: var(--blk-text);
	color: var(--wp--preset--color--surface);
}
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout {
	order: 2;
	min-height: 52px;
	border: 0;
	background: var(--blk-primary);
	color: var(--wp--preset--color--surface);
	font-size: 17px;
}
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout:hover {
	background: var(--wp--preset--color--primary-dark);
}
@media (max-width: 599px) {
	.wc-block-components-drawer__content {
		padding: 20px 16px;
	}
}

/* ---- Footer of cart and checkout: legal row only ---- */
.blk-tx-footer .blk-footer-legal {
	padding-block: 16px 32px;
	gap: 16px;
	font-size: 13px;
	color: var(--blk-muted);
}
.blk-tx-footer .blk-footer-legal p {
	margin: 0;
}

/* Drawer: keep the title row clear of the items and the close button */
.wp-block-woocommerce-mini-cart-contents .wc-block-mini-cart__title {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-height: var(--wp--custom--touch-target);
	margin: 0 0 8px;
}
.wp-block-woocommerce-mini-cart-contents .wc-block-mini-cart__items {
	margin: 0;
	padding-top: 16px;
}
