.main div.empty{
    width: unset;
    height: unset;
}

.skeleton-wrapper {
    opacity: 0;
    animation: skeleton-fadein 0.2s ease-in-out 0.2s forwards;
}

@keyframes skeleton-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

[v-cloak] {
    display: none;
}

.cartform__submit-wrapper,.cart__reset-wrapper
{
    cursor:not-allowed;
}

.cartform__submit.disabled,
.cart__reset.disabled
{
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

@media (max-width: 1024px) {
    .cartform__submit-wrapper {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
}

.cart__elem {
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.cart__elem--error
{
    border: 1px solid #eb5757!important;
}

.cart__error {
    position: relative;
    padding: 2px;
    display: flex;
}

.cart__error:hover .cart__error-tooltip {
    opacity: 1;
    visibility: visible;
}

.cart__error-tooltip {
    position: absolute;
    z-index: 500;
    top: calc(100% + 12px);
    right: -26px;
    width: 240px;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    background-color: #fff;
    border: 1px solid rgba(31, 27, 26, .2);
    border-radius: 10px;
    transition: opacity .3s ease-in-out, visibility .3s ease-in-out;
}

.cart__error-tooltip::after {
    content: "";
    position: absolute;
    top: -14px;
    right: 28px;
    display: block;
    width: 18px;
    height: 16px;
    background: url(/local/templates/main/assets/icons/sprite.svg#common--tooltip-arrow) center / cover no-repeat;
    transition: transform .3s ease-in-out;
}

.cart__error-icon-path-1 {
    fill: transparent;
    transition: fill .2s ease-in-out;
}

.cart__error-icon:hover .cart__error-icon-path-1 {
    fill: #eb5757;
}

.cart__error-icon:hover .cart__error-icon-path-2 {
    fill: #f1f1f1;
}

.cartform__submit-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Анимация вращения для SVG прелоадера */
.cartform__submit-loader svg {
    animation: spin 1s linear infinite;
}

/* TransitionGroup анимации для элементов корзины */
body.body--overlay {
    background-color: #f1f1f1;
}

.cart__list {
    position: relative;
}

.footer {
    overflow: hidden;
}

.footer, 
.page-cart__form, 
.cart__footer {
    transition: transform .5s ease;
    will-change: transform;
}

.cart-item-move,
.cart-item-enter-active,
.cart-item-leave-active {
    transition: transform .5s ease, opacity .5s ease;
}

.cart__elem.cart-item-enter-from,
.cart__elem.cart-item-leave-to  {
    opacity: 0;
}

.cart__elem.cart-item-leave-active {
    position: absolute;
    width: 100%;
}

/* Стили для тултипа отмены удаления */
.info-tooltip {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #353231;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family:Pt-Sans;
}

/* .info-tooltip {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);

    padding: 12px 20px;
    border-radius: 8px;

    background: #FFFFFF;
    color: #1F1B1A;

    box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);

    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family:Pt-Sans;
} */

.info-tooltip__text {
    font-size: 16px;
    line-height: 1.4;
}

.info-tooltip__link {
    color: #a16d4f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.info-tooltip__link:hover {
    border-bottom-color: #a16d4f;
}

/* Анимации для тултипа */
.tooltip-fade-enter-active,
.tooltip-fade-leave-active {
    transition: all 0.3s ease;
}

.tooltip-fade-enter-from,
.tooltip-fade-leave-to {
    opacity: 0;
    transform: translateX(-50%) translateY(40px);
}

/* Стили для тултипа ошибки */
.error-tooltip {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #d32f2f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90%;
}

.error-tooltip__icon {
    flex-shrink: 0;
}

.error-tooltip__text {
    font-size: 16px;
    line-height: 1.4;
}

.valign-center {
    display: flex;
    align-items: center;
}