﻿/*====================== DISPLAY NONE ELEMENT=========================*/
#cartAlert, #cartAlert .before-checkout, #cartAlert .button-group,
#ddlCorePackAlert, #ddlAddonPackAlert, 
#cartSummary, #cartSummary .corePackageDropDown, 
#cartSummary .viewCartButton, #cartSummary .promotionExtras, #cartSummary .international-addons,
#cartSummary .loadingAnimationButton, #cartAlert .loadingAnimationButton {
    display: none;
}

#cartAlert .before-checkout.show, #cartAlert .button-group.show,
#ddlCorePackAlert.show, #ddlAddonPackAlert.show, #cartSummary .international-addons.show,
#cartSummary .loadingAnimationButton.show, #cartAlert .loadingAnimationButton.show {
    display: block;
}

/*========== MOBILE ==========================*/
#cartAlert {
    margin-top: -.033rem;
    background: #3B2438;
    padding: 1.5rem 0;
    position: fixed;
    z-index: 21;
    height: 110px;
    opacity: 0.99;
    height: auto;
    width: 100%;
    top: 130px;
    left: 0px;
}
#cartAlert.inIframe {
    top: 0 !important;
}
body.menu-open #cartAlert .message-group {
    margin-left: 0;
    width: 45%;
}
body.menu-open #cartAlert .dropdown-group, body.menu-open #cartAlert .button-group {
    float: left;
}
#cartAlert .container {
    position: relative;
    margin: 0 auto;
    width: 80%;
}
#cartAlert:after {
    content: "";
    bottom: 100%;
    border: solid transparent;
    height: 0;
    width: 0;
    position: absolute;
    left: 93.5%;
    border-top-color: white;
    border-width: 15px;
    margin-left: -15px;
    top: 0;
}
#cartAlert.inIframe:after {
    content: none;
}
#cartAlert .msg {
    color: #FFF;
    width: 70%;
}
#cartAlert.inIframe .msg {
    width: auto;
}
#cartAlert .alert-message {
    margin-bottom: 1rem;
}
#cartAlert.inIframe .alert-message {
    text-align: center;
}

/*======================== CART SUMMARY =========================================================*/
#cartSummary .viewCartButton {
    overflow: hidden;
}
#cartSummary .viewCartButton .viewCartBtn {
    width: 115px;
    height: 40px;
    line-height: 40px;
    background: #ef1b4a;
    color: white;
    display: block;
    margin: 1rem 0 0;
    text-align: center;
    float: right;
    border-radius: 6px;
}
.viewCartBtn {
    background: #EF1B4A;
    border-radius: 4px;
    text-align: center;
    line-height: 35px;
    margin: 1rem 0 0;
    display: block;
    width: 100px;
    height: 35px;
    color: white;
}
#cartSummary .corePackageDropDown {
    margin-top: 1.5rem;
}
#cartSummary h3 {
    margin-bottom: 1.5rem;
}
#cartSummary ul li {
    margin: .75rem 0;
}
#cartSummary select, #cartAlert select {
    border: 1px solid #c0c0c0;
    height: 30px;
    width: 190px;
    margin: .5rem 0;
}
#cartSummary .loadingAnimationButton img {
    margin-right: 2rem;
    float: right;
}

/*================= CART SUMMARY OVERLAY =========================*/
#dishOverlayWrapper .dishOverlayContent.cartSummary {
    width: 92%;
    position: fixed;
    left: 4%; right: 4%;
}
.dishOverlayContent.cartSummary:after {
    content: "";
    bottom: 100%;
    border: solid transparent;
    height: 0;
    width: 0;
    position: absolute;
    left: 79.5%;
    border-bottom-color: white;
    border-width: 15px;
    margin-left: -15px;
}
#dishOverlayWrapper .dishOverlayContent.cartSummary.iOS {
    overflow: initial !important;
    height: auto !important;
}

/*================ SELECT PACKAGE DROPDOWN =================================================*/
.dropdown-wrapper {
    position: relative;
    padding: 10px 15px;
    background: #FFF;
    margin: .7rem 0;
    cursor: pointer;
    outline: none;
    width: 200px;
}
#ddlCorePack {
    border: 1px solid #D2D1D3;
}

.dropdown-wrapper:after {
    content: url("../../images/arrow-down-sm.png");
    position: absolute;
    font-weight: bold;
    color: #ef204e;
    right: 35px;
    height: 0;
    width: 0;
}
.dropdown-wrapper.active:after {
    content: url("../../images/arrow-up-sm.png");
}

.dropdown-wrapper .dropdown {
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;

    position: absolute;
    background: #FFF;
    list-style: none;
    display: none;
    opacity: 0;
    top: 100%;
    right: 0;
    left: 0;
}
#ddlCorePack .dropdown {
    border: 1px solid #d3d1d3;
    width: 100.5%;
    left: -1px;
}
.dropdown-wrapper.active .dropdown {
    opacity: 1;
}

.dropdown-wrapper .dropdown li {
    border-bottom: 1px solid #D2D1D3;
    margin: 0 !important;
}
.dropdown-wrapper .dropdown li a {
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;

    text-decoration: none;
    display: block;
    padding: 10px;
    color: #333;
}

/*========== TABLET ==========================*/
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .dishOverlayContent.cartSummary:after {
        left: 95.5%;
    }
    .dropdown-wrapper {
        width: 250px;
    }
}

/*========== DESKTOP ==========================*/
@media only screen and (min-width: 1025px) and (max-width: 1599px) {
    .viewCartBtn {
        line-height: 40px;
        width: 115px;
        height: 40px;
        margin: 0;
    }
    #cartSummary h3 {
        margin-bottom: 1.5rem;
    }
    #cartSummary ul li {
        margin: .75rem 0;
    }

    .dropdown-wrapper {
        width: 300px;
    }
    #cartAlert .dropdown-wrapper {
        margin: 0;
    }
    #cartAlert:after {
        left: 89.5%;
        border-width: 20px;
        margin-left: -20px;
    }
    #cartAlert .message-group {
        margin-left: 30%;
        float: left;
        width: 50%;
    }
    #cartAlert .message-group.has-core {
        margin: 0 5% 0 25%;
        text-align:right;
    }
    #cartAlert .message-group.has-core .alert-message {
        margin-top: .8rem;        
    }
    #cartAlert .dropdown-group, #cartAlert .button-group {
        float: right;
        width: 20%;
    }
    #cartAlert .msg {
        width: 100%;
    }
    #cartAlert .alert-message {
        margin-bottom: .35rem;
    }

    #dishOverlayWrapper .dishOverlayContent.cartSummary {
        width: 40%;
        left: 45.5%;
    }
    .dishOverlayContent.cartSummary:after {
        left: 96%;
    }
}

@media only screen and (min-width: 1600px) {
    #dishOverlayWrapper .dishOverlayContent.cartSummary {
        width: 40%;
        left: 59.8%;
    }
    .dishOverlayContent.cartSummary:after {
        left: 84.5%;
    }

    #cartAlert .dropdown-wrapper {
        margin: 0;
    }
    #cartAlert:after {
        left: 89.5%;
        border-width: 20px;
        margin-left: -20px;
    }
    #cartAlert .message-group {
        margin-left: 30%;
        float: left;
        width: 50%;
    }
    #cartAlert .message-group.has-core {
        margin: 0 5% 0 25%;
        text-align:right;
    }
    #cartAlert .message-group.has-core .alert-message {
        margin-top: .8rem;        
    }
    #cartAlert .dropdown-group, #cartAlert .button-group {
        float: right;
        width: 20%;
    }
    #cartAlert .msg {
        width: 100%;
    }
    #cartAlert .alert-message {
        margin-bottom: .35rem;
    }
    .dropdown-wrapper {
        width: 290px;
    }
}