/*-------------------------------------------------------------*/
/* Cartpanel                                                   */
/*-------------------------------------------------------------*/

.cartpanel {
    display: block;
    position: fixed;
    top: 20%;
    right: 0;
    z-index: 29999;
}

.cartpanel__wrapper {
    display: block;
    position: absolute;
    top: 0;
    right: -500px;
    transition: 0.5s;
}

.cartpanel__overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/preloader-cart.gif) center no-repeat;
    background-color: rgba(255,255,255,0.7);
}

.cartpanel__overlay.active {
    display: block;
}

.cartpanel__wrapper.open {
    right: 0;
}

.cartpanel__list {
    display: block;
    position: absolute;
    top: 0;
    left: -60px;
}

.cartpanel__block {
    display: none;
    position: relative;
    box-sizing: border-box;
    padding: 15px;
    width: 500px;
    min-height: 240px;
    background: #ededed;
    transition: 0.3s;
}

.cartpanel__title {
    display: block;
    position: relative;
    font-size: 130%;
    font-weight: bold;
    margin-bottom: 10px;
}

.cartpanel__wrapper.open .cartpanel__block {
    box-shadow: 0 0 10px #555;
}

.cartpanel__block.cur {
    display: block;
}

.cartpanel__button {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 60px;
    height: 80px;
    padding-top: 25px;
    line-height: 1;
    border-bottom: 1px solid #f6a427;
    background: no-repeat center #f6a427;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none!important;
}

.cartpanel__button:hover {
    background-color: #f6a427;
}

.cartpanel__button.active {
    background-color: #f6a427;
}

.cartpanel__button:first-child {
    border-radius: 6px 0 0 0;
}

.cartpanel__button:last-child {
    border: none;
    border-radius: 0 0 0 6px;
}

.cartpanel__button .icon {
    display: block;
    position: relative;
    width: 26px;
    height: 26px;
    margin: 0 auto 5px;
    background: no-repeat center;
}

.cartpanel__button .count {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 90%;
    margin: 0 auto;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    background: #000;
}

.cartpanel__button .count.new {
    background: #e25b21;
}

.cartpanel__button_cart,
.cartpanel__button_wish {
    padding-top: 15px;
}

.cartpanel__button_cart .icon {
    background-image: url(../images/ic-cp-cart.png);
}

.cartpanel__button_wish .icon {
    background-image: url(../images/ic-cp-wish.png);
}

.cartpanel__button_compare .icon {
    background-image: url(../images/ic-cp-compare.png);
}

.cart-extend {
    display: block;
    position: relative;
}

.cart-extend__wrapper {
    display: block;
    position: relative;
}

.cart-extend__scroll {
    display: block;
    position: relative;
    box-sizing: border-box;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    background: #fafafa;
}

.cart-extend__list {
    width: 100%;
}

.cart-extend__list tr {
    border-bottom: 1px dotted #aaa;
}

.cart-extend__list tr:last-child {
    border: none;
}

.cart-extend__list td {
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
}

.cart-extend__list .del {
    text-align: left;
    width: 5%;
}

.cart-extend__list .del a {
    line-height: 1;
    font-size: 200%;
    font-weight: bold;
    text-decoration: none!important;
    color: #888;
}

.cart-extend__list .del a:hover {
    color: #e25b21;
}

.cart-extend__list .name {
    text-align: left;
}

.cart-extend__list .name-product {
    color: #000;
    font-size: 90%;
    line-height: 1.2;
}

.cart-extend__list .name-attr {
    font-size: 80%;
}

.cart-extend__list .qty {
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    width: 5%;
}

.cart-extend__list .sum {
    text-align: right;
    width: 20%;
    color: #000;
}

.cart-extend__final {
    display: flex;
    position: relative;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0 0;
}

.cart-extend__final div {
    display: block;
    position: relative;
    padding-left: 15px;
    font-weight: bold;
}

.cart-extend__final .name {

}

.cart-extend__final .qty {
    font-weight: normal;
    color: #000;
}

.cart-extend__final .sum {
    font-size: 130%;
    color: #e25b21;
}

.cart-extend__control {
    display: block;
    position: relative;
    text-align: right;
    margin-top: 15px;
}

.cart-extend__control a {
    display: inline-block;
    position: relative;
    padding: 5px 15px;
    font-size: 90%;
    text-decoration: none;
    color: #fff;
    background: #706d98;
    border-radius: 4px;
    transition: 0.2s;
}

.cart-extend__control a:hover {
    background-color: #8c88bb;
}