#cart a:last-child {
    display: none;
}

#errorTextFormOrdering {
    padding-top: 20px;
    font-weight: bold;
}

.hidden {
    display: none;
}

.old {
    color: #aaa;
    text-decoration: line-through;
}

.formCard .text {
    padding-top: 20px;
}

#formOrdering .order_results {
    font-weight: bold;
    color: #f00;
}
#formOrdering .input {
    position: relative;
}
#formOrdering .widget_button{
    position: absolute;
    right: 10px;
    line-height: 30px;
    text-decoration: underline;
    color: #df1d32;
    top: 0;
}

.preloadWidget{
    position: absolute;
    height: 100%;
    width: 100%;
    display: block;
    z-index: 111;
    opacity: 0.5;
    background: #333 url("/images/ajax.gif") no-repeat center center;
}

#shopping_cart_table{
    display: block;
    overflow: auto;
}

#shopping_cart_table .not_available,
#shopping_cart_table .not_store{
    position:relative;
}

#shopping_cart_table .not_available:before,
#shopping_cart_table .not_store:before {
    content: 'Временно отсутствует';
    position: absolute;
    top: 7px;
    left: 0;
    line-height: 10px;
    background-color: #df1d32;
    padding: 3px;
    font-size: 10px;
    color: #fff;
    border-radius: 4px;
}

#shopping_cart_table .not_store:before {
    content: 'Остаток меньше чем в заказе';
    top: 2px;
}

@media all and (max-width: 860px) {
    body #shopping_cart_table .not_available, #shopping_cart_table .not_store{padding-top: 20px;}
    body #shopping_cart_table .not_available:before, #shopping_cart_table .not_store:before{top:4px;}
    body #shopping_cart_table .not_store:before{top:-4px;}
}

form.forms .item .textarea.inputerror {
    border-color: #f00;
}

#purchaseForm_button.disabled {
    background: #b8b8b8;
}

#copy_link_cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: max-content;
    cursor: pointer;
    transition: all .2s;
    padding: 5px;
}

#copy_link_cart::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url('/engine/public/img/share.svg');
    background-size: cover;
}

#copy_link_cart::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #000;
    transition: all .2s;
}

#copy_link_cart:hover::after {
    width: 100%;
}


#shopping_cart_table .item .digit.price {
    display: table-cell;
}

.formCard  a.hidden {
    display: none;
}

/* Yandex Maps JS API 3 — маркеры и балуны виджета доставки */
.marker {
    position: relative;
    transform: translate(-50%, -100%);
    z-index: 1;
}

.marker.is-open {
    z-index: 20;
}

.marker__pin {
    display: block;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: #e11d48;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transform: rotate(-45deg);
    cursor: pointer;
}

.balloon {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    width: 260px;
    padding: 12px 14px 14px;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    transform: translateX(-50%);
}

.marker.is-open .balloon {
    display: block;
}

.balloon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    margin-left: -7px;
    border: 7px solid transparent;
    border-top-color: #fff;
}

.balloon__close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.balloon__title {
    margin: 0 24px 10px 0;
    font-size: 15px;
    font-weight: 700;
}

.balloon__row + .balloon__row {
    margin-top: 8px;
}

.balloon__label {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.balloon__value {
    display: block;
    font-size: 13px;
    line-height: 1.35;
}

.balloon .widjet_cdek {
    margin-top: 12px;
}

.balloon .cdek_button {
    cursor: pointer;
}

.balloon .hidden {
    display: none;
}
