/* How to Order Button & Modal Styles */

/* Floating Action Button */
.how-to-order-btn {
    position: fixed;
    z-index: 1050; /* Above most content, below modals */
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #012f15 0%, #24471b 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(1, 47, 21, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Poppins", sans-serif;
    white-space: nowrap;
    line-height: 1;
}

.how-to-order-btn:hover {
    background: linear-gradient(135deg, #24471b 0%, #012f15 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(1, 47, 21, 0.4);
    color: #ffffff;
}

.how-to-order-btn:active {
    transform: translateY(-1px);
}

.how-to-order-btn i {
    font-size: 18px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .how-to-order-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 13px;
        border-radius: 45px;
    }
    
    .how-to-order-btn span {
        display: none; /* Hide text on small screens */
    }
    
    .how-to-order-btn {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .how-to-order-btn i {
        font-size: 22px;
        margin: 0;
    }
}

/* Ensure button doesn't overlap with Tidio chat or floating button */
@media (max-width: 991px) {
    .how-to-order-btn {
        z-index: 1001; /* Above floating button (1000) but below modals */
    }
}

@media (max-width: 576px) {
    .how-to-order-btn {
        bottom: 90px; /* Move up to avoid Tidio chat button (usually at ~70px) */
    }
}

/* Modal Styles */
#howToOrderModal .modal-content {
    border: none;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(1, 47, 21, 0.3);
    background: #ffffff;
    font-family: "Poppins", sans-serif;
}

#howToOrderModal .modal-header {
    background: linear-gradient(135deg, #012f15 0%, #24471b 100%);
    color: #ffffff;
    border: 0;
    border-radius: 0;
    padding: 25px 30px;
    position: relative;
}

#howToOrderModal .modal-title {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#howToOrderModal .modal-title i {
    font-size: 24px;
}

#howToOrderModal .btn-close {
    background: none;
    border: none;
    color: #ffffff;
    opacity: 0.9;
    font-size: 24px;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#howToOrderModal .btn-close:hover {
    opacity: 1;
    color: #fe5502;
    transform: rotate(90deg);
}

#howToOrderModal .modal-body {
    padding: 30px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Step Cards */
.how-to-order-step {
    background: #f8f9fa;
    border-left: 4px solid #012f15;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.how-to-order-step:hover {
    box-shadow: 0 5px 20px rgba(1, 47, 21, 0.1);
    transform: translateX(5px);
}

.how-to-order-step:last-child {
    margin-bottom: 0;
}

.how-to-order-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-number {
    background: linear-gradient(135deg, #012f15 0%, #24471b 100%);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #012f15;
    margin: 0;
}

.step-content {
    color: #24471b;
    line-height: 1.8;
    margin-bottom: 15px;
}

.step-content p {
    margin-bottom: 12px;
}

.step-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.step-content ul li {
    margin-bottom: 8px;
    color: #24471b;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.step-btn {
    background: #012f15;
    color: #ffffff;
    border: 2px solid #012f15;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-btn:hover {
    background: #ffffff;
    color: #012f15;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 47, 21, 0.2);
}

.step-btn i {
    font-size: 16px;
}

.step-btn-secondary {
    background: #ffffff;
    color: #012f15;
    border: 2px solid #012f15;
}

.step-btn-secondary:hover {
    background: #012f15;
    color: #ffffff;
}

/* Highlight important information */
.step-highlight {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.step-highlight p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #howToOrderModal .modal-dialog {
        margin: 10px;
    }
    
    #howToOrderModal .modal-header {
        padding: 20px;
    }
    
    #howToOrderModal .modal-title {
        font-size: 18px;
    }
    
    #howToOrderModal .modal-body {
        padding: 20px;
    }
    
    .how-to-order-step {
        padding: 20px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .step-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hide button when mobile menus are active (same as floating button) */
.m-main-menu.active ~ * .how-to-order-btn,
.mobile-category-list.active ~ * .how-to-order-btn {
    display: none !important;
}

/* Animation for modal appearance */
#howToOrderModal.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

#howToOrderModal.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* Smooth scrollbar for modal body */
#howToOrderModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#howToOrderModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#howToOrderModal .modal-body::-webkit-scrollbar-thumb {
    background: #012f15;
    border-radius: 4px;
}

#howToOrderModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #24471b;
}

