/* basket.css */
.basket {
    background: #fff;
    z-index: 999;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
    display: inline-block;
    margin-bottom: 2em;
}
@media (min-width:48em) {
    .basket {
        display: block;
        width: 23em;
        position: fixed;
        top: 9.5rem;
        right: 0;
        margin-bottom: 0;
    }
}

.basket h2 {
    margin-top: 0;
    margin-bottom: 0;
    color: #000;
    font-weight: 700;
    font-size: 1em;
}

.basket ul {
    padding: 1rem;
    margin-bottom: 0;
    list-style-position: inside;
}

.basket ul li {
    position: relative;
    padding: 0.5rem 1rem 0.5rem 0;
}
.basket ul li button {
    color: #b40010;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.basket #basket-total {
    margin: 0 1rem 1rem 1rem;
    background: rgb(0, 173, 239);
    color: #fff !important;
    font-weight: 700;
}
.basket #basket-title {
    padding: 1rem;
    margin-top: 0;
    margin-bottom: 0;
    color: #000;
    font-weight: 700;
    font-size: 1em;
    justify-content: space-between;
    align-items: center;
    padding-right: 3.25em;
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
    position: relative;
}
.basket #basket-title:hover {
    cursor: pointer;
}
.basket #basket-title .basket-count {
    background: #b40010;
    color: #fff;
    font-weight: 700;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    width: 1.5em;
    height: 1.5em;
    margin: -0.5em 0 -0.5em 0.5em;
}
.basket #basket-title::before {
    content: '\f078';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 300;
    font-size: 1.25rem;
    position: absolute;
    top: 50%;
    right: 1rem;
    transition: all .25s ease-in-out;
    transform: translateY(-50%)rotate(0deg);
    color: #000;
}
.basket #basket-title.active::before {
    transform: translateY(-50%)rotate(180deg);
}
