.shop-warehouse-popup-surface {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.shop-warehouse-popup-surface,
.shop-warehouse-popup-surface * {
    box-sizing: border-box;
}

.shop-warehouse-popup-surface__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
}

.shop-warehouse-popup {
    position: relative;
    height: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 1100px;
    overflow: hidden;
}

.shop-warehouse-popup__header {
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-warehouse-popup__title {
    font-size: 18px;
    font-weight: 500;
    padding: 20px;
}

.shop-warehouse-popup__close-button {
    padding: 20px;
    cursor: pointer;
    opacity: .5;
    transition: opacity .2s ease-in-out;
    will-change: opacity;
}

.shop-warehouse-popup__close-button:before {
    content: '';
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"%3E%3Cpath d="M12 1.209L10.791 0 6 4.791 1.209 0 0 1.209 4.791 6 0 10.791 1.209 12 6 7.209 10.791 12 12 10.791 7.209 6 12 1.209z" fill="%23000"%3E%3C/path%3E%3C/svg%3E');
    width: 16px;
    height: 16px;
    display: block;
}

.shop-warehouse-popup__close-button:hover {
    opacity: 1;
}

.shop-warehouse-popup__footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fff;
}


@media (max-width: 1200px) {
    .shop-warehouse-popup {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .shop-warehouse-popup__body {
        flex-grow: 1;
        max-height: calc(100% - 110px - 60px);
        overflow-y: auto;
    }

    .shop-warehouse-popup__header {
        height: 60px;
    }

    .shop-warehouse-popup__footer {
        height: 110px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

.shop-warehouse-stocks-button,
.shop-warehouse-stock-select-button,
.shop-warehouse-cart-items-stock-info__change-stock-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.shop-warehouse-stocks-button[data-is-loading]:after,
.shop-warehouse-stock-select-button[data-is-loading]:after,
.shop-warehouse-cart-items-stock-info__change-stock-button[data-is-loading]:after {
    content: '';
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" style="margin: auto; background: rgb(255, 255, 255); display: block; shape-rendering: auto;" width="16px" height="16px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"%3E%3Ccircle cx="50" cy="50" fill="none" stroke="%23cccccc" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138"%3E%3CanimateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1.4285714285714284s" values="0 50 50;360 50 50" keyTimes="0;1"%3E%3C/animateTransform%3E%3C/circle%3E%3C/svg%3E');
    position: absolute;
    right: -21px;
    width: 16px;
    height: 16px;
}

.shop-warehouse-stocks-table,
.shop-warehouse-stock-select-table {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.shop-warehouse-stocks-table,
.shop-warehouse-stocks-table *,
.shop-warehouse-stock-select-table,
.shop-warehouse-stock-select-table * {
    box-sizing: border-box;
}

.shop-warehouse-stocks-table__stocks-wrapper,
.shop-warehouse-stock-select-table__stocks-wrapper {
    flex-grow: 1;
}

.shop-warehouse-stocks-table__stocks,
.shop-warehouse-stock-select-table__stocks {
    max-height: calc(500px - 80px); /* Высота карты - высота блока поиска */
    overflow-y: auto;
}

.shop-warehouse-stocks-table--without-search .shop-warehouse-stocks-table__stocks,
.shop-warehouse-stock-select-table--without-search .shop-warehouse-stock-select-table__stocks {
    max-height: 500px;
}

.shop-warehouse-stocks-table--without-map .shop-warehouse-stocks-table__stocks,
.shop-warehouse-stock-select-table--without-map .shop-warehouse-stock-select-table__stocks {
    max-height: 500px;
    overflow-y: auto;
}

.shop-warehouse-stocks-table--no-visible-stocks {
    display: none;
}

.shop-warehouse-stock-select-table__map-wrapper,
.shop-warehouse-stocks-table__map-wrapper {
    width: 50%;
    min-width: 50%;
    height: 500px;
}

@media (max-width: 1200px) {
    .shop-warehouse-stocks-table,
    .shop-warehouse-stock-select-table {
        height: 100%;
        flex-direction: column;
    }

    .shop-warehouse-stocks-table__stocks,
    .shop-warehouse-stock-select-table__stocks {
        max-height: calc(100% - 80px);
        display: none;
    }

    .shop-warehouse-stock-select-table--mobile-map-disabled .shop-warehouse-stock-select-table__stocks,
    .shop-warehouse-stocks-table--mobile-map-disabled .shop-warehouse-stocks-table__stocks {
        display: block;
    }

    .shop-warehouse-stocks-table--without-search .shop-warehouse-stocks-table__stocks,
    .shop-warehouse-stock-select-table--without-search .shop-warehouse-stock-select-table__stocks {
        max-height: 100%;
    }

    .shop-warehouse-stocks-table--without-map .shop-warehouse-stocks-table__stocks,
    .shop-warehouse-stock-select-table--without-map .shop-warehouse-stock-select-table__stocks {
        max-height: 100%;
        overflow-y: auto;
        display: block;
    }

    .shop-warehouse-stock-select-table__map-wrapper,
    .shop-warehouse-stocks-table__map-wrapper {
        width: 100%;
        height: 100%;
    }

    .shop-warehouse-stock-select-table--mobile-map-disabled .shop-warehouse-stock-select-table__map-wrapper,
    .shop-warehouse-stocks-table--mobile-map-disabled .shop-warehouse-stocks-table__map-wrapper {
        display: none;
    }
}

.shop-warehouse-stocks-table__map,
.shop-warehouse-stock-select-table__map {
    width: 100%;
    height: 100%;
}

.shop-warehouse-stocks-table__stock,
.shop-warehouse-stock-select-table__stock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color .2s ease-in-out;
    will-change: background-color;
}

.shop-warehouse-stock-select-table__stock {
    flex-direction: column;
    align-items: normal;
}

.shop-warehouse-stock-select-table__products {
    padding: 20px;
    padding-top: 0;
}

.shop-warehouse-stock-select-table__product {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.shop-warehouse-stock-select-table__product:not(:last-child) {
    margin-bottom: 10px;
}

.shop-warehouse-stock-select-table__product-image-wrapper {
    padding-right: 15px;
    width: 55px;
}

.shop-warehouse-stock-select-table__product-image {
    width: 40px;
    height: 40px;
}

.shop-warehouse-stock-select-table__product-name {
    padding-right: 20px;
    flex-grow: 1;
}

.shop-warehouse-stock-select-table__calculated-deliveries {
    width: 235px;
    min-width: 235px;
    max-width: 235px;
}

@media (max-width: 480px) {
    .shop-warehouse-stocks-table__stock,
    .shop-warehouse-stock-select-table__stock {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .shop-warehouse-stock-select-table__stock-info, .shop-warehouse-stocks-table__stock-info,
    .shop-warehouse-stocks-table__calculated-deliveries {
        width: 100%;
        max-width: 100%;
    }
}

.shop-warehouse-stock-select-table__stock[data-hidden],
.shop-warehouse-stocks-table__stock[data-hidden] {
    display: none;
}

.shop-warehouse-stock-select-table__stock:hover,
.shop-warehouse-stocks-table__stock:hover {
    background-color: #f6f6f6;
}

.shop-warehouse-stock-select-table__stock[data-selected],
.shop-warehouse-stocks-table__stock[data-selected] {
    background-color: #eee;
}

.shop-warehouse-stock-select-table__stock:not(:last-child),
.shop-warehouse-stocks-table__stock:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

.shop-warehouse-stock-select-table__stock mark,
.shop-warehouse-stocks-table__stock mark {
    background-color: #ff0;
    color: #000;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.shop-warehouse-stock-select-table__search-wrapper,
.shop-warehouse-stocks-table__search-wrapper {
    padding: 20px;
}

.shop-warehouse-stock-select-table__search,
.shop-warehouse-stocks-table__search {
    box-sizing: border-box;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 10px 15px;
    outline: none;
    transition: border-color .2s ease-in-out;
    will-change: border-color;
}

.shop-warehouse-stock-select-table__search:focus,
.shop-warehouse-stocks-table__search:focus {
    border-color: #777;
}

.shop-warehouse-stock-select-table__stock-info,
.shop-warehouse-stocks-table__stock-info {
    flex-grow: 1;
    padding: 20px;
}

.shop-warehouse-stock-select-table__stock-info > *:not(:last-child),
.shop-warehouse-stocks-table__stock-info > *:not(:last-child) {
    margin-bottom: 10px;
}

.shop-warehouse-stock-select-table__stock-description,
.shop-warehouse-stocks-table__stock-description {
    color: #666;
}

.shop-warehouse-stocks-table__calculated-deliveries {
    width: 235px;
    min-width: 235px;
    max-width: 235px;
    padding: 20px;
}

.shop-warehouse-stock-select-table__stock-name,
.shop-warehouse-stocks-table__stock-name {
    font-size: 16px;
    font-weight: 500;
}

.shop-warehouse-stock-placemark {
    padding: 10px;
    min-width: 250px;
}

.shop-warehouse-stock-placemark > *:not(:last-child) {
    margin-bottom: 10px;
}

.shop-warehouse-stock-placemark__name {
    font-size: 15px;
    font-weight: 500;
}

.shop-warehouse-stock-placemark__product {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.shop-warehouse-stock-placemark__product:not(:last-child) {
    margin-bottom: 5px;
}

.shop-warehouse-stock-placemark__product-name {
    padding-right: 10px;
    flex-grow: 1;
}

.shop-warehouse-stock-placemark__calculated-deliveries {
    width: 185px;
    min-width: 185px;
    max-width: 185px;
}

.shop-warehouse-stock-placemark__product .shop-warehouse-stock-placemark__calculated-deliveries {
    text-align: right;
}

.shop-warehouse-stock-select-table-footer,
.shop-warehouse-stocks-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-warehouse-stocks-table-footer,
.shop-warehouse-stocks-table-footer *,
.shop-warehouse-stock-select-table-footer,
.shop-warehouse-stock-select-table-footer * {
    box-sizing: border-box;
}

.shop-warehouse-stocks-table-footer__image-wrapper {
    padding-right: 15px;
    width: 75px;
}

.shop-warehouse-stocks-table-footer__image {
    width: 60px;
    height: 60px;
}

.shop-warehouse-stock-select-table-footer__title,
.shop-warehouse-stocks-table-footer__title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    width: 50%;
    padding-right: 15px;
}

.shop-warehouse-stocks-table-footer--with-image .shop-warehouse-stocks-table-footer__title {
    width: calc(50% - 75px);
}

.shop-warehouse-stocks-table-footer__sku-name {
    color: #666;
    margin-left: 5px;
}

.shop-warehouse-stocks-table-footer__prices {
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.shop-warehouse-stocks-table-footer__price {
    font-size: 20px;
    font-weight: bold;
}

.shop-warehouse-stocks-table-footer__compare-price {
    color: #666;
    text-decoration: line-through;
    margin-right: 5px;
    font-size: 18px;
}

.shop-warehouse-sku-select {
    margin-bottom: 5px;
}

.shop-warehouse-sku-select__select {
    padding: 2px 3px;
}

.shop-warehouse-sku-select__select:empty {
    display: none;
}

.shop-warehouse-stock-select-table-footer__select-button-wrapper,
.shop-warehouse-stocks-table-footer__buy-button-wrapper {
    padding-left: 15px;
}

.shop-warehouse-stock-select-table-footer__select-button-wrapper {
    flex-grow: 1;
    text-align: right;
}

.shop-warehouse-stocks-table-footer__buy-button,
.shop-warehouse-stock-select-table-footer__select-button,
.shop-warehouse-stock-select-button {
    margin: 0;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    outline: none;
    box-shadow: none;
    text-align: center;
    text-shadow: none;
    font-size: 18px;
    cursor: pointer;
    background-color: #fcd630;
}

.shop-warehouse-stock-select-button {
    font-size: 16px;
}

.shop-warehouse-stock-select-button--from-order {
    margin-top: 20px;
}

.shop-warehouse-stock-select-button__stock {
    display: none;
}

.shop-warehouse-stock-select-button__not-selected[data-hidden] {
    display: none;
}

.shop-warehouse-stock-select-button__stock[data-visible] {
    display: inline;
}

@media (max-width: 1200px) {
    .shop-warehouse-stock-select-table-footer,
    .shop-warehouse-stocks-table-footer {
        flex-grow: 1;
    }

    .shop-warehouse-stocks-table-footer__prices {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-warehouse-stocks-table-footer__compare-price {
        margin-right: 0;
    }

    .shop-warehouse-stock-select-table-footer {
        flex-direction: column;
    }

    .shop-warehouse-stock-select-table-footer__message {
        margin-bottom: 10px;
    }

    .shop-warehouse-stock-select-table-footer__select-button-wrapper {
        padding-left: 0;
    }

    .shop-warehouse-stock-select-table-footer__title,
    .shop-warehouse-stocks-table-footer__title {
        font-size: 16px;
        width: 50%;
    }

    .shop-warehouse-stocks-table-footer--with-image .shop-warehouse-stocks-table-footer__title {
        width: calc(50% - 75px);
    }

    .shop-warehouse-stocks-table-footer__price {
        font-size: 18px;
    }

    .shop-warehouse-stocks-table-footer__compare-price {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .shop-warehouse-stock-placemark__product {
        flex-direction: column;
    }

    .shop-warehouse-stock-placemark__product:not(:last-child) {
        margin-bottom: 15px;
    }

    .shop-warehouse-stock-placemark__product-name {
        padding-right: 0;
    }

    .shop-warehouse-stock-placemark__calculated-deliveries {
        width: auto;
        min-width: inherit;
        max-width: inherit;
    }

    .shop-warehouse-stock-placemark__product .shop-warehouse-stock-placemark__calculated-deliveries {
        text-align: left;
    }

    .shop-warehouse-stock-select-table-footer__title,
    .shop-warehouse-stocks-table-footer__title {
        display: none;
    }
}

.shop-warehouse-stock-select-table-footer[data-is-disabled] .shop-warehouse-stock-select-table-footer__select-button {
    background-color: #ccc;
    color: #666;
    pointer-events: none;
}

.shop-warehouse-stock-select-table-footer__message {
    font-size: 18px;
    color: #666;
}

.shop-warehouse-shipping-dialog-stocks-table__header-title {
    font-size: 1.1em;
    font-weight: 500;
}

.shop-warehouse-schedule__title {
    margin-bottom: 10px;
    font-weight: 500;
}

.shop-warehouse-schedule__group {
    display: flex;
    align-items: center;
}

.shop-warehouse-schedule__group:not(:last-child) {
    margin-bottom: 10px;
}

.shop-warehouse-schedule__day-of-week {
    margin-right: 5px;
    font-weight: 500;
    width: 50px;
}

.shop-warehouse-schedule__work {
    display: flex;
    align-items: center;
}

.shop-warehouse-schedule__work-end:before {
    content: '-';
    color: #666;
}

.shop-warehouse-cart-items-stock-info[data-from="order"],
.shop-warehouse-cart-items-stock-info[data-from="checkout"] {
    display: none;
}

.shop-warehouse-cart-items-stock-info__item--from-order {
    margin-top: 15px;
}

.shop-warehouse-cart-items-stock-info__item {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.shop-warehouse-cart-items-stock-info__item[data-is-auto="1"] {
    align-items: flex-start;
}

.shop-warehouse-cart-items-stock-info__items:not(:empty) {
    margin-right: 10px;
}

.shop-warehouse-cart-items-stock-info__reset-stock {
    margin-left: 10px;
}

.shop-warehouse-cart-items-stock-info__reset-stock-button:after {
    content: '';
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"%3E%3Cpath d="M12 1.209L10.791 0 6 4.791 1.209 0 0 1.209 4.791 6 0 10.791 1.209 12 6 7.209 10.791 12 12 10.791 7.209 6 12 1.209z" fill="%23000"%3E%3C/path%3E%3C/svg%3E');
    width: 10px;
    height: 10px;
    display: block;
}

.shop-warehouse-cart-items-stock-info__item-stock {
    display: flex;
    align-items: center;
}

.shop-warehouse-cart-items-stock-info__item-stock-count {
    margin-right: 5px;
}

.shop-warehouse-cart-items-stock-info__item-stock-count:after {
    content: '—';
    color: #888;
    margin-left: 5px;
}

.shop-warehouse-cart-items-stock-info__item-stock-name {
    margin-right: 5px;
    white-space: nowrap;
}

.shop-warehouse-cart-items-stock-info__item-stock-delivery-time {
    color: #888;
    white-space: nowrap;
}

.shop-warehouse-in-stock {
    white-space: nowrap;
}

.shop-warehouse-in-stock--critical {
    color: #e00;
}

.shop-warehouse-in-stock--low {
    color: #a80;
}

.shop-warehouse-in-stock--high {
    color: #0a0;
}

.shop-warehouse-in-stock--none {
    color: #aaa;
}

.shop-warehouse-hidden {
    display: none !important;
    position: absolute !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
