/* Склады в карточке товара instrument116 */
.have_item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.inst-storage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid #d5d9de;
    border-radius: 6px;
    background: #fff;
    color: #1c1e21;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 150ms cubic-bezier(0.25, 0.1, 0.25, 1),
        border-color 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.inst-storage-btn:hover {
    background: #f7f8f9;
    border-color: #b8bec5;
    color: #1c1e21;
}

.inst-storage-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #eef0f2;
    color: #5f6368;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.inst-storage-btn__count::before {
    content: none;
}

.inst-storages-modal {
    padding: 0;
}

.inst-storages-modal__summary {
    margin-bottom: 16px;
    font-size: 14px;
    color: #5f6368;
}

.inst-storages__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.inst-storages__city-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #1c1e21;
    font-size: 13px;
    cursor: pointer;
    transition: background 150ms cubic-bezier(0.25, 0.1, 0.25, 1), color 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.inst-storages__city-tag.active {
    background: #e30016;
    color: #fff;
}

.inst-storages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.inst-storages-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #fff;
}

.inst-storages-list__item:not(.is-active) {
    display: none;
}

.inst-storages-list__item--in-stock {
    border-color: rgb(227 0 22 / 22%);
    background: rgb(227 0 22 / 4%);
}

.inst-storages-list__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.inst-storages-list__name {
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
}

.inst-storages-list__address {
    font-size: 12px;
    color: #80868b;
}

.inst-storages-list__qty {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    color: #1c1e21;
    white-space: nowrap;
}

.inst-storages-list__item--out .inst-storages-list__qty {
    color: #9aa0a6;
    font-weight: 500;
}

@media (max-width: 640px) {
    .inst-storages-list__item {
        flex-direction: column;
        align-items: flex-start;
    }
}
