.basket-line {
    display: flex;
    position: relative;
}

.basket-wrapper {
    z-index: 2323;
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    padding-top: 20px;
    width: max-content;
}

.small-basket {
    padding: 16px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
}

.small-basket-item {
    font-size: 16px;
    line-height: 20px;
    color: var(--black);
    padding-top: 12px;
    border-top: 1px solid var(--light-grey);
    display: grid;
    grid-template-columns: max-content auto auto max-content;
    grid-template-rows: 1fr;
    grid-column-gap: 12px;
    grid-row-gap: 0px;
}

.small-basket-item:first-child {
    border-top: none;
    padding-top: 0;
}

.small-basket-item > img {
    max-width: 70px;
}

.small-basket-item > a.basket-item-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.small-basket-item > a span.name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.small-basket-item > a span.quantity {
    color: var(--grey);
}

.small-basket-item .price {
    font-weight: 700;
    text-align: right;
}

.small-basket-item .delete-element svg {
    height: 16px;
    width: 16px;
    color: var(--grey);
}

.small-basket-item .delete-element svg:hover {
    color: var(--orange);
}

.basket-line:hover .basket-wrapper, .basket-wrapper:hover {
    display: block;
}

.basket-small-price {
    align-items: center;
    justify-content: end;
    gap: 15px;
    border-top: 1px solid var(--light-grey);
    padding-top: 10px;
    font-size: 16px;
    line-height: 20px;
}

.basket-small-price span {
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
}

@media (max-width: 768px) {
    .basket-wrapper {
        display: none !important;
    }
}