/* ==========================================================================
/* ==========================================================================
   WooCommerce Dropdown Cart styles - begin
   ========================================================================== */

.edge-shopping-cart-holder {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    padding: 0 15px;

    .touch & {
        cursor: pointer;
    }

    &.edge-cart-info-is-disabled {

        .edge-header-cart {

            .edge-cart-info {
                display: none;
            }
        }
    }

    .edge-shopping-cart-inner {
        position: relative;
        display: table;
        height: 100%;
    }

    .edge-header-cart {
        position: relative;
        display: table-cell;
        vertical-align: middle;
        color: $default-text-color;

        .edge-cart-icon-text {
            position: relative;
            display: inline-block;
            vertical-align: middle;
            font-size: 15px;
            color: $first-main-color;
            font-weight: 400;
            letter-spacing: 0.1em;
            font-family: $heading-font;
            border-bottom: 1px solid transparent;
            margin-top: 3px;
            line-height: 16px;
            padding-bottom: 1px;

            &:before {
                display: block;
                line-height: inherit;
            }
        }

        .edge-cart-count{
            font-size: 15px;
            line-height: 20px;
            color: $first-main-color;
            letter-spacing: 0.1em;
            position: relative;
            top: 1px;
        }

        .edge-cart-info {
            position: relative;
            display: inline-block;
            vertical-align: middle;
            padding: 0;
            font-size: 12px;
            clear: both;
            font-family: $heading-font;
            font-weight: 400;
            color: $additional-color;

            .edge-cart-info-number {
                position: relative;
                display: inline-block;
                vertical-align: top;
                float: left;
                padding: 0 8px 0 0;
                margin: 0 5px 0 0;

                &:after {
                    position: absolute;
                    right: -1px;
                    content: '-';
                }
            }

            .edge-cart-info-total {
                position: relative;
                display: inline-block;
                vertical-align: top;
                float: left;
            }
        }

        &:hover {
            color: $default-heading-color;

            .edge-cart-icon-text{
                border-bottom: 1px solid $default-border-color;
            }
        }

        .edge-light-header &{
            &:hover{
                .edge-cart-icon-text{
                    border-color: $default-background-color;
                }
            }
        }
    }

    &:hover {

        .edge-shopping-cart-dropdown {
            visibility: visible;
            opacity: 1;
        }
    }
}

.edge-dark-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-shopping-cart-holder .edge-header-cart {
     color: $header-dark-color;

     &:hover {
         color: $header-dark-hover-color;
     }
 }

.edge-light-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-shopping-cart-holder .edge-header-cart {
    color: $header-light-color;
}

.edge-dark-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-shopping-cart-holder .edge-header-cart .edge-cart-icon-text,
.edge-dark-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-shopping-cart-holder .edge-header-cart .edge-cart-info,
.edge-dark-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-shopping-cart-holder .edge-header-cart .edge-cart-info .edge-cart-count{
    color: $header-dark-color;

    &:hover {
        color: $header-dark-hover-color;
    }
}

.edge-light-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-shopping-cart-holder .edge-header-cart .edge-cart-icon-text,
.edge-light-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-shopping-cart-holder .edge-header-cart .edge-cart-info,
.edge-light-header .edge-page-header > div:not(.edge-sticky-header):not(.fixed) .edge-shopping-cart-holder .edge-header-cart .edge-cart-info .edge-cart-count{

    color: $header-light-color;

}

.edge-shopping-cart-dropdown {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    width: 275px;
    background-color: $header-light-color;
    border: 1px solid $light-border-color;
    text-align: left;
    z-index: 1000;
    box-sizing: border-box;
    opacity:0;
    visibility: hidden;
    @include edgeTransition(opacity .4s ease-out);

    ul {
        margin: 20px;
        padding: 0;

        li {
            position: relative;
            display: inline-block;
            box-sizing: border-box;
            height: 100%;
            width: 100%;
            vertical-align: middle;
            margin-bottom: 24px;

            &.edge-empty-cart {
                border: 0;
                min-height: auto;
                margin: 0;
            }
        }
    }

    .edge-item-image-holder {
        position: relative;
        display: block;
        height: 100%;
        width: 70px;
        vertical-align: top;
        float: left;

        img {
            display: block;
        }
    }

    .edge-item-info-holder {
        position: relative;
        display: block;
        height: 100%;
        width: calc(100% - 70px);
        vertical-align: top;
        padding-left: 15px;
        float: left;
        box-sizing: border-box;

        .edge-product-title {
            display: block;
            margin: 0;
            padding: 0 20px 0 0;
            box-sizing: border-box;
            color: $first-main-color;
            font-family: $heading-font;
            font-weight: 400;
            letter-spacing: 1px;
            line-height: 20px;
            position: relative;
            font-size: 16px;
            text-transform: uppercase;

            a {
                &:hover {
                    color: #a5a5a5;
                }
            }
        }

        .remove {
            position: absolute;
            top: -2px;
            right: -5px;
            width: 18px;
            height: 18px;
            color: #a0a0a0;
	        font-size: 22px;
	        line-height: 24px;
            text-align: center;
            font-family: $heading-font;

            span {
                display: block;
                line-height: inherit;

                &:before {
                    display: block;
                    line-height: inherit;
                }
            }

            &:hover {
                color: #a5a5a5;
            }
        }

        .edge-quantity {
            display: inline-block;
            margin: 0;
            font-family: $heading-font;
            color: #777;
            font-size: 14px;
            position: relative;
            top: 0;
            line-height: 11px;
            vertical-align: middle;


            &:after {
                content: 'X';
                display: inline-block;
                position: relative;
                padding-left: 3px;
            }
        }

        .amount {
            font-family:  $heading-font;
            font-size: 14px;
            display: inline-block;
            color: #777;
            position: relative;
            top: 0;
            vertical-align: middle;
            line-height: 11px;
        }
    }

    .edge-cart-bottom {
        padding: 4px 0 0;
        border-top: 1px solid $light-border-color;
        font-family: $heading-font;

        .edge-subtotal-holder {
            position: relative;
            display: table;
            width: 100%;
            margin: 12px 0 15px;

            > * {
                display: table-cell;
                vertical-align: top;
                color: $default-heading-color;
                line-height: 20px;
            }

            .edge-total {
                font-size: 16px;
                font-weight: 400;
                color: $default-heading-color;
                letter-spacing: 1px;
            }

            .edge-total-amount {
                text-align: right;
                font-size: 16px;
                font-weight: 400;
                color: $default-heading-color;
            }
        }

        .edge-btn-holder {
            display: inline-block;
            a {
                font-weight: 400;
                font-size: 13px;
                color: #fff;
                height: unset;
                width: unset;
                line-height: 20px;
                background-color: $header-dark-color;
                font-family: $heading-font;
                padding: 13px 21.5px;
                letter-spacing: 1px;
                display: inline-block;
                
                &:hover{
                    background-color: $button-hover-color;
                }
            }

            &:last-child{
                float: right;
            }
        }
    }
}
/* ==========================================================================
   WooCommerce Dropdown Cart styles - end
   ========================================================================== */