.woocommerce .gomst-wc-mini-cart,
.gomst-wc-mini-cart {
    .gomst-wc-mini-cart__toggle {
        color: #fff;
        position: relative;
        border: 2px solid #000;
        background: #000;
        border-radius: 100%;
        height: 38px;
        width: 38px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 200ms all ease-in-out;
        &:hover,
        &.active {
            background: #fff;
            svg path {
                fill: #000;
            }
        }
        svg {
            fill: #fff;
            width: 22px;
            height: 22px;
        }
    }
    .gomst-wc-mini-cart__content {
        position: fixed;
        right: -150%;
        z-index: 99;
        background-color: #fff;
        padding: 1rem;
        width: 350px;
        max-width: 100%;
        top: 0;
        bottom: 0;
        box-shadow: 0 5px 28px -5px rgba(0, 0, 0, 0.5);
        transition: 0.5s;
        &.active {
            right: 0;
        }
    }
    .gomst-wc-mini-cart__close {
        color: #fff;
        text-decoration: none;
        margin-right: 1rem;
        background-color: #000;
        border: 2px solid #000;
        border-radius: 7px;
        padding: 0.5rem;
        cursor: pointer;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 30px;
        margin-left: auto;
        transition: 200ms all ease-in-out;
        svg {
            fill: #fff;
            transition: 200ms all ease-in-out;
            margin: 0;
        }
        &:hover {
            background-color: #fff;
            svg {
                fill: #000;
            }
        }
    }
    .gomst-wc-mini-cart__count {
        position: absolute;
        top: -7px;
        right: -7px;
        z-index: 2;
        font-size: 0.8rem;
        line-height: 1rem;
        background-color: #808080;
        color: #fff;
        width: 20px;
        height: 20px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .widget_shopping_cart_content {
        max-height: 90%;
        overflow-y: auto;
        ul {
            padding: 0;
            li {
                display: flex;
                flex-direction: column;
                margin-bottom: 0.5rem;
                padding: 1rem;
                border-bottom: 1px solid #808080;
                position: relative;
                .remove {
                    background-color: red;
                    color: #fff !important;
                    width: 22px;
                    height: 22px;
                    border-radius: 50px;
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    text-decoration: none;
                    margin-bottom: 1rem;
                }
                a {
                    display: flex;
                    align-items: center;
                    color: #000;
                    font-size: 1rem;
                    line-height: 1.1rem;
                    font-weight: 600;
                    text-decoration: none;
                    img {
                        width: 65px;
                        border: 1px solid #ccc;
                        border-radius: 5px;
                        margin-right: 0.4rem;
                    }
                }
                .quantity {
                    font-size: 1rem;
                    line-height: 1.2rem;
                    padding-left: 0.5rem;
                    color: #000;
                    font-weight: bold;
                    bdi {
                        color: #000;
                        font-weight: 600;
                    }
                }
            }
        }
    }
    .gomst-wc-mini-cart__cart {
        .gomst-wc-mini-cart__cart-items {
            padding: 0;
            list-style: none;
        }
        .gomst-wc-mini-cart__cart-item {
            border-bottom: 2px solid #808080;
            padding-bottom: 1rem;
            margin-bottom: 1rem;
            a:not(.remove) {
                align-items: center;
                justify-content: space-between;
                flex-direction: row-reverse;
                flex-wrap: wrap;
                color: #000;
                font-weight: bold;
                box-sizing: border-box;
                display: flex;
                img {
                    width: 70px;
                    margin-left: 1rem;
                    border: 2px solid #808080;
                    padding: 0.2rem;
                }
            }
            .gomst-wc-mini-cart__cart-name {
                width: calc(100% - 70px - 1rem);
                box-sizing: border-box;
                flex: 0 0 calc(100% - 70px - 1rem);
            }
            .quantity {
                font-size: 1rem;
                line-height: 1.2rem;
                font-weight: bold;
            }
            .remove {
                display: block;
                font-size: 1.5em;
                height: 1em;
                width: 1em;
                text-align: center;
                line-height: 1;
                border-radius: 100%;
                color: red;
                text-decoration: none;
                font-weight: 700;
                border: 0;
                margin-bottom: 0.5rem;
                &:hover {
                    color: #fff;
                    background-color: red;
                }
            }
        }
    }
    .gomst-wc-mini-cart__ctas {
        .button {
            padding: 0.8rem 1rem;
            border-radius: 0.5rem;
            border: 2px solid #000;
            background: #000;
            color: #fff;
            font-size: 1rem;
            line-height: 1.2rem;
            font-weight: 500;
            transition: 0.3s;
            &:hover {
                background: #fff;
                color: #000;
            }
            &.checkout {
                background-color: #000;
                border: 1px solid #000;
                &:hover {
                    background: #fff;
                    color: #000;
                }
            }
        }
    }
    .total {
        border-bottom: 1px solid #808080;
        padding: 0.3rem 0 1rem 0;
        margin-bottom: 1rem;
        font-weight: bold;
        bdi {
            color: #000 !important;
            font-weight: 600;
        }
    }
    .buttons {
        display: inline-flex;
        .button {
            padding: 0.8rem 1rem;
            border-radius: 0.5rem;
            border: 2px solid #000;
            background: #000;
            color: #fff;
            font-size: 1rem;
            line-height: 1.2rem;
            font-weight: 500;
            transition: 0.3s;
            &:hover {
                background: #fff;
                color: #000;
            }
            &:not(:last-child) {
                margin-right: 0.5rem;
            }
        }
    }
}