/* Barra inferior móvil tipo Woodmart. */

.ed-dock {
	display: none;
}

@media (max-width: 849px) {
	.ed-dock {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10050;
		align-items: stretch;
		justify-content: space-around;
		height: 64px;
		padding: 0 4px env(safe-area-inset-bottom, 0px);
		background: #fff;
		border-top: 1px solid #e5eaf0;
		box-shadow: 0 -6px 20px rgba(13, 27, 42, 0.12);
	}

	html,
	body {
		padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
	}

	.ed-dock-item {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		min-width: 0;
		text-decoration: none !important;
		color: #0d1b2a;
		position: relative;
	}

	.ed-dock-item.is-active {
		color: #0d1b2a;
	}

	.ed-dock-item.is-active::before {
		content: "";
		position: absolute;
		top: 0;
		left: 18%;
		right: 18%;
		height: 3px;
		background: #f5c518;
		border-radius: 0 0 3px 3px;
	}

	.ed-dock-icon {
		position: relative;
		width: 24px;
		height: 24px;
		display: block;
	}

	.ed-dock-icon svg {
		width: 24px;
		height: 24px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
		stroke-linejoin: round;
		stroke-linecap: round;
	}

	.ed-dock-item.is-active .ed-dock-icon svg {
		fill: #f5c518;
		stroke: #0d1b2a;
	}

	.ed-dock-label {
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 0.02em;
		line-height: 1;
		white-space: nowrap;
	}

	.ed-dock-badge {
		position: absolute;
		top: -6px;
		right: -10px;
		min-width: 16px;
		height: 16px;
		padding: 0 4px;
		border-radius: 99px;
		background: #f5c518;
		color: #0d1b2a;
		font-size: 10px;
		font-weight: 800;
		line-height: 16px;
		text-align: center;
	}

	.ed-dock-badge--empty {
		display: none;
	}

	.qlwapp,
	.qlwapp-container,
	div#qlwapp,
	.qlwapp__container {
		bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
	}

	body.single-product .related .product-small .box,
	body.single-product .upsells .product-small .box {
		display: flex;
		flex-direction: column;
		height: 100%;
		background: #fff;
	}

	body.single-product .related .product-small .box-image,
	body.single-product .upsells .product-small .box-image {
		aspect-ratio: 1 / 1;
		overflow: hidden;
		background: #fff;
	}

	body.single-product .related .product-small .box-image img,
	body.single-product .upsells .product-small .box-image img {
		object-fit: contain !important;
		object-position: center;
		width: 100%;
		height: 100%;
		padding: 8px;
		box-sizing: border-box;
	}

	body.single-product .related .product-small .box-text,
	body.single-product .upsells .product-small .box-text {
		display: block !important;
		visibility: visible !important;
		height: auto !important;
		overflow: visible !important;
		padding: 8px 10px 12px !important;
		min-height: 3.2em;
	}

	body.single-product .related .flickity-viewport,
	body.single-product .upsells .flickity-viewport {
		height: auto !important;
		overflow: visible !important;
	}

	body.single-product .related .product-small .name a,
	body.single-product .upsells .product-small .name a {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		white-space: normal !important;
		font-size: 12px;
		line-height: 1.25;
	}

	body.single-product .related-products-wrapper {
		padding-bottom: 8px;
	}
}
