/* Minicart
--------------------------------------------------------------- */

// FIX IT
.minicart-wrapper .action.showcart,
.minicart-wrapper .action.showcart.active {
    display: block;
}


.minicart-wrapper {

	.block-minicart {
	
		padding-top: 0;

		.minicart-items-wrapper {
			max-height: 300px;
			height: auto !important;
			padding-top: 0;
			padding-bottom: 15px;
			padding-left: 15px;
			padding-right: 15px;
			margin: 0 -15px;
			
			.minicart-items {
                .action.delete {
                    > span {
                        border: 0;
                        clip: rect(0,0,0,0);
                        height: 1px;
                        margin: -1px;
                        overflow: hidden;
                        padding: 0;
                        position: absolute;
                        width: 1px;    
                    }
                    &::before {
                        -webkit-font-smoothing: antialiased;
                        -moz-osx-font-smoothing: grayscale;
                        font-size: 18px;
                        line-height: 20px;
                        color: #08c;
                        font-family: 'porto-icons';
                        vertical-align: middle;
                        display: inline-block;
                        font-weight: 400;
                        overflow: hidden;
                        speak: none;
                        text-align: center;    
                        content: '\f81a';
                        
                    }
                }
            }
			
		}
	
		li {
			list-style: none;
			border-bottom: 1px solid #e5e5e5;
			padding-top: 18px; 
			
			&:first-child {
				padding-top: 18px; 
			}
			
			.product {
				.product-item-photo {
					border: none;
				}
				.product-item-details {
					padding: 0 30px 0 95px;
					.product-item-name {
						a {
							color: #444;
							font-size: 16px;
							text-rendering: optimizeLegibility;
							text-transform: uppercase;
						}
					}
					.product-item-pricing {
						font-size: 15px;
						.price-container {
							font-weight: 700;
							color: #777;
						}
						.price-wrapper {
							display: inline-block;
							.price {
								color: #004896;
								font-weight: 400;
								font-size: 15px;
							}
						}
					}
					
					.actions {
						position: absolute;
						right: 0;
						top: -7px;
						text-align: right;
						margin-top: 0;
					}

					
				}
			}
			
		}
	}

	.action.showcart {
	    font-size: 14px;
	    height: 47px;   
	    line-height: 47px;
	    color: #FFF;

	    &::before,
	    &.active::before {
		    color: #fff;
		    line-height: 47px;
		    margin: 0 5px 0 0;
		    font-size: 14px;
		    content: '\e87f';
            vertical-align: top;
            display: inline-block;
            font-weight: 400;
            overflow: hidden;
            speak: none;
            text-align: center;
            font-family: 'porto-icons';
            
	    }
	    
	    .counter.qty {
		    font-weight: 400;
		    font-size: 14px;
		    position: relative;
		    margin: auto;
		    line-height: 47px;
		    height: 47px;
		    left: auto;
		    top: auto;
		    overflow: visible;
		    text-align: left;
		    width: auto;
		    background-color: transparent;
		    right: 0;
	        padding: 0 3px;
		    
		    span {
			    position: relative;
			    margin: auto;
			    width: auto;
			    overflow: visible;
			    height: auto;
			    display: inline-block;
		    }
		    
	    }
	    
    	.text {
		    position: relative;
		    color: #FFF;
		    line-height: 47px;
		    width: auto;
		    height: auto;
    	}
    	&::after {
            display: none;
        }
	    	    
	}
	
    .showcart {
    	a { 
    		color: #fff;
    	}    
    }
    
    
    .block-minicart {
	    width: 320px ;
	    padding: 20px;
	    border: 1px solid #1694d6;
	    border-radius: 0;
	    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
	    right: 0;
	    margin-top: 0;
	    top: ~"calc(100% + 5px)";
    
	    &::before,
	    &::after {
	    	display: none;
	    }
		    
		.mini-cart-info {
			font-size: 15px;
			margin-top: 5px;
			text-transform: uppercase;
			font-weight: 700;
			color: #777;
			
			.price {
				color: #004896;
			}
			
			+ .actions {				
				.secondary {
					margin-bottom: 10px;
					a {
						display: inline-block;
						padding: 7px 15px;
						border: 0;
						color: #FFFFFF;
						font-size: 14px;
						font-weight: normal;
						font-family: "Open Sans", Arial, Helvetica, sans-serif;
						line-height: 20px;
						text-align: center;
						text-transform: uppercase;
						vertical-align: middle;
						white-space: nowrap;
						-webkit-transition: all 0.3s ease-in-out;
						transition: all 0.3s ease-in-out;
						border: 1px solid #004896;
						padding: 6px 15px;
						display: block;
						min-width: 116px;
						margin: 0;
						border-radius: 3px;
						color: #004896;
						&:hover {
							border-color: #004896;
							background-color: #004896;
							color: #ffffff;		
						}
					}
				}
				
				.primary {
					button {
						display: block;
						min-width: 116px;
						margin: 0;
						text-transform: uppercase;
					}
				}
				
				
			}
			
		}
	    
    }
	
	.minicart-widgets {
	    margin-top: 0;
	}
		
	&:hover {
		.mage-dropdown-dialog {
			display: block !important;
		}		
	}
	
}

.block-minicart .subtitle {
	display: block;
	padding-bottom: 10px;
	font-size: 15px;
	line-height: 20px;
	margin-bottom: 0;
	font-weight: 400;
	.price {
		color: #004896;
	}
	
	// not empty 
	// filled with products
	&:not(.empty) {
		border-bottom: 3px double #e5e5e5;
	}
	
	// empty
	&.empty {
	    padding: 0 0 0 0;
	    text-align: left;
	    font-size: 16px;
	    font-weight: 400;
	    line-height: 1.6;
	    color: #444;
	}
}



@media only screen and (max-width: @screen__s) {
    .page-header.type1 .minicart-wrapper {
    	position: relative;
    	left: 0;
    	bottom: 0;
		width: 100%;
		text-align: center;
    }
}