/*
 * Product compare tray
 * Paired with: themes/gavias_emon/js/enterprise/product-compare.js
 */

#compare-tray {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    display: none;
    color: white;
    z-index: 1000000;
}

#compare-tray .close-btn {
    position: absolute;
    right: 10px;
    top: 0;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
}

#compare-tray.hvr-wobble-vertical {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-animation-name: hvr-wobble-vertical;
    animation-name: hvr-wobble-vertical;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
}

@-webkit-keyframes hvr-wobble-vertical {
    16.65% {
        -webkit-transform: translateY(8px);
        transform: translateY(8px);
    }
    33.3% {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
    }
    49.95% {
        -webkit-transform: translateY(4px);
        transform: translateY(4px);
    }
    66.6% {
        -webkit-transform: translateY(-2px);
        transform: translateY(-2px);
    }
    83.25% {
        -webkit-transform: translateY(1px);
        transform: translateY(1px);
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes hvr-wobble-vertical {
    16.65% {
        -webkit-transform: translateY(8px);
        transform: translateY(8px);
    }
    33.3% {
        -webkit-transform: translateY(-6px);
        transform: translateY(-6px);
    }
    49.95% {
        -webkit-transform: translateY(4px);
        transform: translateY(4px);
    }
    66.6% {
        -webkit-transform: translateY(-2px);
        transform: translateY(-2px);
    }
    83.25% {
        -webkit-transform: translateY(1px);
        transform: translateY(1px);
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

#compare-tray .message {
    color: red;
    height: 20px;
    text-align: center;
    padding-bottom: 5px;
}

#compare-tray .selected-product {
    position: relative;
    background-color: white;
    height: 60px;
    padding: 5px 10px;
    border: 1px solid gray;
    display: inline-block;
    width: 25%;
    margin-left: -4px;
}

#compare-tray .selected-product a {
    color: black;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding-left: 85px;
}

#compare-tray .selected-product div.close-compare {
    position: absolute;
    top: 0px;
    right: 5px;
    z-index: 10;
    color: black;
    font-size: 22px;
    opacity: 0.6;
    cursor: pointer;
}

#compare-tray .selected-product img {
    height: auto;
    padding-right: 5px;
    max-width: 80px;
    max-height: 50px;
    position: absolute;
    left: 40px;
    transform: translate(-50%);
}

#compare-tray .selected-product .compare-sku {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    line-height: 50px;
    text-align: left;
}

#compare-tray .selected-product-list {
    position: relative;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

#compare-tray .compare-tips {
    background-color: #5076A1;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    padding: 10px 15px;
    white-space: nowrap;
}

.compare-tips .js-ptCompare-view-items .fa-chevron-up,
.compare-tips .js-ptCompare-view-items.more .fa-chevron-down {
    display: none;
}

.compare-tips .js-ptCompare-view-items.more .fa-chevron-up,
.compare-tips .js-ptCompare-view-items .fa-chevron-down {
    display: inline-block;
}

#compare-tray .compare-detail {
    background-color: #5076A1;
}

#compare-tray .remove-all {
    padding-left: 6px;
    padding-right: 6px;
}

#compare-tray .close-icon {
    margin-right: 3px;
}

#compare-tray .selected-product a:hover,
#compare-tray .selected-product div.close-compare:hover,
.product-selector-product .add-to-compare:hover {
    color: #961919;
}

#compare-tray .js-ptCompare-compare-items {
    display: none;
}
