/* ============================================ */
/* CHECKOUT PROCESS STYLES */
/* ============================================ */
.checkout-progress {
    background: white;
    border-radius: 12px;
    padding: 16px 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-circle i {
    font-size: 1.2rem;
    color: #6b7280;
}

.step.active .step-circle {
    background: #059669;
    color: white;
}

.step.active .step-circle i {
    color: white;
}

.step.completed .step-circle {
    background: #059669;
    color: white;
}

.step.completed .step-circle i {
    color: white;
}

.step.completed .step-circle::after {
    content: '✓';
    font-weight: bold;
    position: absolute;
}

.step-number {
    font-weight: bold;
    font-size: 1.1rem;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
}

.step.active .step-label {
    color: #059669;
}

.step.completed .step-label {
    color: #059669;
}

.step-line {
    height: 3px;
    background: #e5e7eb;
    flex: 1;
    margin: 0 1rem;
    position: relative;
    top: -25px;
}

.step.active + .step-line,
.step.completed + .step-line {
    background: #059669;
}

.checkout-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.back-btn {
    background: #e44d26;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.back-btn:hover {
    background: rgb(224, 73, 35);
}

.selected-pickup-point {
    background-color: #fff3e6 !important;
    border-color: #f97316 !important;
    border-width: 2px !important;
}

.selected-pickup-point:hover {
    background-color: #ffe0cc !important;
}

.unselected-pickup-point {
    background-color: #ffffff !important;
    border-color: #e5e7eb !important;
}

.cart-layout {
    display: flex;
    flex-direction: column;
}

/* Smooth transitions for step changes */
.cart-layout, #login-step, #delivery-step, #order-form {
    transition: all 0.3s ease-in-out;
}

/* Logged in user section styles */
#logged-in-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.register-button {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.register-button:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.login-button {
    background: #e44d26;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.login-button:hover {
    background: rgb(224, 73, 35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 77, 38, 0.3);
}

.search-pickup-btn {
    background: #ff6b35;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.search-pickup-btn:hover {
    background: #ff8555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-pickup-btn:active {
    transform: translateY(0);
}

.search-pickup-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.order-summary-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.order-summary-item:last-child {
    border-bottom: none;
}

.delivery-info-card {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
}

.payment-method-option {
    transition: all 0.2s ease;
}

.payment-method-option:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.payment-method-option input[type="radio"]:checked + div {
    color: #059669;
}

.user-details-card {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
}

.user-avatar {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Cart item quantity controls styling */
.quantity-btn-minus,
.quantity-btn-plus {
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    min-width: 32px;
}

.quantity-btn-minus:hover,
.quantity-btn-plus:hover {
    background-color: #d1d5db !important;
    transform: scale(1.05);
}

.quantity-display {
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* Ensure cart items have proper spacing */
#cartContainer .bg-gray-50 {
    transition: all 0.3s ease;
}

#cartContainer .bg-gray-50:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .checkout-progress {
        padding: 1rem;
    }

    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .step-line {
        width: 3px;
        height: 30px;
        margin: 0;
        top: 0;
    }

    .step-circle {
        width: 40px;
        height: 40px;
    }
}

