.basket-stash {
    font-family: "Montserrat", sans-serif;
    color: #2b2f33;
}

.basket-stash__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #eceef2;
    border-radius: 8px;
    background: #fafafa;
}

.basket-stash__summary-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.basket-stash__summary-count {
    color: #8f96a3;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.basket-stash__list,
.basket-products__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.basket-stash__item {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #eceef2;
    border-radius: 8px;
    background: #fff;
}

.basket-stash__item:last-child {
    margin-bottom: 0;
}

.basket-stash__item--visible {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.basket-stash__item--wrapper {
    display: grid;
    grid-template-columns: 180px minmax(180px, 1fr) 150px;
    gap: 16px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.basket-stash__item--number,
.basket-stash__item--info,
.basket-stash__item--sum {
    min-width: 0;
}

.basket-stash__item--open {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.basket-stash__item--arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f0f1f3;
    transition: background .15s ease;
}

.basket-stash__item--arrow:before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform .15s ease;
}

.basket-stash__item--open.open .basket-stash__item--arrow {
    background: #ff2b32;
}

.basket-stash__item--open.open .basket-stash__item--arrow:before {
    border-color: #fff;
    transform: rotate(225deg) translate(-1px, -1px);
}

.basket-stash__item--number-date {
    color: #8f96a3;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.basket-stash__item--info {
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.basket-stash__item--sum {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.basket-stash__item--button {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.basket-stash__item--button .btn {
    min-height: 40px;
    height: 40px;
    padding-right: 18px;
    padding-left: 18px;
    white-space: nowrap;
}

.basket-stash__item--hidden {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #eceef2;
    background: #fbfbfc;
}

.basket-products__list {
    display: grid;
    gap: 10px;
    padding-top: 16px;
}

.basket-products__item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 12px;
    border: 1px solid #eceef2;
    border-radius: 8px;
    background: #fff;
}

.basket-products__image {
    display: block;
    overflow: hidden;
    width: 76px;
    height: 76px;
    border-radius: 8px;
    background: #f5f5f5;
}

.basket-products__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.basket-products__wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.basket-products__info {
    min-width: 0;
}

.basket-products__title {
    display: inline-block;
    margin-bottom: 8px;
    color: #2b2f33;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    border-bottom: 0;
}

.basket-products__title:hover {
    color: #ff2b32;
}

.basket-products__title span {
    margin-left: 6px;
    color: #8f96a3;
    font-weight: 600;
}

.basket-products__props {
    display: grid;
    gap: 4px;
}

.basket-products__prop {
    color: #555;
    font-size: 13px;
    line-height: 1.35;
}

.basket-products__prop b {
    color: #2b2f33;
    font-weight: 700;
}

.basket-products__price {
    color: #2b2f33;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.basket-stash--empty {
    padding: 32px 24px;
    border: 1px solid #eceef2;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
}

.basket-stash__empty-title {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.basket-stash__empty-text {
    color: #8f96a3;
    font-size: 14px;
    line-height: 1.45;
}

@media screen and (max-width: 1024px) {
    .basket-stash__item--visible,
    .basket-stash__item--wrapper,
    .basket-products__wrapper {
        grid-template-columns: 1fr;
    }

    .basket-stash__item--sum,
    .basket-products__price {
        text-align: left;
    }

    .basket-stash__item--button {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 640px) {
    .basket-stash__summary,
    .basket-stash__item--visible {
        padding: 14px;
    }

    .basket-stash__item--button .btn {
        width: 100%;
    }

    .basket-products__item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .basket-products__image {
        width: 64px;
        height: 64px;
    }
}
