
.wc-block-mini-cart__drawer {
	background: #ffffff;
	font-family: inherit;
    width:fit-content;
    

	/* Ancho del drawer — ajustado para eliminar scroll horizontal */
	.wc-block-components-drawer__content,
	&.wc-block-components-drawer__content {
		max-width: 100vw;
		box-sizing: border-box;
	}

	.wc-block-mini-cart__title {
		font-size: 22px;
		font-weight: 400;
		color: #333;
		padding: 20px 24px 12px;
		border-bottom: 1px solid #e5e5e5;
	}

	.wc-block-cart-items {
		padding: 0 24px;
		box-sizing: border-box;
		width: 100%;
	}

	.wc-block-cart-items__row,
	.wc-block-cart-item {
		display: flex;
		align-items: flex-start;
		gap: 16px;
		padding: 20px 0;
		border-bottom: 1px solid #e5e5e5;
	}

	.wc-block-cart-item__image {
		width: 90px;
		height: 90px;
		flex-shrink: 0;

		img {
			width: 100%;
			height: 100%;
			object-fit: contain;
			border: 1px solid #eee;
			border-radius: 4px;
		}
	}

	.wc-block-cart-item__wrap {
		flex: 1;
		min-width: 0; /* evita que texto largo empuje el ancho y cause scroll horizontal */
	}

	/* Nombre del producto — sin subrayado, ni siquiera en hover */
	.wc-block-cart-item__product-name {
		font-size: 15px;
		font-weight: 400;
		color: #333;
		line-height: 1.4;
		margin-bottom: 4px;

		strong {
			font-weight: 700;
		}

		a,
		a:hover,
		a:focus {
			text-decoration: none;
			color: var(--button-hover, #D73D0D);
		}
	}

	.wc-block-cart-item__product-metadata {
		font-size: 13px;
		color: #767676;
		margin-bottom: 12px;

		p {
			margin: 0;
		}
	}

	.wc-block-cart-item__quantity {
		display: flex;
		align-items: center;
		gap: 16px;
	}

	.wc-block-cart-item__remove-link {
		color: var(--minicart-primary, #F96302);
		display: flex;
		align-items: center;
		order: -1;

		svg {
			width: 20px;
			height: 20px;
		}

		&:hover {
			color: var(--minicart-primary-dark, #e55a00);
		}
	}

	.wc-block-components-quantity-selector {
		display: flex;
		align-items: center;
		border: 1px solid #d5d5d5;
		border-radius: 4px;
		overflow: hidden;

		.wc-block-components-quantity-selector__button {
			background: #ffffff;
			border: none;
			color: var(--minicart-primary, #F96302);
			font-size: 18px;
			font-weight: 600;
			width: 34px;
			height: 45px;
			cursor: pointer;
            opacity: 0.6;

            box-sizing: border-box; /* evita que padding/border se sumen y desborden el tamaño */
            display: flex; /* centra el ícono +/- perfectamente dentro del área completa */
            align-items: center;
            justify-content: center;

			&:hover {
				background: var(--minicart-primary, #F96302);
				color: var(--minicart-primary-dark, #e55a00);
			}
		}

		input.wc-block-components-quantity-selector__input {
			border: none;
			border-left: 1px solid #d5d5d5;
			border-right: 1px solid #d5d5d5;
			width: 44px;
			height: 34px;
			text-align: center;
			font-size: 15px;
			-moz-appearance: textfield;

			&::-webkit-inner-spin-button,
			&::-webkit-outer-spin-button {
				-webkit-appearance: none;
				margin: 0;
			}
		}
	}

	.wc-block-components-product-price,
	.wc-block-cart-item__total-price-and-sale-badge-wrapper {
		margin-left: auto;
		font-size: 14px;
		font-weight: 700;
		color: #333;
	}

	.wc-block-mini-cart__footer {
		padding: 16px 24px 24px;
		border-top: none;
	}

	.wc-block-mini-cart__footer-subtotal {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		font-size: 16px;
		color: #333;
		margin-bottom: 16px;

		.wc-block-components-totals-item__label {
			font-weight: 400;
			color: #767676;

			strong {
				color: #333;
				font-weight: 700;
			}
		}

		.wc-block-formatted-money-amount {
			font-size: 20px;
			font-weight: 700;
            margin-right: 20px;
		}
	}

	.wc-block-mini-cart__footer-cart {
		display: none;
	}

	.wc-block-cart__submit-button,
	.wc-block-mini-cart__footer-actions .wp-element-button {
		width: 100%;
		background: var(--minicart-primary);
		color: #ffffff;
		font-size: 16px;
		font-weight: 600;
		text-transform: none;
		border-radius: 4px;
		padding: 14px;
		border: none;

		&:hover {
			background: var(--minicart-primary-dark, #e55a00);
		}
	}

    .wc-block-components-product-details__name{
        display: none;
    }
    .wc-block-components-product-metadata{
        display: none;
    }

    .wc-block-cart-items__row .wc-block-cart-item__product{
        a {
            display: none !important;   /*POSIBLE ERROR*/
        }
    }

    .wc-block-components-product-name {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;

        font-size: 17px !important;
        font-weight: 600;
        line-height: 1.4;
        color: #1a1a1a;
        text-decoration: none;
        margin-bottom: 6px;

        &:hover,
        &:focus {
            color: var(--minicart-primary-dark, #D73D0D);
            text-decoration: none;
        }

        &:visited {
            color: #1a1a1a;
        }
    }

    del.wc-block-components-product-price__regular {
        color: #999;
        text-decoration: line-through;
        text-decoration-color: #999;
        text-decoration-thickness: 1.5px;
        font-size: 1.1em;
        font-weight: 400;
        background: var(--background-80, rgba(14, 13, 15, 0.08));
        padding: 1px 5px;
        border-radius: 4px;
    }

	.wc-block-cart-item__wrap .wc-block-cart-item__quantity .wc-block-cart-item__remove-link,
	.wc-block-cart-item__remove-link {
        border-radius: 5px !important;
        background: var(--white-contrast, #0E0D0F) !important;
        color: var(--secondary-48, #0E0D0F) !important;
        font-size: 14px !important;
        font-style: normal !important;
        font-weight: 700 !important;
        line-height: 140% !important; /* 19.6px */
        letter-spacing: 2.1px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        min-height: 45px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 40px !important;
    }

    .wc-block-mini-cart__items{
        padding: 20px 0 0 0  !important;
    }

    /* Precio principal grande */
	.wc-block-components-product-price__value.is-discounted {
        font-size: 20px;
        font-weight: 700;
        color: #0E0D0F;
    }

    .wc-block-cart-item__prices{
		.price.wc-block-components-product-price{
			display: inline-flex;
            flex-direction: row-reverse;
        }
    }
    
}