/* Стили для области пути (breadcrumb) */
/* Скрываем полосу прокрутки для order-path-container */
.order-path-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Для Firefox */
    -ms-overflow-style: none; /* Для IE и Edge */
}

.order-path-container::-webkit-scrollbar {
    display: none; /* Для Chrome, Safari и Opera */
}

/* Анимация для карточек складов */
.no-underline-link {
    text-decoration: none;
    display: inline-block;
    border-radius: 20px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.no-underline-link:hover {
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.no-underline-link:active {
text-decoration: none;
    transform: translateY(0);
}

.order-path-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.order-path-container::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 4px;
}
.order-path-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 12px;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
}

.path-step.active {
    background: #fff3cd;
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.path-step.completed {
    background: #f5f5f5;
    border-color: #d4d4d4;
}

.step-icon {
    width: 28px;
    height: 28px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.path-step.completed .step-icon {
    background: #ffc107;
    color: #000;
}

.path-step.active .step-icon {
    background: #ffc107;
    color: #000;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.step-text {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: normal;
    line-height: 1.2;
    width: 100%;
}

.path-step.completed .step-text {
    color: #333;
}

.path-step.active .step-text {
    color: #000;
    font-weight: 700;
}

.step-value {
    font-size: 10px;
    color: #333;
    font-weight: 600;
    margin-top: 4px;
    word-break: break-word;
    width: 100%;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.path-step.completed .step-value {
    color: #000;
}

.path-step.active .step-value {
    color: #000;
    font-weight: 700;
}

.path-arrow {
    color: #ccc;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px; /* Сдвигаем стрелочку вниз к центру блока */
}

.path-step.completed + .path-arrow {
    color: #ffc107;
}

/* Десктоп версия */
@media (min-width: 769px) {
    .order-path-steps {
        justify-content: center;
        flex-wrap: wrap;
    }

    .path-step {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
        padding: 10px 8px;
    }

    .step-text {
        font-size: 10px;
    }

    .step-value {
        font-size: 11px;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .order-path-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .order-path-steps {
        justify-content: flex-start;
        min-width: min-content;
        gap: 8px;
    }

    .path-step {
        scroll-snap-align: center;
    }

    .step-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
        margin-bottom: 4px;
    }

    .step-text {
        font-size: 8px;
        line-height: 1.1;
        min-height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .step-value {
        font-size: 8px;
        margin-top: 3px;
        min-height: 20px;
        line-height: 1.1;
    }

    .path-arrow {
        margin-top: 15px;
        font-size: 12px;
    }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    .path-step {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        padding: 5px 4px;
    }

    .step-icon {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }

    .step-text {
        font-size: 7px;
        min-height: 22px;
    }

    .step-value {
        font-size: 7px;
        min-height: 18px;
    }

    .path-arrow {
        font-size: 8px;
    }
}

/* Плавающая кнопка оплаты для мобильных */
#floating-pay-button {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    border-top: 1px solid #e0e0e0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#floating-pay-button.show {
    transform: translateY(0);
}

.btn-floating-pay {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-floating-pay:active {
    transform: scale(0.98);
}

/* Десктоп - скрываем кнопку */
@media (min-width: 769px) {
    #floating-pay-button {
        display: none !important;
    }
    .path-arrow {
        margin-top: 25px;
    }
}

/* Мобильная версия - показываем */
@media (max-width: 768px) {
    #floating-pay-button {
        display: block;
    }

    /* Добавляем отступ снизу на странице, чтобы контент не перекрывался */
    #order_common {
        margin-bottom: 80px;
    }
}



/* Анимация для плавающей кнопки */
#floating-pay-button {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#floating-pay-button.show {
    transform: translateY(0);
}

/* Стили для основной кнопки оплаты (если нужно) */
.btn-pay {
    background: linear-gradient(135deg, #28a745 0%, #39a358 100%);
    border: none;
}

/* Адаптация контента под плавающую кнопку */
@media (max-width: 768px) {
    #order_common {
        margin-bottom: 90px;
    }

    .receipt-button {
        margin-bottom: 0;
    }
}

/* Плавающая кнопка назад */
#floating-back-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: none;
}

.btn-floating-back {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-floating-back:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-floating-back:active {
    transform: scale(0.95);
}

/* Добавляем эффект пульсации */
.btn-floating-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(108, 117, 125, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-floating-back:active::before {
    opacity: 1;
}
@media (min-width: 1600px) {
    #floating-back-button {
        bottom: 420px;
        left: 300px;
    }
    #floating-save-button {
        bottom: 420px;
        right: 300px;
    }
  }
@media (max-width: 1599px) {
    #floating-back-button {
        bottom: 420px;
        left: 20px;
    }
    #floating-save-button {
        bottom: 420px;
        right: 20px;
    }
  }
/* Для мобильных - поднимаем выше меню */
@media (max-width: 768px) {
    #floating-back-button {
        bottom: 85px;
    }

    .btn-floating-back {
        width: 40px;
        height: 40px;
        font-size: 15px;
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
}

/* Для десктопа */
@media (min-width: 769px) {
        .btn-floating-back {
        width: 55px;
        height: 55px;
        font-size: 24px;
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Плавающая кнопка сохранения в черновик */
#floating-save-button {
    position: fixed;

    z-index: 1000;
    display: none;
}

.btn-floating-save {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fd7e14 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-floating-save:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    box-shadow: 0 6px 20px rgba(253, 126, 20, 0.5);
}

.btn-floating-save:active {
    transform: scale(0.95);
}


/* Для мобильных устройств */
@media (max-width: 768px) {
    #floating-save-button {
        bottom: 85px;
        right: 15px;
    }

    .btn-floating-save {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

/* Для десктопа */
@media (min-width: 769px) {
    .btn-floating-save {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

