.frontend-cart {
    z-index: 5000;

    position: fixed;
    right: -448px;
    top: 0px;

    max-width: 448px;
    width: 100%;

    height: 100vh;

    background-color: var(--frontend-color-white-1);
    padding: 30px;

    display: flex;
    flex-direction: column;

    transition: 0.3s right;
}
.frontend-cart.open {
    right: 0px;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* HEAD */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.frontend-cart .head {
    padding-top: 30px;
    border-bottom: 1px solid var(--frontend-color-gray-0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.frontend-cart .head .title {
    font-weight: 600;
    font-size: 1.2em;
}
.frontend-cart .head .title span {
    margin-left: 6px;
}

.frontend-cart .head .close {
    cursor: pointer;
    width: 40px;
    text-align: right;
    display: flex;
    justify-content: center;
    align-items: center;
}
.frontend-cart .head .close i {
    font-size: 1.2em;
}
.frontend-cart .head .close i:first-child {
    transform: translateX(2px);
}
.frontend-cart .head .close i:last-child {
    transform: translateX(-2px);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* EMPTY SET */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.frontend-cart .items,
.frontend-cart .coupons,
.frontend-cart .total {
    display: flex;
}
.frontend-cart .empty {
    display: none;
}

.frontend-cart.empty .items,
.frontend-cart.empty .coupons,
.frontend-cart.empty .total {
    display: none;
}
.frontend-cart.empty .empty {
    display: flex;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* ITEMS SECTION */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.frontend-cart .items {
    flex-direction: column;
    border-bottom: 1px solid var(--frontend-color-gray-0);
    width: 100%;

    overflow-y: auto;
    flex-grow: 1;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* ITEM */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.frontend-cart .items .frontend-cart-item {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0px;
    width: 100%;
}

.frontend-cart .items .frontend-cart-item > img {
    width: 96px; height: 96px;
    object-fit: cover;
    border-radius: 4px;
}
.frontend-cart .items .frontend-cart-item > .item-side {
    width: calc(100% - 96px);
    padding-left: 24px;
    display: flex;
    flex-direction: column;
}
.frontend-cart .items .frontend-cart-item > .item-side p {
    margin: 0px;
}
.frontend-cart .items .frontend-cart-item > .item-side .name {
    width: 100%;
    font-weight: 600;
    cursor: pointer;
}
.frontend-cart .items .frontend-cart-item > .item-side .desc {
    color: var(--frontend-color-blacky-light);
    font-size: 0.8em;
    flex-grow: 1;
}
.frontend-cart .items .frontend-cart-item > .item-side .settings {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}
.frontend-cart .items .frontend-cart-item > .item-side .settings .price {
    font-weight: 600;
}
.frontend-cart .items .frontend-cart-item > .item-side .settings .price span.quantity {
    margin-right: 1px;
    color: #5e5e5e;
}
.frontend-cart .items .frontend-cart-item > .item-side .settings .price span.symbol {
    margin-right: 3px;
    font-weight: 800;
    font-size: 0.7em;
    color: #5e5e5e;
}

.frontend-cart .items .frontend-cart-item > .item-side .settings .price span.quantity,
.frontend-cart .items .frontend-cart-item > .item-side .settings .price span.symbol {
    display: none;
}
.frontend-cart .items .frontend-cart-item.more > .item-side .settings .price span.quantity,
.frontend-cart .items .frontend-cart-item.more > .item-side .settings .price span.symbol {
    display: unset;
}


.frontend-cart .items .frontend-cart-item > .item-side .settings .edit {
    font-weight: 600;
    cursor: pointer;
    display: unset;
}
.frontend-cart .items .frontend-cart-item > .item-side .settings .edit.edit-close {
    display: none;
}

.frontend-cart .items .frontend-cart-item > .item-editor {
    width: 100%;
    display: none;
    justify-content: space-between;
    padding-top: 24px;
}
.frontend-cart .items .frontend-cart-item > .item-editor p {
    margin: 0px;
}
.frontend-cart .items .frontend-cart-item > .item-editor .delete {
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
}
.frontend-cart .items .frontend-cart-item > .item-editor .quantity-frame {
    display: flex;
    justify-content: center;
    align-items: center;
}
.frontend-cart .items .frontend-cart-item > .item-editor .quantity-frame .quantity-minus,
.frontend-cart .items .frontend-cart-item > .item-editor .quantity-frame .quantity-plus {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 24px; height: 24px;
    background-color: var(--frontend-color-blacky);
    color: var(--frontend-color-white-0);
    cursor: pointer;
}
.frontend-cart .items .frontend-cart-item > .item-editor .quantity-frame .quantity-minus i,
.frontend-cart .items .frontend-cart-item > .item-editor .quantity-frame .quantity-plus i {
    transform: scale(0.8);
}
.frontend-cart .items .frontend-cart-item > .item-editor .quantity-frame > input {
    width: 40px;
    border: unset;
    outline: unset;
    background-color: var(--frontend-color-white-1);
    text-align: center;
    font-weight: 600;
}

.frontend-cart .items .frontend-cart-item.edit > .item-editor {
    display: flex;
}
.frontend-cart .items .frontend-cart-item.edit > .item-side .settings .edit.edit-open {
    display: none;
}
.frontend-cart .items .frontend-cart-item.edit > .item-side .settings .edit.edit-close {
    display: unset;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* COUPON SECTION */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.frontend-cart .coupons {
    flex-direction: column;
    padding: 20px 0px;

    border-bottom: 1px solid var(--frontend-color-gray-0);
}
.frontend-cart .coupons .coupon-enter {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 20px;
}
.frontend-cart .coupons .coupon-enter > input {
    width: 140px;
    padding: 10px 20px;
    border: 1px solid var(--frontend-color-gray-0);
}
.frontend-cart .coupons .coupon-enter > button {
    width: calc( 100% - 150px );

    display: inline-block;
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: 600;
    padding: 12px 20px;
    background-color: #f0ede9;
    color: var(--frontend-color-blacky);
}
.frontend-cart .coupons .coupon-enter > button:hover {
    background-color: var(--frontend-color-blacky);
    color: var(--frontend-color-white-0);
}
.frontend-cart .coupons .coupon-enter > button.inactive {
    pointer-events: none;
    background-color: unset;
    color: var(--frontend-color-gray-0);
}

.frontend-cart .coupons .coupon-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.frontend-cart .coupons .coupon-list p {
    width: 100%;
    margin: 0px;
    font-weight: 600;
    font-size: 0.8em;
}
.frontend-cart .coupons .coupon-list p i {
    cursor: pointer;
    padding: 12px;
    font-size: 1.2em;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* TOTAL SECTION */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.frontend-cart .total {
    padding-top: 20px;
    width: 100%;
    flex-direction: column;
}

.frontend-cart .total .total-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 4px;

}
.frontend-cart .total .total-row > p {
    margin: 0px;
}
.frontend-cart .total .total-row.row-final {
    font-weight: 600;
    font-size: 1.2em;
}
.frontend-cart .total > button {
    margin-top: 18px;
    width: 100%;
    padding: 18px;
    background-color: var(--frontend-color-blacky);
    color: var(--frontend-color-white-0);
    text-transform: uppercase;
}
.frontend-cart .total > button:hover {
    background-color: var(--frontend-color-black);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* EMPTY SECTION */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.frontend-cart .empty {
    padding: 40px 0px;
    flex-direction: column;
    align-items: flex-start;
}
.frontend-cart .empty button {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: 600;
    padding: 12px 20px;
    background-color: #f0ede9;
    color: var(--frontend-color-blacky);
}
.frontend-cart .empty button:hover {
    background-color: var(--frontend-color-blacky);
    color: var(--frontend-color-white-0);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* BACKDROP */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.frontend-cart-backdrop {
    display: none;
    opacity: 0;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100vh;
    z-index: 4999;

    background-color: #00000055;
    transition: 0.2s opacity;
}
.frontend-cart-backdrop.add {
    pointer-events: none;
    display: block;
}
.frontend-cart-backdrop.active {
    pointer-events: unset;
    opacity: 1;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* MOBILE */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

@media screen and (max-width: 500px) {
    .frontend-cart {
        right: -500px;
        width: 100%;
    }
    .frontend-cart .items .frontend-cart-item > img {
        width: 55px; height: 55px;
    }
    .frontend-cart .items .frontend-cart-item > .item-side {
        width: calc(100% - 55px);
        padding-left: 14px;
    }
    .frontend-cart .items .frontend-cart-item > .item-side .name {
        font-size: 0.8em;
        font-weight: 600;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* CART POPUP */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.frontend-cart-popup {

    position: fixed;
    top: 150px;
    right: 40px;
    width: 100%;
    max-width: 400px;

    z-index: 4998;

    background-color: var(--frontend-color-white-1);


    box-shadow: 0px 8px 16px 2px #00000020;
    border: 1px solid var(--frontend-color-blacky);

    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);

    transition:
        0.3s opacity,
        0.3s transform;

}
.frontend-cart-popup.active {

    pointer-events: unset;
    opacity: 1;
    transform: translateY(0px);
}

.frontend-cart-popup .popup-footer {
    background-color: #ededed;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.frontend-cart-popup .popup-body {
    display: flex;
    flex-wrap: nowrap;
    padding: 20px;
    width: 100%;
}

.frontend-cart-popup .popup-body > img {
    width: 96px; height: 96px;
    object-fit: cover;
    border-radius: 4px;
}
.frontend-cart-popup .popup-body > .item-side p {
    margin: 0px;
}
.frontend-cart-popup .popup-body > .item-side {
    flex-grow: 1;
    padding-left: 24px;
}
.frontend-cart-popup .popup-body > .item-side .name {
    font-weight: 600;
}
.frontend-cart-popup .popup-body > .item-side .desc {
    font-size: 0.8em;
}