/**
 * Orderable side drawer: barra "añadir al carrito" fija abajo, contenido con scroll.
 */

.orderable-drawer__html.orderable-drawer__inner {
	min-height: 0;
	overflow: hidden;
}

.orderable-drawer__html .orderable-product {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	min-height: 0;
	height: 100%;
	max-height: 100%;
	overflow: hidden;
}

.orderable-drawer__html .orderable-product__hero {
	flex-shrink: 0;
}

/* Producto variable / opciones: el bloque con scroll es .orderable-sb-container */
.orderable-drawer__html .orderable-product--options .orderable-sb-container {
	min-height: 0;
	height: 100%;
	margin-bottom: 0;
	padding-bottom: 0;
	overflow: hidden;
}

.orderable-drawer__html .orderable-product--options .orderable-sb-content {
	height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.orderable-drawer__html .orderable-product--options .orderable-product__actions {
	margin-top: 0;
	padding-top: 16px;
	padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid #e6ecef;
	box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
	position: sticky;
	bottom: 0;
	z-index: 3;
}

/* Tarjeta simple en el drawer: descripción con scroll, acciones abajo */
.orderable-drawer__html .orderable-product__content-wrap {
	min-height: 0;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	overflow: hidden;
}

.orderable-drawer__html .orderable-product__content-wrap .orderable-product__content {
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.orderable-drawer__html .orderable-product__content-wrap .orderable-product__actions {
	margin-top: 0;
	padding-top: 16px;
	padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid #e6ecef;
	box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
	position: sticky;
	bottom: 0;
	z-index: 3;
}

/* Alineacion de filas en modal (cantidad, nombre y precio) */
.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table tr {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) max-content;
	align-items: center;
	column-gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid #e6ecef;
}

.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table td {
	vertical-align: middle;
	padding: 0;
}

.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table td.woocommerce-grouped-product-list-item__label {
	min-width: 0;
	overflow: hidden;
}

.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table td.woocommerce-grouped-product-list-item__label a {
	display: block;
	overflow-wrap: anywhere;
	line-height: 1.35;
}

.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table td.woocommerce-grouped-product-list-item__price {
	justify-self: end;
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
}

.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table td.woocommerce-grouped-product-list-item__label,
.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table td.woocommerce-grouped-product-list-item__price {
	margin: 0;
}

.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table {
	width: 100%;
	border-collapse: collapse;
}

.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table tr:first-child {
	padding-top: 4px;
}

.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table td.woocommerce-grouped-product-list-item__quantity {
	width: 84px;
	min-width: 84px;
}

.orderable-drawer__html .orderable-product-fields-group-wrap .woocommerce-grouped-product-list.group_table td.woocommerce-grouped-product-list-item__quantity .quantity {
	display: flex;
	justify-content: flex-start;
}

/* Orderable: floating cart with site green background and white icon */
.orderable-floating-cart .orderable-floating-cart__button,
.orderable-floating-cart .orderable-floating-cart__button:hover {
	background: var(--wp--preset--color--primary);
}

.orderable-floating-cart .orderable-floating-cart__button svg,
.orderable-floating-cart .orderable-floating-cart__button svg * {
	fill: #fff;
	color: #fff;
}
